09-18-2008 4:57 AM
hi Al,
I am getting an error message on screen , i want to supress this and hold data from screen , how can this be done,
Regards
Anuj
09-18-2008 4:58 AM
Hi ,
which error msg u are talking abt ?, we cannt assume things.
regards
Prabhu
09-18-2008 5:05 AM
I am talking about error which are displayed with MEssage keyword in Screen programming.. and when i navigate thru screens i want to hold data in case of error and navigate ..
09-18-2008 4:59 AM
First confirm the message and screen number from where it's poping up.!
Method to get the message>debug>break-point on statement>message>F7 preceed.
09-18-2008 11:57 AM
Hi,
you mean you don't want to flash these error messages but wants to hold them ,in this case just try to use FM 'MESSAGE_TEXT_BUILD'
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = sy-msgid
msgnr = sy-msgno
msgv1 = sy-msgv1
IMPORTING
message_text_output = g_message.
where you can also pass the particular message class and message numbers also and in g_message you will get the message text.
09-18-2008 12:00 PM
Hi Neha,
Thanks for answer , however i want to flash message and hold data and still go back to parent screen..
regards
Anuj
09-18-2008 12:07 PM
Ok,
you can do this using the same the message can be flashed and you can even hold it using this.
09-18-2008 12:07 PM
Hi Anuj,
Best possible way is to retain the data:
1. Use EXPORT and IMPORT statements
2. Use Global internal table
Hope this helps.
Let me know the complete scenario to help you better...in case this does not solve your problem
Regards,
Kunjal
09-18-2008 12:13 PM
see i have a parent screen and another screen , i want to go to this screen and come back to parent screen with all errors... right now chain end chain on this second screen doesnt allow me to come back..
09-18-2008 12:18 PM
Hi Anuj,
I think you have to understand the purpose of CHAIN....ENDCHAIN very well.....
They are there to highlight the error and make the required field editable in case of errors......
What are you doing on the second screen.....Let us know to help you better....
Regards,
Kunjal
09-18-2008 12:28 PM
Hi Anuj,
I think you can use warning message on second scrren and then
append all message in message table then come back, i think
it will allow you..
Regards,
Meet