Sunday, January 27, 2019

How to create a Include Structure in SAP SE11?

Include structure.

Prerequisite: User should know how to create a Database table.
Example if we need to maintain Temporary and Permanent address in the table. For this, we will define all address related fields in a structure and will include this structure twice in the table.
Include structure: allows adding one or more structure into structure or table. Also placed positioning anywhere. Up to 6 include structure can be used in a table. Include structure is used to include the structure to the custom table.
What is structure?
The structure is a list of fields defined under a name, which is used to process data at run-time in SAP ABAP applications.
Structures are two types one is global structure and another one is local structure. The local structure can be created in ABAP programs and global structure can be created in the data dictionary and can be reusable in different objects.
Step's to create  a structure in the data dictionary.
Go to SE11, select Data Type radio button and click on create button.
A pop up will open, select structure radio button and continue.
Provide a short description, add some fields, Maintain enhancements category, Save and Activate the structure
The structure is created, now we can use this structure in our ABAP programs & database tables.
Now include structure is created we can add to a table or database table.
.Include  structure name.
exp: Field(.include) data element (ZSAP_STRUCTURE).
Add Include structure to a table an Activate table.

Previous topic...                                                                                             Next Topic

No comments:

Post a Comment