cancel
Showing results for 
Search instead for 
Did you mean: 

exclude values with infopackage routine

amine_lamkaissi
Active Contributor
0 Kudos

Hi guys,

I would like to exclude some values with an infopackage routine, here my code:

data: l_idx like sy-tabix.
read table l_t_range with key
fieldname
= 'VBELN'.
l_idx
= sy-tabix.
*....
delete l_t_range where vbeln = '1'.

delete l_t_range where vbeln = '2'.
modify l_t_range index l_idx.

p_subrc = 0.


Let's say i would like to exclude values vbeln 1 and 2.


Thanks.


Amine

Accepted Solutions (0)

Answers (1)

Answers (1)

karthik_vasudevan
Active Contributor
0 Kudos

Hi Amine

Infopackage could not handle exclusions and guess that is why you are trying for routine.

If the selections are simple to exclude and just for one time load, use ranges of what you need. In infopackage selections, you could include 1 to 5 and 7 to 10 in order to exclude 6.

Check the below threads for your code.

https://scn.sap.com/thread/913846

Regards

Karthik