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

To stop processing for a PR within user exit

Former Member
0 Likes
441

Hi,

Within the user exit for a PR which is triggered after pressing SAVE (ME52N), I have to display a popup and then I have to stop further processing.

I tried to use STOP after the POPUP Fn. Mod., but a short dumb is getting generated.

I tried using EXIT Stmt, but it is also not working. The PR is getting saved with the wrong data given by the user.

The functionality has to be simiar to a ERROR message but popup should be displayed instead of a msg in status bar.

Kindly help.

Hi,

Within the user exit for a PR which is triggered after pressing SAVE (ME52N), I have to display a popup and then I have to stop further processing.

I tried to use STOP after the POPUP Fn. Mod., but a short dumb is getting generated.

I tried using EXIT Stmt, but it is also not working. The PR is getting saved with the wrong data given by the user.

The functionality has to be simiar to a ERROR message but popup should be displayed instead of a msg in status bar.

Kindly help.

1 REPLY 1
Read only

Former Member
0 Likes
366

Check that user exit is having the exception. If so use that exception and exit.

For Example:

sy-msgno = '000'.

sy-msgid = 'ZSPA'.

sy-msgv1 = 'Please enter Installation No'.

sy-msgv2 = ' '.

sy-msgv3 = ' '.

sy-msgv4 = ' '.

sy-msgty = 'E'.

MESSAGE e044(zspa).

RAISE exit_from_save.

Regards,

Prakash.