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: 

Error message in User Exit

Former Member
0 Kudos
1,713

Hi All,

I wish to put in an error message on a user exit that gets displayed when the user clicks SAVE if the PO Number is blank.

I can get the error message to appear but I want the user to be able to change the PO number after the message appears but the screen is all grey.

Is there anyway I can let the user change the PO Number after the error message has been displayed in the user-exit?

Many Thanks,

Colm

1 ACCEPTED SOLUTION

vinod_vemuru2
Active Contributor
0 Kudos
255

Hi,

If u display the message as error user will not be able to do any thing. Display the message as information popup using FM AQ_INT_SHOW_MESSAGE_AS_POPUP then u can try below code.

SET PARAMETER ID 'BES' FIELD ur current PO number.

CALL TRANSACTION ME22N.

Please analyze this before implementing as it may cause adverse effects.

Thanks,

Vinod.

7 REPLIES 7

Former Member
0 Kudos
255

Hello,

Plesae try this function module that enables message to appear in user-exit: PTRM_UTIL_MESSAGE_APPEND

Say me if that do what do you want.

Good Luck.

Amal

Former Member
0 Kudos
255

hi,

instead of error message u can put information so that user can change the PO Number

Former Member
0 Kudos
255

Hi,

Try keeping po number in chain endchain and do the validation

in the exit.

Thanks,

Keerthi.

Former Member
0 Kudos
255

Hi,

Acoording to me the user should be able to HIT Enter and the system will automatically open for inputs. This is how most of the std sap transactions work.

cheers

VJ

vinod_vemuru2
Active Contributor
0 Kudos
256

Hi,

If u display the message as error user will not be able to do any thing. Display the message as information popup using FM AQ_INT_SHOW_MESSAGE_AS_POPUP then u can try below code.

SET PARAMETER ID 'BES' FIELD ur current PO number.

CALL TRANSACTION ME22N.

Please analyze this before implementing as it may cause adverse effects.

Thanks,

Vinod.

0 Kudos
255

This FM seems to do the job for me. However I have one issue. I am doing this in VA01 create and order. Once the error is output how do I stop the rest of the processing and display the screen for inputting.

0 Kudos
255

I solved this issue by just re-calling the screen.

CALL SCREEN '4001'.