project QadFinancials > class BMfgDomain > method Createdom_mstr

Description

Initialize a new record in class table tdom_mstr.


Parameters


ic_ParentRowidinputcharacter= tdom_mstr.tc_ParentRowid
BMfgDomainoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgdomain.p)

    assign oiReturnStatus = -98.

    empty temp-table t_sdom_mstr.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create tdom_mstr.
    assign tdom_mstr.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           tdom_mstr.tc_Status = "N":U.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'dom_mstr':U,
                     output oiReturnStatus" }

    create t_sdom_mstr.
    raw-transfer tdom_mstr to t_sdom_mstr.