Parameters
| icCompanyCode | input | character | |
| iiCompanyId | input | integer | |
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
QadFinancials
program code (program1/bbasedaemonprocessor.p)
if (iiCompanyId <> 0 and
iiCompanyId <> ? and
iiCompanyId <> viCompanyId)
or (icCompanyCode <> "" and
icCompanyCode <> ? and
icCompanyCode <> vcCompanyCode)
then do:
<I-44 {bFcOpenInstance
&CLASS = "Session"}>
<M-23 run SwitchCompany
(input icCompanyCode (icCompanyCode),
input iiCompanyId (iiCompanyId),
output viFcReturnSuper (oiReturnStatus)) in Session>
<I-87 {bFcCloseInstance
&CLASS = "Session"}>
if viFcReturnSuper <> 0
then oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0
then return.
<M-42 run ReadSessionValues (output viFcReturnSuper (oiReturnStatus)) in BBaseDaemonProcessor>
if viFcReturnSuper <> 0
then oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0
then return.
end.