Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Comparison data in Internal Table.

Hi all,

If I have an internal table as below: -

ITEM TANUM VLTYP

1 0000002627 CR3

2 0000002627 CR3

3 0000002627 CR3

4 0000002627 TTY

5 0000002627 MRK

6 0000002627 MRK

7 0000002627 MRK

How could I do like this:

If Item 1 and Item 2 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

If Item 2 and Item 3 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

If Item 3 and Item 4 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

If Item 4 and Item 5 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

If Item 5 and Item 6 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

If Item 6 and Item 7 are same TANUm & VLTYP, PERFORM FUNCTION_ABC. If not, PERFORM FUNCTION DEF.

Thanks in advance.

Tags:
Not what you were looking for? View more on this topic or Ask a question