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 ranges table record based on internal table record

Former Member
0 Likes
3,707

Hello ABAP Friends,

Is there any way to remove records from a RANGES tables based on entries that are in an internal table? I have an internal table with several prooduction order records in it. I also have a RANGES table with a from/to range of production order records. I want the RANGES table to exclude any of the production order records that are in this internal table. So I want to delete these records form consideration from teh RANGES table.

Can that be done?

I have seen where it is possible to delete internal table entries based on the RANGES table but not the other way around.

Thanks for any advice.

Michael

1 ACCEPTED SOLUTION
Read only

michael_kozlowski
Active Contributor
0 Likes
1,733

Hi,

you can exclude internal table values in RANGES table.

loop at it. "includes the values to delete

  rng-sign = 'E'.
  rng-option = 'EQ'.
  rng-low = it-value.
  rng-high = it-value.
  append rng.

endloop.

Br

Michael

4 REPLIES 4
Read only

michael_kozlowski
Active Contributor
0 Likes
1,734

Hi,

you can exclude internal table values in RANGES table.

loop at it. "includes the values to delete

  rng-sign = 'E'.
  rng-option = 'EQ'.
  rng-low = it-value.
  rng-high = it-value.
  append rng.

endloop.

Br

Michael

Read only

0 Likes
1,733

Thanks Michael, this helped me in an issue.

Read only

Pragnesh_7se7
Participant
0 Likes
1,733

Hi Michael Ryan ,

Create range from internal table and try to delete.

Read only

Former Member
0 Likes
1,733

Thanks Michael for your help. that worked!