Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to compare range with range?

$
0
0

Dear ABAP friends,

 

I have an itab A (structure BAPI6109SEL) at runtime and I have a Z-table B with the same structure.

Now I want to check if the value of any line in the itab A is in the content of Z-table B (like “if A is in B”).

E.g. 

- I EQ 123 <-> I BT 124 129 -> FALSE

- I CP ABC* <-> I BT ABC000 ABC999 -> RIGHT

- I CP 506* <-> I BT 5066000 5069ZZZ -> FALSE

 

I know that I can compare each field of the structure and replace the CP (*) by an interval 000 (low) and 999/ZZZ (high). But this is very expensive coding.

 

Is there any clue to do it in an easier way!

 

Thanks in advance!

Britta


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>