project BLF > class BBusinessComponent > method StopExternalInstances

Description

Stop instances that are started in AdditionalUpdates as part of current transaction


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method BBusinessComponent.AdditionalUpdates

QadFinancials
method BBusinessComponent.AdditionalUpdates


program code (program/bbusinesscomponent.p)

/* ======================================== */
/* Stop External Instance for BJournalEntry */
/* ======================================== */
if viBRoleBusCompID <> 0 and
   viBRoleBusCompID <> ?
then do:
    <I-1 {bFcStopInstance
            &CLASS           = "BRole"}>
    assign viBRoleBusCompID = 0.
end.

If viBResourceID <> 0 And
   viBResourceID <> ?
THEN Do:
    <I-2 {bFcStopInstance
            &CLASS           = "BResource"}>    
    Assign viBResourceID = 0.
End.

<ANCESTOR-CODE>