Application Development and Automation 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: 
Read only

How can i supress error message

former_member196517
Contributor
0 Likes
1,408

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

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
Read only

Former Member
0 Likes
1,380

Hi ,

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

regards

Prabhu

Read only

0 Likes
1,380

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

Read only

Former Member
0 Likes
1,380

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.

Read only

Former Member
0 Likes
1,380

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.

Read only

0 Likes
1,380

Hi Neha,

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

regards

Anuj

Read only

0 Likes
1,380

Ok,

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

Read only

0 Likes
1,380

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

Read only

0 Likes
1,380

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

Read only

0 Likes
1,380

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

Read only

0 Likes
1,380

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