project QadFinancials > class BAPMatching > method AdditionalUpdatesAllQueriesStop

Description

AdditionalUpdatesAllQueriesStop: Submethod of AdditionalUpdatesAll that is in the same segment and that makes sure queries are stopped after a major loop is run.
Note that also EndComponent in a class is started as repetitively an instance-less method in that class is run.


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BAPMatching.AdditionalUpdatesAll


program code (program6/bapmatching.p)

/* ================== */
    /* Exception handling */
    /* ================== */
    assign oiReturnStatus = -98.
    
    /* ============================================================================================================ */
    /* Optionaly Start queries used in the block from here onwards                                                  */
    /* The instance of BMfgPOReceipt is stopped here as we repetitively called the instance-less method             */
    /* GetAccountInformationOnPOReceipt in it and this is more performing then to use vhFcComponent=? in this case  */
    /* ============================================================================================================ */
    <Q-1 run CInvoiceByMatchingInfo
       (Stop) in BCInvoice >
    <Q-2 run CreditorForGLDivProfileDetails
       (Stop) in BCreditor >
    <Q-3 run AccountDefaultMasterByPrimKey
       (Stop) in BMfgAccountDefaultMaster >
    <Q-4 run SystemAccountControlForAll
       (Stop) in BMfgSystemAccountControl >
    <Q-5 run ProductLineForMatchingAcc
       (Stop) in BMfgProductLine >
    <Q-6 run PendingVoucherForMatchingAcc
       (Stop) in BMfgPendingVoucher >
    <Q-7 run DomainForInventoryControlFile
       (Stop) in BMfgDomain >  
    <Q-9 run ProductLineDetForMatchingAcc
       (Stop) in BMfgProductLine >
    <Q-10 run GLByGLSystemType
       (Stop) in BGL >   
    <Q-11 run WorkOrderRoutingByDomLotOper
       (Stop) in BMfgWorkOrder >
    <I-12 {bFcCloseAndStopInstance
            &CLASS           = "BMfgPOReceipt"}>
    
    /* ================== */
    /* Exception handling */
    /* ================== */
    assign oiReturnStatus = 0.