project QadFinancials > class BFixedAssetDepreciation > method CreateCustomTable1

Description

Initialize a new record in class table tCustomTable1.


Parameters


ic_ParentRowidinputcharacter= tCustomTable1.tc_ParentRowid
BFixedAssetDepreciationoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bfixedassetdepreciation.p)

    assign oiReturnStatus = -98.

    empty temp-table t_sFADepreciation.
    empty temp-table t_sFADepreciationDet.
    empty temp-table t_sFADepreciationDetSaf.
    empty temp-table t_sFADepreciationPosting.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create tCustomTable1.
    assign tCustomTable1.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           tCustomTable1.tc_Status = "N":U.
    assign tCustomTable1.tc_ParentRowid = ic_ParentRowid.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'CustomTable1':U,
                     output oiReturnStatus" }

    create t_sCustomTable1.
    raw-transfer tCustomTable1 to t_sCustomTable1.