2008 Jun 16 12:07 PM
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
2008 Jun 16 12:24 PM
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.
2008 Jun 16 12:12 PM
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
2008 Jun 16 12:13 PM
hi,
instead of error message u can put information so that user can change the PO Number
2008 Jun 16 12:18 PM
Hi,
Try keeping po number in chain endchain and do the validation
in the exit.
Thanks,
Keerthi.
2008 Jun 16 12:22 PM
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
2008 Jun 16 12:24 PM
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.
2008 Jun 16 12:45 PM
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.
2008 Jun 19 10:24 AM
I solved this issue by just re-calling the screen.
CALL SCREEN '4001'.