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

RF screen FM error message handling

Former Member
0 Likes
1,120

Hi Experts,

I have created RF transaction to create transfer orders to for moving storage loc.

Using the FM LEINT_To_MOVE_SU_CREATE

The issue is if the FM returns any Exception..its directly displayed in the status bar of the main SAP screen.

How can i capture the FM exception and show them on the RF screen itself.

Need help on this.

Thanks

Jaif

Hi Experts,

I have created RF transaction to create transfer orders to for moving storage loc.

Using the FM LEINT_To_MOVE_SU_CREATE

The issue is if the FM returns any Exception..its directly displayed in the status bar of the main SAP screen.

How can i capture the FM exception and show them on the RF screen itself.

Need help on this.

Thanks

Jaif

2 REPLIES 2
Read only

Former Member
0 Likes
707

You need to check sy-subrc and capture those exceptions and messages from sy-msg* variables. Once you know exception is raised by FM, prepare your own screen output as per your RF screen setting (8x40 or 16x20) and populate proper message with message variables on custom error handeling screen.

Regards,

Pranav

Read only

0 Likes
707

Hi,

The problem is that when the FM executes, before coming to sy-subrc check the FM gives hard stop error from inside the FM.

How can I handle that in or how can I capture that message before it is actually displayed.

Thanks