Description
Procedure that controls the Create/Update/Delete operations on the vd_mstr record in vd_mstr.
Parameters
tCreditor | input | temp-table | Temp table instance that contains the data from the financials that is being synchronized with MFG/PRO. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/bmfgsupplier.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-5 run ClearData (output viFcReturnSuper (oiReturnStatus)) in BMfgSupplier>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
<M-3 run ProcessMaintainData (output viFcReturnSuper (oiReturnStatus)) in BMfgSupplier>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
<M-6 run ProcessMaintainDataSave (output viFcReturnSuper (oiReturnStatus)) in BMfgSupplier>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
/*
* Set the return status to success and return
*/
/* JOHBOU: start added code */
if oiReturnStatus eq -98 then
/* JOHBOU: end added code */
assign
oiReturnStatus = 0.