The document provides a tutorial on creating different data types in the SAP ABAP Data Dictionary (DDIC). It explains how to create a data element, structure, and table type. For each type, it describes the steps to define the name, fields, domains, and other attributes. The goal is to demonstrate how to define custom data types that can then be used across ABAP programs.
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Data type final
1. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 1
Today I am giving a small tutorial on how to create a data type viz. Data
Elements, Structure and Table Type in ABAP Dictionary.
----------------------------------------------------------------------------------------------------------------------------------
Go To Tcode- SE11.
As every field is associated with Data Element. So let’s create Data Element
first.
Click on Data Type ->Enter Customized Name starting with ‘Y’ or ‘Z’.
A Pop-Up Window will appear select appropriate Data Type you want to create.
In this case click Data element.
2. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 2
Every Field in the Table/Structure is attached with Data Element. And every
data element is in fact attached with the domain.There are some default data
element or they can also be created.Let’s now create data element.
Enter Data Element Name and Short Description.
If new domain is needed than create a new domain associated with the new
data element.
To do so->Enter a new customized domain name and double click on it.A
pop up will appear and ask whether create new domain click Yes.
3. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 3
Enter new check values in Value Range Tab as follows:
Check and Activate.
Click Enter.
4. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 4
Go to Data Element Save, Check and Activate.
Click Enter.
5. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 5
Congratulation!!! You created Data Element
6. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 6
(ii). Creating Structure from Data Type:
Table Structure does not contain any data within it. It’s just a skeleton (frame).
It is data type in ABAP dictionary and composed of different components such
as data elements, table types, structures and database tables. It only contains
header information of the structure. It is only activated at run time in a
program. That’s why there is no need of data class and size category which is
defined in Technical Settings in the table. Thus there is also no need of primary
key for creating structure.
Creating a Demo Structure…
Enter Structure Name & Short Description
Then Enter Field Names.
7. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 7
Save Structure as a local Object or else in your Transport Request.
Click—Extras in the Menu List BarEnhancementEnter.
Press->Enter.
8. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 8
Since it’s a structure for maintaining Organization Data and there are rarely any
changes so we choose Cannot Be Enhanced. But there are various options
available for maintaining structure or any table which must be used as per the
requirement. Although in most of the cases Radio Button “Cannot Be
Enhanced” is selected.
Choose Copy->Enter.
Now Just ClickEntry Help/Check:
This is helpful to make sure that whether the search help is available with the
corresponding field in the corresponding domain. Fixed Values can be maintain
for specific data element in corresponding domain, else value table can be
used.
9. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 9
Double ClickBSTYP
10. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 10
There are some fixed values maintained with domain BSTYP
Similarly Double Click Domain EBELN
Look At the Bottom Most Part. Double Click EKKO.
Click Highlighted Contents.
11. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 11
Domain will take values from the Table Contents (Highlighted Icon ^)
In case if we need to take a field from another table we need to mention the
reference table and reference fields (Example Currency CURR and CUKY) in
such case we need Currency/Quantity Fields. In this there is no such field.
Now Save (Cntr+S), Check (Cntr+F2) and Activate the table (Cntr+F3).
Go Back and Open in Display Mode.
Congratulation!!! You created Structure!!
12. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 12
(iii) Creating Table Type.
When we want to use a Table Type globally i.e. not specific to any program or
Internal Table than we can create a Table Type using SE11. Table Type. It’s
advantage is that once defined it’s valid for use in all programs.
13. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 13
14. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 14
15. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 15
As we have already created a structure ZORG we’ll use it for creating a Table
Type.
Save, Check.
16. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 16
Congratulations!!! You created Table Type in Data Dictionary
SE11.!!!
Here is small activity you can perform by your own.
17. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 17
Similarly Predefined and Reference Types can also be used.
Enjoy SAP ABAP
Thanks & Regards.
Harshul Phadke
18. SAP ABAP Tutorial 3: Creating Data Dictionary (DDIC) Data Types
TRAINER NAME : HARSHUL PHADKE EMAIL-ID :HARSHUL.PHADKE@GMAIL.COM 18