‎2008 Aug 30 6:39 AM
Hi Abapers,
My Requiremnt is to exclude multiple values which are not in sequence in selection screen.
I want to restrict some values .
please provide sample code.
thanks & regards,
Hari priya
‎2008 Aug 30 6:43 AM
hi Hari Priya
use select options Multiple selection Box
there you can you single value/range of value and with Include or Exclude Function
Regards
Deva
‎2008 Aug 30 6:46 AM
Hi,
Go through the below coding. Here in the selection screen you can exclude the all the PO number which starts from series 72.
SELECT-OPTIONS : s_ebeln FOR ekko-ebeln .
s_ebeln-low = '72*'.
s_ebeln-sign = 'E'.
s_ebeln-option = 'CP'.
append s_ebeln.
clear s_ebeln.
‎2008 Aug 30 6:53 AM
‎2008 Aug 30 7:56 AM
SELECT-OPTIONS : s_matnr FOR mara-matnr.
INITILIZATION.
s_matnr-sign = 'E'. " E means Excluding.
s_matnr-option = 'EQ'.
s_matnr-low = '1000'.
append s_matnr.
s_matnr-sign = 'E'.
s_matnr-option = 'EQ'.
s_matnr-low = '1500'.
append s_matnr.
s_matnr-sign = 'E'.
s_matnr-option = 'BT'.
s_matnr-low = '2000'.
s_matnr-high = '3000'.
append s_matnr.
START_OF_SELECTION.
SELECT * FROM MARA INTO TABLE itab WHERE mara IN s_matnr.
the above s_matnr has values 1000,1500, 2000 - 3000.
so the above code fetches all the values excluding 1000,1500 and between 2000 and 3000.
Regards
Bala Krishna