project QadFinancials > class BMfgTaxCode > method Createtx2_mstr

Description

Initialize a new record in class table ttx2_mstr.


Parameters


ic_ParentRowidinputcharacter= ttx2_mstr.tc_ParentRowid
BMfgTaxCodeoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgtaxcode.p)

    assign oiReturnStatus = -98.

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

    create t_stx2_mstr.
    raw-transfer ttx2_mstr to t_stx2_mstr.