Skip to Content

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

How to compare the range of values with an internal table values

Hi,

I have 10 select-options in my selection-screen.

and I am using only 2 select-options in my select statment.

But while displaying my output I need to compare the data for the remaining fields with my obtained data which is in an internal table.

Thanks,

Tags:
Former Member
Former Member replied

You can use WHERE clause in your LOOP statement to filter out your previously selected records based on your other selection parameters. Your code should look somewhat like this.

LOOP AT ITAB1 WHERE KUNNR IN P_CUSTID

AND GJHAR IN P_ACYEAR

AND MANSP IN P_DUNBLK.

ENDLOOP.

You can use multiple select options in LOOP statement.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question