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

select option

Former Member
0 Likes
473

Hi Experts,

I m getting one problem while using select option. In my selection screen, I have one field named as S_KUNNR. In selection screen I entered values in S_KUNNR as 01* to 22*.

In my program I have condition

CHECK LV_KUNNR IN S_KUNNR.

If the value of LV_KUNNR = 01 then it won't go for further processing whereas if the value of LV_KUNNR = 02 & so on then it will consider for further processing.

My requirement is to consider 01 value also in my output.

Any suggestion pls???

1 REPLY 1
Read only

anub
Participant
0 Likes
413

Hi,

Pls check the code below

tables : kna1.

data : begin of ikna1 occurs 0,

kunnr like kna1-kunnr,

end of ikna1.

select-options : s_kunnr for kna1-kunnr.

ikna1-kunnr = '0100000000'.

append ikna1.

ikna1-kunnr = '0200000000'.

append ikna1.

ikna1-kunnr = '0300000000'.

append ikna1.

ikna1-kunnr = '0400000000'.

append ikna1.

ikna1-kunnr = '0500000000'.

append ikna1.

ikna1-kunnr = '0600000000'.

loop at ikna1.

check ikna1-kunnr in s_kunnr.

message 'Got the answer' type 'I'.

exit.

endloop.

I hope this is of some use to u.

Reward if useful.

Regards,

Anu.