09-24-2008 12:51 PM
Hi friends,
I want to show an error message in ZXCOFU05 user exit.
When I write :
message 'Fill value' type 'W'.
leave message.
It is ok for first time. When my clause executed. It is display Fill value message and after that return prev. screen.
But when I press again save button it couldn't handle message.
Shortly : How can I display an error message in user exit and after message return prev.screen?
Thanks
09-24-2008 1:43 PM
What is best way for displaying error messages after that turn previous screen?
09-24-2008 1:50 PM
Hi,
You want to show an error message or a warning ?
regards,
Advait
09-24-2008 1:53 PM
Try with Error message and see..Ideally it should stop in the screen from where the error triggered.
09-24-2008 2:11 PM
09-24-2008 2:12 PM
Hi,
Then simply change the Type of the Message to 'E' instead of 'W', this will solve your problem.
regards,
Advait
09-24-2008 2:21 PM
>
> But when I press again save button it couldn't handle message.
>
> Shortly : How can I display an error message in user exit and after message return prev.screen?
This means that the second time you press save your userexit code is not executed, so try coding a breakpoint before the message statement and check whether the program control stops in that.
Regards
Karthik D
09-25-2008 7:07 AM
Dear Karthik,
You are right. First time my user exit execute, after that report automatically call message located Function Module LCOPDU13 504th row
IF NOT SY-MSGID IS INITIAL.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Message number is 806 message id is RU.
Can you help me for fix this situation? I just want to add a data control in ZXCOFU05 user exit. For user fill data (werks based)
Thanks your helpful answer
09-24-2008 6:05 PM