on 03-01-2009 12:47 PM
Dear All,
I have a field in my application which consist of list of values and and when the user enters the value in the field which is not there in the Possible list of values the application will show the Error as The value entered is not in the possible list of values.This is the standard message i am getting it and i wanna to capture the message in some variable. How can i do that and from where i am getting this error message.
Thanks
Shareef.
Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...
Every message have some parametes associated with that like msgid, msgty, msgno.
As any exception will occur these values will come in following parameters sy-msgid, sy-msgty, sy-msgno. Get these values in the variable in the following way And You can use it anywhere.
data: lv_errornumber TYPE symsgno,
lv_msgid type symsgid.
lv_errornumber = sy-msgno.
lv_msgid = sy-msgid.
msgid contains the message class name.
After getting msgid go to transaction SE91 Enter the classname You will get all the messages of that class.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.