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: 

Catch Error Message after submit and return.

Former Member
0 Kudos

Hi,

Can someone tell me how do i catch the messages/errors thrown while using submit and return. Please note that there is no way by which i can modify the report which i am calling in submit and return. I can just use the report.

Here is my call to the report:-

if iv_piecelist is not initial.


SUBMIT zcheck_quarantine_piecelist
WITH o_trkorr = iv_piecelist
AND RETURN.

ELSEIF iv_object is not INITIAL.


SUBMIT zcheck_quarantine_piecelist
WITH p_usage = 'X'
WITH p_hdb = 'X'
WITH o_objnam = iv_object
WITH p_object = iv_objecttype
AND RETURN.

ENDIF.

This is how i load the output of submit and return :-

cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).
ASSIGN lr_pay_data->* TO <lt_pay_data>.

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

You can't ...

Even putting the SUBMIT into a function module and catching error_message doesn't work (as documented).

The only way would be calling in background mode and analyze the log afterwards.

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

You can't ...

Even putting the SUBMIT into a function module and catching error_message doesn't work (as documented).

The only way would be calling in background mode and analyze the log afterwards.

Former Member
0 Kudos

Yes.. you are right. We used the same method of running a background job of catching and displaying the message.

Many thanks.

Regards,

Jitesh