‎2009 Aug 27 2:11 PM
Hi experts.
Is there any possibility to compare two sets in abap code. ?
I have 2 ranges with date type and I want to know if one set inclusive data from second ...
Thanks for answering & regards.
Daniel.
‎2009 Aug 27 2:19 PM
Hi,
Are you looking for something like this?
loop at ranges1-low
IF ranges1-low in ranges2.
flag = 'X'.
ENDIF.
ENDLOOP.
IF flag = 'X'.
write: 'SET1 is inclusive with SET2'.
ELSE.
write: 'SET1 is not inclusive with SET2'.
ENDIF.
You can even try doing the same by comparing SET2 with SET1.
Regards,
Vi
‎2009 Aug 27 2:40 PM
Thanks for your reply Vikranth.
Your example is inclusive one parameter first set into second set. This is very simple method of sets comparing.
Sets for example ranges or select-options could have more complicated definitions, like exclusive some elements from set etc.
Thanks.
Edited by: Danielek on Aug 28, 2009 10:47 AM