project QadFinancials > class BMfgGeneralizedCode > method Createcode_mstr

Description

Initialize a new record in class table tcode_mstr.


Parameters


ic_ParentRowidinputcharacter= tcode_mstr.tc_ParentRowid
BMfgGeneralizedCodeoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfggeneralizedcode.p)

    assign oiReturnStatus = -98.

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

    create t_scode_mstr.
    raw-transfer tcode_mstr to t_scode_mstr.