12-29-2018 1:56 AM
Is there a big difference between a DDIC structure created via t-code SE11 and a structure made as an attribute in an ABAP class?
When would you prefer to make one over the other?
12-29-2018 7:22 AM
A DDIC structure looks like a structured *TYPE* in a class (TYPES), not an attribute (DATA/CLASS-DATA).
Always prefer to define a type in a class (or interface), and if it's not possible then define a DDIC structure.
Here are some examples when A DDIC structure is required:
12-29-2018 7:42 AM
Hi,
I am not sure that I have understood your question completely,
DDIC Structure: Once Structure has been created via SE11, It will be common to all objects. we can utilize it in any of our objects ( classes, programs.. ) by directly refer that structure.
Class Structure: We can directly refer the global structure ( SE11 ) in the attribute or can create our own structure with TYPES and refer it. This Structure ( TYPES ) will be visible outside of the class also if it is an public.
If your structure needs to be utilized only in the class, you can create the structure inside the class than creating in SE11.
Please let me know if you need more details.
12-30-2018 11:17 AM
I use class/interface based types when the type is related only and solely to the class or interface (even if used by other classes/interfaces). Otherwise DDIC.