project QadFinancials > class BMfgPOAccountingControl > method Createpoc_ctrl

Description

Initialize a new record in class table tpoc_ctrl.


Parameters


ic_ParentRowidinputcharacter= tpoc_ctrl.tc_ParentRowid
BMfgPOAccountingControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgpoaccountingcontrol.p)

    assign oiReturnStatus = -98.

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

    create t_spoc_ctrl.
    raw-transfer tpoc_ctrl to t_spoc_ctrl.