project QadFinancials > class BMfgTaxControl > method Createtxc_ctrl

Description

Initialize a new record in class table ttxc_ctrl.


Parameters


ic_ParentRowidinputcharacter= ttxc_ctrl.tc_ParentRowid
BMfgTaxControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgtaxcontrol.p)

    assign oiReturnStatus = -98.

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

    create t_stxc_ctrl.
    raw-transfer ttxc_ctrl to t_stxc_ctrl.