project QadFinancials > class BMfgTaxZone > method Createtxz_mstr

Description

Initialize a new record in class table ttxz_mstr.


Parameters


ic_ParentRowidinputcharacter= ttxz_mstr.tc_ParentRowid
BMfgTaxZoneoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgtaxzone.p)

    assign oiReturnStatus = -98.

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

    create t_stxz_mstr.
    raw-transfer ttxz_mstr to t_stxz_mstr.