project QadFinancials > class BMfgTaxDetail > method Createtx2d_det

Description

Initialize a new record in class table ttx2d_det.


Parameters


ic_ParentRowidinputcharacter= ttx2d_det.tc_ParentRowid
BMfgTaxDetailoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgtaxdetail.p)

    assign oiReturnStatus = -98.

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

    create t_stx2d_det.
    raw-transfer ttx2d_det to t_stx2d_det.