project QadFinancials > class BMFGGLCorrectionControl > method Createglcor_ctrl

Description

Initialize a new record in class table tglcor_ctrl.


Parameters


ic_ParentRowidinputcharacter= tglcor_ctrl.tc_ParentRowid
BMFGGLCorrectionControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgglcorrectioncontrol.p)

    assign oiReturnStatus = -98.

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

    create t_sglcor_ctrl.
    raw-transfer tglcor_ctrl to t_sglcor_ctrl.