Skip to Content

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

Different behavior: SELECT where IN pattern / check it_tab-f IN pattern

scenario:

I use the pattern 'A++++' in the select-option so_akey.

Table ztab has 5 entries with the following key:

AAB4

AAC4

AAD4

AAE4

A5555

problem

I get different results by using

a) RESULT: 1 line (A5555)

select * from ztab where akey IN so_akey.

write ztab.

endselect.

and b) RESULT 5 lines (all entries)

select * from ztab into TABLE it_ztab.

loop at it_ztab.

check it_ztab-akey IN so_akey.

write ztab.

endloop.

Any ideas?

Actually I need both variants. How can I manipulate so_akey, just before excution comes to b), so b) shows the same results as a) ?

Regards

Norbert

Tags:

Helpful Answer

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