‎2008 May 09 8:23 AM
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???
‎2008 May 09 8:36 AM
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.