project QadFinancials > class BPosting > method GetInstanceData

Description

This method provides copy of data used by instance


Parameters


tApiPostingoutputtemp-table
tApiPostingLineoutputtemp-table
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BCInvoice.PreSaveValidate
method BDInvoice.PreSaveValidate


program code (program4/bposting.p)

/* ====================================================================================== *
 * Method       : GetInstanceData                                                         *
 * Description  : This method returns data of the component                               *
 * -------------------------------------------------------------------------------------- *
 * Parameters   :                                                                         *
 * ====================================================================================== */
 
assign oiReturnStatus = -98
       viLocalReturn  = 0.

MAIN_BLOCK:
do on error undo, return:
    /* Copy instance data into REF tables */
    empty temp-table tApiPosting.
    empty temp-table tApiPostingLine.

    temp-table tApiPosting:handle:copy-temp-table(temp-table tPosting:handle).
    temp-table tApiPostingLine:handle:copy-temp-table(temp-table tPostingLine:handle).
end. /* MAIN_BLOCK */

assign oiReturnStatus = viLocalReturn.