Hello,
Using the new abap 7.40 capabilities, I'm trying to copy an internal table to another with a condition on a column.
And I receive this error :
Table "" does not have a key "PLNNR". A direct value or a dynamically specified key of the form "(name)" is expected.
Here is the structure of my table :
MANDT MANDT / KEY
PLNNR PLNNR / KEY
COUNTER ZCOUNTER / KEY
SUBMETHOD ZSUBMETHOD
DELETED ZDELFLAG
And following is the code :
DATA : lt_tmp_submethods TYPE TABLE OF zqm_les_jl_subm. DATA : lt_tmp_submethods_2 TYPE SORTED TABLE OF zqm_les_jl_subm WITH NON-UNIQUE KEY plnnr. LOOP AT xtab ASSIGNING FIELD-SYMBOL(<jl_submeth>). lt_tmp_submethods = FILTER #( lt_tmp_submethods_2 USING KEY plnnr WHERE plnnr = <jl_submeth>-plnnr ). ENDLOOP.