project QadFinancials > class BMfgLogisticAccControl > method Createlac_ctrl

Description

Initialize a new record in class table tlac_ctrl.


Parameters


ic_ParentRowidinputcharacter= tlac_ctrl.tc_ParentRowid
BMfgLogisticAccControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfglogisticacccontrol.p)

    assign oiReturnStatus = -98.

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

    create t_slac_ctrl.
    raw-transfer tlac_ctrl to t_slac_ctrl.