Description
Validate component and perform Additional Updates
Parameters
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/bmfgaccountpayablectrl.p)
/* ======================================================================== *
* Method : ValidateBCAdditionalUpdates *
* Description : Perform ValidateComponent And AdditionalUpdates *
* ======================================================================== */
/* Error handling */
assign oiReturnStatus = -98
viLocalReturn = 0.
MAIN_BLOCK:
do on error undo, return:
/* Validate component */
<M-1 run ValidateBC (output viFcReturnSuper (oiReturnStatus)) in BMfgAccountPayableCtrl>
if viFcReturnSuper <> 0 then assign viLocalReturn = viFcReturnSuper.
if viFcReturnSuper < 0 then leave MAIN_BLOCK.
/* Additional updates */
<M-2 run AdditionalUpdates (output viFcReturnSuper (oiReturnStatus)) in BMfgAccountPayableCtrl>
if viFcReturnSuper <> 0 then assign viLocalReturn = viFcReturnSuper.
if viFcReturnSuper < 0 then leave MAIN_BLOCK.
end. /* of MAIN_BLOCK */
/* Error handling */
assign oiReturnStatus = viLocalReturn.