cancel
Showing results for 
Search instead for 
Did you mean: 

Validate Select Options against contents of an internal table

Former Member
0 Kudos

HI Guys,

I have a select option S_BUKRS

I need to validate the entries of this select option against the contents of an internal table I_BUKRS in which valid values of BUKRS are populated.

I_BUKRS is an internal table with just one field of BUKRS

How can this be achieved? Any suggestions and help are welcome!

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

since the structure of both i,e select-options and ur internal table is same.

You can do

if s_bukrs[] = i_bukrs[].

-


else.

........................

endif.

Thanks,

Reward if useful,

Gaurav

Former Member
0 Kudos

you code this validation on the

AT SELECTION-SCREEN OUTPUT

loop at S_BUKRS and read the contents of I_BUKRS.. if the value does not match then give error...