project QadFinancials > class BMfgCostCenter > method Createcc_mstr

Description

Initialize a new record in class table tcc_mstr.


Parameters


ic_ParentRowidinputcharacter= tcc_mstr.tc_ParentRowid
BMfgCostCenteroutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgcostcenter.p)

    assign oiReturnStatus = -98.

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

    create t_scc_mstr.
    raw-transfer tcc_mstr to t_scc_mstr.