project QadFinancials > class BMfgPO > method Createpo_mstr

Description

Initialize a new record in class table tpo_mstr.


Parameters


ic_ParentRowidinputcharacter= tpo_mstr.tc_ParentRowid
BMfgPOoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgpo.p)

    assign oiReturnStatus = -98.

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

    create t_spo_mstr.
    raw-transfer tpo_mstr to t_spo_mstr.