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 to show this error message

former_member582701
Contributor
0 Likes
489

Hello,

I need to show an error message when the input parameters of the program are not filled, without to exit of the program.

In other words i need to do the same that if i put this parameter as Obligatory, just that i have to show another message instead of standard "Make an entry in all required files".

Thanks

Manel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
453

you can do this...

at selection-screen.

if p_one is initial.
 message e001 with 'enter the value for something'.
endif.

if s_matnr is initial.
 message e002.
endif.

2 REPLIES 2
Read only

Former Member
0 Likes
454

you can do this...

at selection-screen.

if p_one is initial.
 message e001 with 'enter the value for something'.
endif.

if s_matnr is initial.
 message e002.
endif.

Read only

Former Member
0 Likes
453

I suggest to use message type 'S' instead of 'E'. This keeps all the selection screen fields open without exiting from selection screen.

at selection-screen.

if p_one is initial.

message S001 with 'enter the value for something'.

EXIT.

endif.

if s_matnr is initial.

message S002.

EXIT.

endif.