project QadFinancials > class BMfgSOAccountingControl > method Createsoc_ctrl

Description

Initialize a new record in class table tsoc_ctrl.


Parameters


ic_ParentRowidinputcharacter= tsoc_ctrl.tc_ParentRowid
BMfgSOAccountingControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgsoaccountingcontrol.p)

    assign oiReturnStatus = -98.

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

    create t_ssoc_ctrl.
    raw-transfer tsoc_ctrl to t_ssoc_ctrl.