project QadFinancials > class BMfgERSMaster > method Createers_mstr

Description

Initialize a new record in class table ters_mstr.


Parameters


ic_ParentRowidinputcharacter= ters_mstr.tc_ParentRowid
BMfgERSMasteroutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgersmaster.p)

    assign oiReturnStatus = -98.

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

    create t_sers_mstr.
    raw-transfer ters_mstr to t_sers_mstr.