project QadFinancials > class BMfgAccountDefaultMaster > method Createacdf_mstr

Description

Initialize a new record in class table tacdf_mstr.


Parameters


ic_ParentRowidinputcharacter= tacdf_mstr.tc_ParentRowid
BMfgAccountDefaultMasteroutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgaccountdefaultmaster.p)

    assign oiReturnStatus = -98.

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

    create t_sacdf_mstr.
    raw-transfer tacdf_mstr to t_sacdf_mstr.