Application Development 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: 

ABAP SUBMIT from Custom Report to SAP Standard Report Error

Former Member
0 Kudos

Hi Gurus,

I have a custom report that Submits Data to another report (SAP Standard one), in most cases its working but when the second report (sap standard) terminates with error it actually exits from the whole session closing the Calling custom report also.

How can we bypass this and even when the called (SAP Standard or not) terminates it returns to the Calling program & complete the processes despite the Failure in the SUBMIT statement? (we can catch or display the error, or just replace with NA value...etc.).

Is there another statement that we can use instead of SUBMIT?

Please help!

Regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Muhja.

You must use the '... AND RETURN' statement after SUBMIT. In this case the LUW of the calling program is preserved, otherwise the called program's LUW replaces the LUW of the calling program. Hope this helps. If not, please post your code snippet and let's how we can assist.

2 REPLIES 2

Former Member
0 Kudos

Hi Muhja.

You must use the '... AND RETURN' statement after SUBMIT. In this case the LUW of the calling program is preserved, otherwise the called program's LUW replaces the LUW of the calling program. Hope this helps. If not, please post your code snippet and let's how we can assist.

Former Member
0 Kudos

Thanks Mathweus,

Will try it and let you know.

Regards.