Skip to Content
avatar image
Former Member

ABAP SUBMIT from Custom Report to SAP Standard Report Error

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 10, 2016 at 09:58 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 10, 2016 at 11:53 AM

    Thanks Mathweus,

    Will try it and let you know.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded