1.1 Data Modeling in SAP
1.1 Data Modeling in SAP
This will retrieve the data dictionary information for the field in question.
Field Data is the frame of interest. However, in this example a structure has been
presented as the information behind the screen field. Ultimately, we are looking for either
a transparent table or a view. There is no way to select data from a structure since it is
only available at runtime within the program using it.
If you have authorization to SE15 follow the directions under the SE15 heading. If not,
the following screen shots will perform virtually the same function.
1
Double click on the Field Name. By double clicking SAP navigates to the data dictionary
for the structure ITOBATTR and places the cursor on the field EQUNR in that structure.
I have highlighted the line for emphasis; SAP does not automatically do this.
2
To find out what database table EQUNR is used in we must approach it from the data
element or in this case the component type column of the structure. To do this double
click on the EQUNR entry in the component type column.
By double clicking you are presented with the details regarding the data element. From
this point we can use the where used icon (highlighted in red) to find the occurrences of
this data element in transparent tables. Single click the where used icon.
3
In the where used list data element pop up window ensure that table fields are selected.
Then hit the green checkmark.
The resulting list will be all transparent tables where the data element is used. SE16 may
be used against these transparent tables to present actual data stored in the database.
4
Once you’ve located the table click in the box beside the field. Then click on the eye
glasses on application toolbar to take you to the data dictionary entry for the transparent
table.
5
From here you can follow the menu path illustrated below to see the table entries. Or
transaction SE16 performs the same function.
Don’t be fooled by the create entries path, you WON’T have authorization and if you did
you’ll want to give it back.
6
If you have SE15 use these instructions:
To get to the transparent or view table level use SE15 and search for data element
EQUNR.
SE15
7
From the results use the where used list to find the tables.
8
From the list returned check the table of interest and click the eyeglasses to display the
data dictionary information regarding the table.
9
Set the user parameters to display the table data in an ALV Grid Display. Also notice the
setting for field text or field name.
10
From the list output, paste a screen shot into word and start building the data model.
It is very beneficial to create your own data and see what entries in what tables are
created when a transaction is performed.
Another Method:
SQL Trace
Open 2 SAP Sessions
The 1st session will be used to run the transaction in this case IW32.
11
The 2nd session will be used to turn on the Trace.
Click the Trace On Button to turn on the trace for your user id.
12
Run the transaction in the other session and then toggle back to this session and switch
the trace off. Click the list trace button to see the path the program took to get the data.
13
Another Example:
By looking at the program a particular transaction is using, the tables used can be
determined. Use the menu path below to get the program name.
14
Enter the program name SAPLCOIH in SE80.
If you don’t have authorization for SE80 follow the instructions under the SE38 heading!
15
Then drill into the dictionary structures.
16
If you don’t have authorization to SE80 you can navigate there from SE38.
Start by either entering the program name in SE38 or by double clicking the name in the
status box.
Then click on the Hierarchy icon this will launch SE80.
17
Data Modeling In SAP
Transactions
SD11 Data Modeler
SE12
SE16
If you don’t have authorization to SD11 then the following method can be used to get to
the data model. From the data dictionary display, either through SE11/12 or by double
clicking the field name after hitting F1, click on the where used icon on the application
toolbar. Then from the pop screen make the following selections.
18
Make sure you de-select any other choices in this popup all we are concerned with is
entity types. Then click the green check mark.
19
Choose one from the list and click the eye glasses or click the where used icon to find the
entity in Data Models.
Where Used produces a popup window.
20
Choose the data model you are interested in and click display.
Then click the graphics icon to display the entity relationship diagram.
This transaction allows you to look at SAP delivered ERD Diagrams and drill down to
the transparent table level.
A search can be performed for either a model or a single entity.
For example a model name is PM_PMWOC – Plant Maintenance Order Administration.
I found this by selecting the data model radio button and clicking the drop down
as follows in the screen shots.
21
22
Then by drilling down to the specific module:
Now that the modeling object field is populated click on the Data Model button.
The next screen displays the contents of the model PM_PMWOC.
23
24
A break down of the entities:
To view the contents of model PM___65201 single click on the folder. The entities are
then listed starting with 15660.
By double clicking on the model the definition screen is displayed:
25
From the definition the actual graphic of the model can be displayed by clicking the
application toolbar Graphic Icon. This will launch the SAP Graphics session and display
the ERD diagram.
Please note: SAP delivered Functions/Process definitions is also available. Click the
Functions/Processes button to display the list. Then choose the one of interest.
26
The entities that relate to this model will be displayed with the relationships.
27
28
We can now drill into each entity to determine what table is associated with the entity.
Click on the entity of interest and then click on the dictionary button.
29
30
SE12/11 Foreign Key Relationships Diagram
Then click the graphic icon to display the foreign key diagram for this table.
31
Choose the tables of interest and then the copy button to launch SAP Graphics.
32
The where used icon can be used to find a table in an entity. This allows a path back
to the data model in SD11. From SE12 enter a table name and click the where use icon.
In the popup window deselect everything but entity type and click the continue button.
33
The search will produce a list of entities. Notice 15660 was the example I used earlier.
Click the display icon to go to the entity definition. Then click the graphic icon to
display the entity and add its relationship by using the predecessors and successors icons
. From the list choose the entities of interest to build the desired ERD diagram.
34