project QadFinancials > class BMfgAccountPayableCtrl > method ValidateBCAdditionalUpdates

Description

Validate component and perform Additional Updates


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BMfgBatchNumber.AdditionalUpdates


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.