2025 Mar 05 2:27 PM - edited 2025 Mar 07 9:46 AM
Hi,
I try to read the actual entity with the following EML:
READ ENTITIES OF zrap_a_sales IN LOCAL MODE
ENTITY zsaleshd
ALL FIELDS WITH
CORRESPONDING #( keys )
RESULT DATA(lt_zsales).
The signature of the method:
checkdataset FOR MODIFY
IMPORTING keys FOR ACTION zsaleshd~checkdataset RESULT result.
In "lt_zsales" I got the correct values, but not the mapped field names. I tried already all combinations of "MAPPING FROM ENTITY" but nothing works until yet.
In "lt_zsales" I got the following result:
What I need is the field names from the legacy structure (i.e. document_date, dist_channel, etc). Mapping is already defined in the behaviour definition:
Thank's for any hints!
Request clarification before answering.
READ ENTITY IN LOCAL MODE zi_cubco6
ALL FIELDS WITH CORRESPONDING #( keys )
RESULT DATA(cubco6_entities).
DATA table_data TYPE TABLE OF zcubcot6 WITH EMPTY KEY.
table_data = CORRESPONDING #( cubco6_entities MAPPING FROM ENTITY ).
Prerequisites: in the BDEF of entity zi_cubco6 there is a "mapping for zcubcot6"
See also https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapeml_corresponding.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@handri_gunawanI cannot explain the error message "No mapping is defined...". If the mapping from the create structure is fine you can try to create a variable like "DATA change TYPE REQUEST FOR CHANGE ZI_Header_S." and then first move the data from the read structure to the change structure with corresponding #( ) and then move the data from the change structure to the table.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.