2009 Dec 10 11:40 AM
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
Hi,
Try to handle the exception. You do this by using try catch...endtry block. Call the submit statement within it.
Might be helpful.
2009 Dec 10 11:54 AM
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.
2009 Dec 10 12:05 PM
2009 Dec 10 12:06 PM
Hi,
Try to handle the exception. You do this by using try catch...endtry block. Call the submit statement within it.
Might be helpful.
2009 Dec 10 1:19 PM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |