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

Error message in User exit

Former Member
0 Likes
394

Hi ,

This is my requirement . In the exit EXIT_SAPLV56U_002 we are calling a user routine and this user routine is defined in the include some zxxxxx . Now I am trying to modify this user routine in such a way that I am doing some validations against a ztable and have to give an error message saying the transportation planning point is obsolete . The user has to see the error message and the shipment should not be created . Can anyone please guide me how to achieve that .

Thanks ,

Daniel .

1 REPLY 1
Read only

kathryn_mcgallicher
Active Participant
0 Likes
346

Hello,

I'm not sure this is what you are talking about, but maybe it will help.

We are not using this user exit, but in the CCS side, we would do our validation in the Z include and "pop" a message to the user using, for example, POPUP_TO_DISPLAY_TEXT_LO. We would also set the appropriate error condition in the Z include so that it is returned to the original user exit call. It appears that in your scenario you can relay an error back by setting e_errors_occurred to true. It will require testing and/or debugging to confirm that the shipment will cancel.

Hope this helps!

Kathy