I recently found the new "corresponding" operator in ABAP 7.40. It used to work quite good in all my tests but I came across a scenario where I need some help with it. See the following ABAP Sample Code:
data: lt_item_guid type crmt_object_guid_tab.
select * from crmd_orderadm_i into table @data(lt_orderadm_i) up to 50 rows.
lt_item_guid = corresponding #( lt_orderadm_i mapping table_line = guid ).
So, lt_orderadm_i is a structured table. One of the components is called "GUID".
lt_item_guid is an unstructured table. It just has one column (to store guids) without a name.
Therefore I used "table_line" to acces its single row. Compiler is not happy with that and says:
"The type 'X' is not a structure"
I guess compiler doesnt want to have field "GUID" (of native type 'X') assigned to the structure "table_line".
Is there another way to do this without using loop statement. I want to stick with the corresponding operator
Thanks in advance.