Hello,
I've found one strange issue. It looks that it's an issue in SAP Kernel.
If I try to create a program with the following code:
TYPES: BEGIN OF ty_structure_1,
voleh TYPE i,
END OF ty_structure_1.
TYPES: BEGIN OF ty_structure_2,
voleh TYPE i,
END OF ty_structure_2.
TYPES:
BEGIN OF ty_complex_structure,
structure_cause TYPE ty_structure_2,
END OF ty_complex_structure.
CLASS local_class DEFINITION.
PUBLIC SECTION.
DATA: ms_structure TYPE ty_structure_1.
METHODS: constructor.
METHODS: get_structure
RETURNING VALUE(rs_structure) TYPE ty_structure_1.
ENDCLASS.
DATA(lo_class) = NEW local_class( ).
DATA(ls_complex_structure) = VALUE ty_complex_structure(
structure_cause = CORRESPONDING #( lo_class->get_structure( ) )
).
CLASS local_class IMPLEMENTATION.
METHOD get_structure.
rs_structure = ms_structure.
ENDMETHOD.
METHOD constructor.
ENDMETHOD.
ENDCLASS.
and then try to check or activate it, system shows message and session is gone:
Kernel release is 745.
SAP NetWeaver is 7.5 SP 04 (07/2016).
Can someone else check that in your system?
Thanks and Best Regards,
Andrei