project QadFinancials > class BMfgExchangeRate > method Createexr_rate

Description

Initialize a new record in class table texr_rate.


Parameters


ic_ParentRowidinputcharacter= texr_rate.tc_ParentRowid
BMfgExchangeRateoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgexchangerate.p)

    assign oiReturnStatus = -98.

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

    create t_sexr_rate.
    raw-transfer texr_rate to t_sexr_rate.