project QadFinancials > class BMfgSubAccount > method MaintainData

Description

Method called by Financial Application Component to replicate the create/update/delete of data to MFG/PRO.


Parameters


tDivisioninputtemp-tableHolds the division records that need to be replicated to MFG/PRO
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BDivision.AdditionalUpdates


program code (program1/bmfgsubaccount.p)

/* Set the return status to system error (-98) */
assign 
   oiReturnStatus = -98.

/*
* Execute the ProcessMaintainData method to execute the generic processing 
* of the update in the Financials across to the MFG/PRO database.
*/
<M-6 run ClearData (output viFcReturnSuper (oiReturnStatus)) in BMfgSubAccount>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
<M-4 run ProcessMaintainData (output viFcReturnSuper (oiReturnStatus)) in BMfgSubAccount>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
<M-7 run ProcessMaintainDataSave (output viFcReturnSuper (oiReturnStatus)) in BMfgSubAccount>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.

/*
* Set the return status to success and return 
*/
if oiReturnStatus = -98 
then assign oiReturnStatus = 0.