project QadFinancials > class BMfgEngineer > method Createeng_mstr

Description

Initialize a new record in class table teng_mstr.


Parameters


ic_ParentRowidinputcharacter= teng_mstr.tc_ParentRowid
BMfgEngineeroutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgengineer.p)

    assign oiReturnStatus = -98.

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

    create t_seng_mstr.
    raw-transfer teng_mstr to t_seng_mstr.