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

Delete Exclude values from Select Options table

Former Member
0 Likes
2,107

Hi All,

User will select multiple selections in Select Options including both Includes and Excludes. Now I need to capture these records into another table with only includes. For example,

Low High Sign Option

1 100 I BT

5 10 E BT

20 E EQ

50 70 E EQ

Now the new should contain Include only with 1 to 100 exluding 5 to 10,50 to 70 and 20 values.

Low High Sign Option

1 4 I BT

11 19 I BT

21 49 I EQ

71 100 I EQ

If anyone has done this kind of issue ,Please suggest me how can I achieve this or share the sample code.

Thanks,

Rajani.

6 REPLIES 6
Read only

Former Member
0 Likes
952

hi,

modify the select-option.

selop-sign = 'I'.

modify selop where sign = 'E'.

regards,

madhu

Read only

Former Member
0 Likes
952

Hi ,

It is a difficult option , as you dont know how the user may enter the data , he can use GT or GE or LE and other possible options .

One more question why do you want to get the inlcude range ???

Regards

Arun

Edited by: Arun R on Jun 26, 2008 5:15 PM

Read only

Former Member
0 Likes
952

Select Option is same as ur internal table

based on your conditions just delete entries form it.

Regards

Bikas

Read only

Former Member
0 Likes
952

Use

LOOP AT S_variable

IF S_variable-low = <your value> or S_variable-high= <your value>

Delete S_variable index sy-tabix.

Endif .

Endloop.

I think it will help you.

Regards,

Swarup

Read only

vinod_vemuru2
Active Contributor
0 Likes
952

Hi Rajani,

I dont understand ur problem. Once u give the include and exclude conditions like u mentioned and used in SELECT query it will take care of these things

i. e. if u give input like

Low High Sign Option

1 100 I BT

5 10 E BT

20 E EQ

50 70 E EQ

Now the select will fetch the records 1- 4 , 11-19, 21-49, 71-100.

Check this in debug mode.

Why do u want to get only the included data in to one table? If u use this select option u have only included records, correct!!!.

Thanks,

Vinod.

Read only

0 Likes
952

Hi Vinod,

Thanks for the response. I have the knowledge that the select options will take care of Excludes automatically. I need this requirement for BW routine. I need to capture the includes with deletion of excludes into another internal table.

Thanks,

Rajani.