project QadFinancials > class BMFGLegalDocument > method Createlgd_mstr

Description

Initialize a new record in class table tlgd_mstr.


Parameters


ic_ParentRowidinputcharacter= tlgd_mstr.tc_ParentRowid
BMFGLegalDocumentoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfglegaldocument.p)

    assign oiReturnStatus = -98.

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

    create t_slgd_mstr.
    raw-transfer tlgd_mstr to t_slgd_mstr.