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 validate mandatory fields before execution?

Former Member
0 Kudos

Hi Experts,

I have lot of selection screen fields. so i am putting all these into number of tabs.

as per each tab wise i am fetching the data.

all the tabs contain same screen number.

here problem is if i enter one mandatory field in one tab and try to execute. it is not fetching the data nor it is not showing any warning/error msg for values in remaining mandatory fields in other tabs.

can anybody tell me how to solve this.

Thanks in Advance,

venkat

3 REPLIES 3

Former Member
0 Kudos

Option 1 : use the keyword 'MANDATORY' in the parameters/select-option declarations

Option 2 : check for field values in 'AT SELECTION-SCREEN' and issue Error messages

~Piyush Patil

Former Member
0 Kudos

You need to use event AT SELECTION-SCREEN ON <> for each select-option.

Suppose you have select-option S_AMTNR, then

AT SELECTION-SCREEN ON S_MATNR.

if s_matnr EQ <>.

message E000.

else.

..

endif.

This will solve ur problem

Regards,

Prashant

Former Member
0 Kudos

Hi all,

Thanks for your inputs.

requirement changed. so no need for validation.

Regards,

venkat