project QadFinancials > class BMfgNumberRangeManagement > method PerformMfgUpdate

Description

Method used to control the update processing of the financial information into the MFG/PRO database. This method must be implemented when utilizing the generic update infrastructure.
THIS MEANS THIS METHOD NEEDS TOP BE OVERRIDDEN IN THE DESCENDANT CLASS, NOT JUST EXTENDED


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/bmfgnrm.p)

/* ================================================================================================ */
    /* Build a comma delimited list of all the buffer handles for the MFG/PRO temp tables that need to  */
    /* be processed by the following process<type>ToMfg call. Ensure that the buffers are in the list   */
    /* in the sequence in which they need to be processed.                                              */
    /* Set the default return status to 'unexpected error'                                              */
    /* ================================================================================================ */
    assign oiReturnStatus     = -98
           vcMfgBufferHandles = string(temp-table tnr_mstr:handle:default-buffer-handle).
    
    /* ================================================================================================ */
    /* Execute the generic processing method that controls processing all of the shared set records and */
    /* all domains linked to the shared set.                                                            */ 
    /* If more than one financial table needs to be processed as part of this transaction then multiple */
    /* calls to the process<type>ToMfg method can be made.                                              */
    /* ================================================================================================ */
    <M-7 run ProcessSharedSetToMfg (input  temp-table tJournalBook:handle:default-buffer-handle (ihFinancialDataBuffer), 
                                input  vcMfgBufferHandles (icMfgBufferHandleList), 
                                output viFcReturnSuper (oiReturnStatus)) in BMfgNRM>
    if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.                                    
    if viFcReturnSuper < 0 then Return.
    
    /* ======================== */
    /* Set ReturnStatus = OK    */
    /* ======================== */
    if oiReturnStatus = -98
    then assign oiReturnStatus = 0.