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

former_member582701
Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.