0
Structure in ABAP Dictionary

Structure- Structures contain data only during the runtime of a program.

A structure in the ABAP Dictionary is used to centrally describe structure variables that are to contain the fields of various tables.
The definition of a dictionary structure is almost identical to that of a transparent table. The only difference is that declaring key fields and specifying technical settings does not make sense for structures and is thus not required





1) Go to transaction SE11. Click on the ‘Data type’ option on the screen. Enter the structure name and click on Create button.
clip_image002

2) Select the option 'Structure' in the next screen and press Enter.
 clip_image003

3) Enter the Short Description.
clip_image004

4) Enter the Component (Field Name) and Component Type (Data Element).
clip_image005

5) Save, Check and activate.
clip_image006

Append Structure - Belongs to one and only one table (1:1 relation).

1) Go to transaction SE11. Click on the ‘Database Table’ option on the screen. Enter the table name and click on Display button.
clip_image007

2) Click on Append Structure.
clip_image009


3) A pop-up will open enter new structure name and Click on tick button.
clip_image011

4) Enter Short description and Component (Field Name) and Component Type (Data Element).
clip_image013

5) Now save the structure by pressing clip_image014 button present in standard tool bar. Then activate the view with clip_image015 present in application tool bar.
 clip_image016

6) Now you can see append structure is added on your table.
clip_image018

Include Structure – Include structure can be included in many tables (and structures).
We cannot include structure to Standard Table. It can be inserted anywhere in the Table.

1) Go to transaction SE11. Click on the ‘Database Table’ option on the screen. Enter the table name and click on Change button.
clip_image019

2) Go to Menu Edit- Include-Insert.
clip_image020

3)  A pop up will open enter your existing structure name and click on clip_image021 button.
clip_image022

4) Now Structure added in your table.
clip_image024

5) Add same structure in different table.
clip_image026

Article By
Mohammed Khalid Khan
ABAP Consultant


Post a Comment

 
Top