‎2009 Aug 01 9:21 AM
Hi Experts,
i've to execute 2 batch "batsh2" After "batch1" is finished. my concern is how can i check if the "batch1" execution is finished. Any piece of code?? .
Thanks a lot in advanced.
Omar.
‎2009 Aug 01 9:50 AM
HI,
I assume that your are using session method for batch iunput.
Once the 1st session is processed; check the status of the same in APQI table in the field QSTATE by matchin the QID whihc you obtain when you create the session via BDC_OPEN_GROUP in the importing parameter QID.
Incase the session goes into error then do not process the next session else process the next.
Incase the first session is taking a long time to process; do a recursive select till the session is successful or in error and then only start the next session.
Regards,
Ankur Parab
‎2009 Aug 01 9:50 AM
HI,
I assume that your are using session method for batch iunput.
Once the 1st session is processed; check the status of the same in APQI table in the field QSTATE by matchin the QID whihc you obtain when you create the session via BDC_OPEN_GROUP in the importing parameter QID.
Incase the session goes into error then do not process the next session else process the next.
Incase the first session is taking a long time to process; do a recursive select till the session is successful or in error and then only start the next session.
Regards,
Ankur Parab
‎2009 Aug 01 10:25 AM