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

Error messages

Former Member
0 Likes
728

hi there.

i want to use a message which after showing the message remains on the same screen as when i use message of information type it continue the execution and if i use error message it stop execution i want to use a message which halt the application to same screen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

Hello Bhupinder,

Use message type <b>e</b> in proper validatation i.e,

if sy-subrc <> 0.

message exxx(xxx).

else.

stmts.

endif.

reward if helpful.

Regards

--

Sasidhar Reddy Matli.

6 REPLIES 6
Read only

Former Member
0 Likes
698

Hi,

Try this..



* Give success message.
  MESSAGE S208(00) WITH 'Invalid data'.
  
* leave the screen..to stay in the same screen..
  LEAVE SCREEN.

Thanks

Naren

Read only

Former Member
0 Likes
698

hi singh,

use message type <b>s</b> or <b>w</b>,

ex:

message s001(zsmaple).

leave screen.

reward points if helpful,

regards,

seshu.

Read only

Former Member
0 Likes
699

Hello Bhupinder,

Use message type <b>e</b> in proper validatation i.e,

if sy-subrc <> 0.

message exxx(xxx).

else.

stmts.

endif.

reward if helpful.

Regards

--

Sasidhar Reddy Matli.

Read only

Former Member
0 Likes
698

Hi,

Use the Information and then EXIT .. this will work same as Error message but remains the same screen .....

MESSAGE I001 with TEXT-001.

EXIT.

Regards

Sudheer

Read only

Former Member
0 Likes
698

hi,

try with 'S' or 'W' type messages

if useful reward some points.

with regards,

suresh.

Read only

dev_parbutteea
Active Contributor
0 Likes
698

Hi,

try this :

MESSAGE 'Wrong column name!' TYPE 'I' DISPLAY LIKE 'E'.

It will display like an error message but act as information message!

Regards,

Sooness.