project QadFinancials > class BMfgInventoryControl > method Createicc_ctrl

Description

Initialize a new record in class table ticc_ctrl.


Parameters


ic_ParentRowidinputcharacter= ticc_ctrl.tc_ParentRowid
BMfgInventoryControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfginventorycontrol.p)

    assign oiReturnStatus = -98.

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

    create t_sicc_ctrl.
    raw-transfer ticc_ctrl to t_sicc_ctrl.