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

comparing field with select-option

Former Member
0 Likes
658

HI

i have one slect option

s_bukrs for coas-bukrs.

and

loop..

if w_bukrs eq s_bukrs"here is the problem,w_bukrs is

"holding single value and s_bukrs a range,so in such

"case how i can do comaprison

..

endif.

endloop

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

hi now ur using

EQ. instead of that u have to use 'IN'. It will work.

HI

i have one slect option

s_bukrs for coas-bukrs.

and

loop..

if w_bukrs eq s_bukrs"here is the problem,w_bukrs is

"holding single value and s_bukrs a range,so in such

"case how i can do comaprison

..

endif.

endloop

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
553

Pl use IF W_BUKRS IN S_BUKRS.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
554

hi now ur using

EQ. instead of that u have to use 'IN'. It will work.

Read only

Former Member
0 Likes
553

Hi Sanju,

Just use IN as said..

if w_bukrs <b>IN</b> s_bukrs

in case you want to compare a single value use..

if w_bukrs <b>EQ</b> s_bukrs-low or

if w_bukrs <b>EQ</b> s_bukrs-high

regards

satesh