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: 

How can i supress error message

former_member196517
Contributor
0 Kudos

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

10 REPLIES 10

Former Member
0 Kudos

Hi ,

which error msg u are talking abt ?, we cannt assume things.

regards

Prabhu

0 Kudos

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 ..

former_member181995
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

Hi Neha,

Thanks for answer , however i want to flash message and hold data and still go back to parent screen..

regards

Anuj

0 Kudos

Ok,

you can do this using the same the message can be flashed and you can even hold it using this.

0 Kudos

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

0 Kudos

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..

0 Kudos

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

0 Kudos

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