project QadFinancials > class BMfgSequenceControl > method Createqaddb_ctrl

Description

Initialize a new record in class table tqaddb_ctrl.


Parameters


ic_ParentRowidinputcharacter= tqaddb_ctrl.tc_ParentRowid
BMfgSequenceControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgsequencecontrol.p)

    assign oiReturnStatus = -98.

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

    create t_sqaddb_ctrl.
    raw-transfer tqaddb_ctrl to t_sqaddb_ctrl.