project QadFinancials > class BMfgPricingControl > method Createpic_ctrl

Description

Initialize a new record in class table tpic_ctrl.


Parameters


ic_ParentRowidinputcharacter= tpic_ctrl.tc_ParentRowid
BMfgPricingControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgpricingcontrol.p)

    assign oiReturnStatus = -98.

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

    create t_spic_ctrl.
    raw-transfer tpic_ctrl to t_spic_ctrl.