project QadFinancials > class BMFGLegalDocumentCtrl > method Createlgdc_ctrl

Description

Initialize a new record in class table tlgdc_ctrl.


Parameters


ic_ParentRowidinputcharacter= tlgdc_ctrl.tc_ParentRowid
BMfgLegalDocumentCtrloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfglegaldocumentctrl.p)

    assign oiReturnStatus = -98.

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

    create t_slgdc_ctrl.
    raw-transfer tlgdc_ctrl to t_slgdc_ctrl.