Skip to Content
Former Member
Jul 15, 2005 at 09:30 AM

Catching all message errors after submit



Now I'll try to explain my situation.

I have report which generating two message errors:

MESSAGE E080(MM). "error N.1

MESSAGE S305(M3). "error N.2

Also, I have my own function module that submiting this report like this:

submit (REPNAME) with selection-table seltab

exporting list to memory

and return.

I'm using extended syntax(default exception ERROR_MESSAGE) of call function to catch message errors from submit:

call function FM

exceptions ERROR_MESSAGE.

if sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty " We have a message!

NUMBER sy-msgno

INTO msg_text.

write: 'Error', msg_txt.


After all of this, I can't really get what I want.

There are two problems:

1) The first error in report show me a report selection screen with error message of the type 'E' in a status bar, but I don't need this. Also, I caught this error with my FM and that is good.

2) The second error show me nothing, but I can't get the error message with my FM.

Can anybody help me with that?