project QadFinancials > class BMfgAllocationAccount > method Createal_mstr

Description

Initialize a new record in class table tal_mstr.


Parameters


ic_ParentRowidinputcharacter= tal_mstr.tc_ParentRowid
BMfgAllocationAccountoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgallocationaccount.p)

    assign oiReturnStatus = -98.

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

    create t_sal_mstr.
    raw-transfer tal_mstr to t_sal_mstr.