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

SUBMIT and return

manubhutani
Active Contributor
0 Likes
2,828

Hi

Is this possible that SUBMIT and Return statement

returns sy-subrc as 0, although the program submitted has not completed,

In my case, submit statement is submitting a session name to program RSBDCSUB (to execute the session in background).

Thanks and Regards

Manu

4 REPLIES 4
Read only

Former Member
0 Likes
1,409

Hi

Submit and return will return the sy-subrc.In u r case the session is submitted successfully.So thats why it is returning sy-subrc = 0. If u want the session status is process sucessfully or not then check the table APQI.

Regrards,

Raghu.

Read only

Former Member
0 Likes
1,409

This message was moderated.

Read only

Former Member
0 Likes
1,409

Hi,

Try to handle the exception. You do this by using try catch...endtry block. Call the submit statement within it.

Might be helpful.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,409

do it through function module SUBMIT_REPORT and catch the sy-subrc values.

Sorry i understood you question wrong

sy-subrc = 0 because it has submitted the program and returned back successfully,

if you want to check the status of submittes jb then use fm BDL_READ_JOB_STATUS or BP_JOB_STATUS_GET

Edited by: ksd on Dec 10, 2009 6:50 PM