2023 Oct 18 1:29 PM
Hi,
I have included a locally defined Structure in another one.
TYPES: BEGIN OF ty_record,
v_begda(10),
v_endda(10),
END OF ty_record.
TYPES: BEGIN OF ty_final_struc,
INCLUDE TYPE ty_record,
fsc TYPE atwrt,
END OF ty_final_struc.
TYPES: BEGIN OF ty_record,
v_begda(10),
v_endda(10),
END OF ty_record.
TYPES: BEGIN OF ty_final_struc,
INCLUDE TYPE ty_record,
fsc TYPE atwrt,
END OF ty_final_struc.
Is it possible to dissolve the Include so I can directly access the Fields?
Now, I can only access them like this:
my_struc-include-v_begda = ''.
my_struc-include-v_begda = ''.
Background:
I want to move a filled Table to another one with more Fields in it, but with this Include Structure I cannot use MOVE-CORRESPONDING.
2023 Oct 18 2:16 PM
2023 Oct 18 2:16 PM
2023 Oct 18 2:22 PM
2023 Oct 18 4:20 PM
I'm pretty sure you've got an example in the ABAP Documentation for "INCLUDE TYPE".