Skip to Content

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

For all entries changes the order of the itab

Hi Experts

In the following query i have used two internal tables namely it_first and it_zlist.

The material inwhich the it_zlist is different sorting order

After executing this query, the order of the material inwhich the it_first is different from the it_zlist.

What could be the reason, pls explain me on this.

select matnr test zsno ztnam from zmaster1

into corresponding fields of table it_first

for all entries in it_zlist

where matnr = it_zlist-matnr.

Thanks in advance.

Regards

Rajaram

Tags:
Former Member
Former Member replied

Hi Raja,

you can define your internal table as SORTED TABLE ... WITH UNIQUE KEY ...

Kind regards,

Clemens Li

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