project QadFinancials > class BVAT > method CreateTransString

Description

Initialize a new record in class table tTransString.


Parameters


ic_ParentRowidinputcharacter= tTransString.tc_ParentRowid
BVAToutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bvat.p)

    assign oiReturnStatus = -98.

    empty temp-table t_sVat.
    empty temp-table t_sVatRule.
    empty temp-table t_sTransString.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create tTransString.
    assign tTransString.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           tTransString.tc_Status = "N":U.
    assign tTransString.tc_ParentRowid = ic_ParentRowid.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'TransString':U,
                     output oiReturnStatus" }

    create t_sTransString.
    raw-transfer tTransString to t_sTransString.