project QadFinancials > class BMfgItem > method Creatept_mstr

Description

Initialize a new record in class table tpt_mstr.


Parameters


ic_ParentRowidinputcharacter= tpt_mstr.tc_ParentRowid
BMfgItemoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgitem.p)

    assign oiReturnStatus = -98.

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

    create t_spt_mstr.
    raw-transfer tpt_mstr to t_spt_mstr.