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

regarding screen validations

Former Member
0 Likes
429

Hi experts,

could you please suggest me how to do selection screen validations when 5 select options and 2 parameters are there in selection screen.

one more question is how to validate 5 selection screen elements with 2 screen elements should satisfy?

thanks and regards,

shekar

3 REPLIES 3
Read only

Former Member
0 Likes
408

Hi,

If not s_matnr[] is initial.

  • Enter the validation check here

endif.

If not s_vbeln[] is initial.

  • Enter the validation check here

endif.

& so on.........

Read only

Former Member
0 Likes
408

Hi Shekhar,

Try this

if not element1 is initial.

validation..

if validation fail.

l_index = l_index =1

endif.

endif.

if not element2 is initial.

validation..

if validation fail.

l_index = l_index =1

endif.

endif.

if not element3 is initial.

validation..

if validation fail.

l_index = l_index =1

endif.

endif.

..... so on

if l_index can give you hw many validations failed.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
408

hi,

if fld1 is initial.

loop at screen

giv valdation stateent.

modify screen.

endloop.

endif.

if fld2 is initial.

loop at screen

giv valdation stateent.

modify screen.

endloop.

endif.

if fld3 is initial.

loop at screen

giv valdation stateent.

modify screen.

endloop.

endif.

if fld4 is initial.

loop at screen

giv valdation stateent.

modify screen.

endloop.

endif.

if fld5 is initial.

loop at screen

giv valdation stateent.

modify screen.

endloop.

endif.

same for other flds 4 validation.

if useful reward some points.

with regards,

suresh babu aluri.