project QadFinancials > class BMfgProductLine > method Createpl_mstr

Description

Initialize a new record in class table tpl_mstr.


Parameters


ic_ParentRowidinputcharacter= tpl_mstr.tc_ParentRowid
BMfgProductLineoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgproductline.p)

    assign oiReturnStatus = -98.

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

    create t_spl_mstr.
    raw-transfer tpl_mstr to t_spl_mstr.