Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Controle batch execution.

omar_elkassi2
Explorer
0 Likes
649

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
612

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

2 REPLIES 2
Read only

Former Member
0 Likes
613

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

Read only

0 Likes
612

thanks a lot

Omar