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...

Former Member
0 Likes
772

Hi,

I am calling a report with 'SUBMIT' statement... (Submit and Return), the called program has some error message so the control is getting stopped there itself without coming back to calling program.

How can I get back the control to calling program even the called program has error in it???

Correct answers will be greatly appreciated!!

6 REPLIES 6
Read only

Former Member
0 Likes
594

Hi Ali,

It depends...

If the called program has an error and ends up with Warning or Status mesage types, then the control will come back to the calling program.

But if the called program ends up with an error message with E message type, then the control won't come back to the calling program.

Solution:

You can modify the called program to display the error messages in an internal table instead of flashing an error message. By doing this, you can import the error message internal table into ur calling program and display it here itself or ignore it.

Cheers,

Sam

Read only

0 Likes
594

I am calling a standard sap program...

Read only

Former Member
0 Likes
594

Hi Ali,

Pass the parameters to that SUBMIT program. Just debug the program and find out the condition for that eroor message,definately u will get the solution.

Hope this helps you.

Regards,

Kumar.

Read only

Former Member
0 Likes
594

If an Error message is raised the program is stopped. We will not get the control

back. There is no other way..

Read only

Former Member
0 Likes
594

hi

good

if you have error in the calling program than the submit statement wont work in that point,so i would suggest you to debug the calling program ,fix the error and than you try with the submit statement.

Thanks

mrutyun^

Read only

0 Likes
594

Hello Mrutyunjaya,

This is not error in the program!!! I am taking about handling of error message type.

Suppose there is an error message raised in the called program, without stoping the control there itselft how will you take it back to calling program...