project QadFinancials > class BMfgPLInvoice > method Createpli_mstr

Description

Initialize a new record in class table tpli_mstr.


Parameters


ic_ParentRowidinputcharacter= tpli_mstr.tc_ParentRowid
BMfgPLInvoiceoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgplinvoice.p)

    assign oiReturnStatus = -98.

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

    create t_spli_mstr.
    raw-transfer tpli_mstr to t_spli_mstr.