project QadFinancials > class BMfgCosting > method Createsct_det

Description

Initialize a new record in class table tsct_det.


Parameters


ic_ParentRowidinputcharacter= tsct_det.tc_ParentRowid
BMfgCostingoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgcosting.p)

    assign oiReturnStatus = -98.

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

    create t_ssct_det.
    raw-transfer tsct_det to t_ssct_det.