ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 03.04.2021
Просмотров: 2377
Скачиваний: 41
Unit 5: Object Dependencies
BC430
All tables of the flight model (package SAPBC_DATAMODEL) with
delivery class A
Note:
All the exercises can be solved with the Repository
Information System.
4.
Determine all the programs that use the table SFLIGHT.
5.
What are the data elements created by your neighbors called?
Hint:
You can determine your neighbor's data elements either
through a string search using the name (if your neighbors adhered to
the given naming convention) or with Last changed by.
6.
Execute the program BC430_CHECK in transaction SE38. It checks whether
your solutions are correct.
138
© 2007 SAP AG. All rights reserved.
2006/Q2
BC430
Lesson: Object Dependencies
Solution 8: Dependencies with ABAP
Dictionary Objects
Task:
Extend both tables ZEMPLOY## and ZDEPMENT## by one field.
Note:
The fields for the change log can be found in the include structure
ZCHANGE##. The new field should therefore be inserted in this
structure. The field is then automatically inserted in tables ZEMPLOY##
and ZDEPMENT## using the include mechanism.
1.
Ensure that a suitable field for the change log is inserted in the tables
ZEMPLOY## and ZDEPMENT## with the minimum possible effort. Use
data element S_TIME.
Note:
The fields for the change log can be found in the include
structure ZCHANGE##. The new field should therefore be inserted
in this structure. The field is automatically inserted in the tables
ZEMPLOY## and ZDEPMENT## using the include mechanism.
a)
In the initial screen of the ABAP Dictionary, select
Data type
and enter
ZCHANGE##
in the corresponding field. Choose
Change
.
b)
Select the
Components
tab page. Enter the name for the new field,
S_TIME
, in the first free row of the component list and in the
Component type
column.
c)
Activate the structure.
2.
Make sure that the field is included in the tables ZEMPLOY## and
ZDEPMENT##. Check the activation log of the tables and structures
involved.
a)
You can find the activation log for the structure under
Utilities
→
Activation Log
. You can see here that the tables ZEMPLOY## and
ZDEPMENT## are activated as dependent objects and were extended
with the new field.
b)
Go to display mode in the maintenance screen for table ZEMPLOY##
(or ZDEPMENT##). Choose
Utilities
→
Table Contents
→
Create
Entries
. You can see here that the table really was extended with the
corresponding field.
3.
Create a list of the following ABAP Dictionary objects:
All domains with fixed values whose names begin with Z
All table fields that use data element S_FNAME
Continued on next page
2006/Q2
© 2007 SAP AG. All rights reserved.
139
Unit 5: Object Dependencies
BC430
All tables of the flight model (package SAPBC_DATAMODEL) with
delivery class A
Note:
All the exercises can be solved with the Repository
Information System.
a)
In the initial screen of the ABAP dictionary, choose
Environment
→
Repository Information System
. Expand the node for the
ABAP
Dictionary
.
b)
Select
Domains
. In the selection screen, enter
Z*
in the first field.
Choose
Edit
→
All Selections
. In the enhanced selection screen,
select
Only domains with fixed values
. Choose
Execute
to generate
the required list.
c)
Choose
Back
twice to return to the initial screen of the Repository
Information System. Expand the
Fields
node. Select
Table Fields
.
Choose
Edit
→
All Selections
and enter
S_FNAME
in the
Data element
field. Choose
Execute
to generate the required list.
d)
Choose
Back
twice to return to the initial screen of the Repository
Information System. The
ABAP Dictionary
node is still expanded.
Select
Database Tables
.
e)
Enter the package
SAPBC_DATAMODEL
on the selection screen.
Choose
Edit
→
All Selections
and enter the delivery class
A
. Choose
Execute
to generate the required list.
4.
Determine all the programs that use the table SFLIGHT.
a)
Go to the initial screen of the ABAP Dictionary. Choose
Database
Tables
and enter
SFLIGHT
in the corresponding field. Choose
Where-Used List
.
b)
The usage in programs is already flagged in the next dialog box.
Choose
Execute
to generate the required list.
Continued on next page
140
© 2007 SAP AG. All rights reserved.
2006/Q2
BC430
Lesson: Object Dependencies
5.
What are the data elements created by your neighbors called?
Hint:
You can determine your neighbor's data elements either
through a string search using the name (if your neighbors adhered to
the given naming convention) or with Last changed by.
a)
You can generate the required list again in the Repository Information
System ABAP Dictionary. Expand the
ABAP Dictionary
node and
select
Data Elements
. You can restrict the selection with the last
changed by date (the last change should be no earlier than the beginning
of the course) at least in the first case (naming convention).
b)
Choose
Edit
→
All Selections
and search for Last changed by.
Note:
If you have two groups of neighbors, you have to use
Multiple selection
.
6.
Execute the program BC430_CHECK in transaction SE38. It checks whether
your solutions are correct.
a)
Start the transaction
SE38
from the input field. Start the program
BC430_CHECK
.
2006/Q2
© 2007 SAP AG. All rights reserved.
141
Unit 5: Object Dependencies
BC430
Lesson Summary
You should now be able to:
•
Explain how the Repository Information System and the Where-used list for
ABAP Dictionary objects function
•
Describe the mechanism for handling dependent objects in the ABAP
Dictionary
•
Differentiate between the active and inactive version of an ABAP Dictionary
object.
142
© 2007 SAP AG. All rights reserved.
2006/Q2