Exercise (Chapter 7):
In this exercise, you will adjust the length of the YXXCITY field found in the YXXADD structure, and change the table type of the YXXTA21CA table. In addition, you will maintain various versions of one of your tables.
Objectives
After completing this exercise, you will be able to:
Make changes to Dictionary objects
Maintain versions of Dictionary objects
If you need help with this exercise, the solutions can be found in Development Class YDATADICTIONARY.
Estimated time to complete this exercise: 20 minutes
Exercises
The following exercises provide practice working with the concepts learned in Chapter 7.
Chapter 7, Exercise 1
In this exercise, you will change the structure of a dictionary structure.
Step 1. Shorten the City field in your YXXADD structure. To do this, navigate to the YXXCITY data element. Change the domain from CHAR50 to CHAR40.
Step 2. Re-activate the YXXCITY data element. You may get a warning about the length of the header label. If so, press Enter to navigate past this warning.
Step 3. Next you will see a warning that dependent tables may need to be converted. Click Continue.
Step 4. Next you will see a log of messages from the Database Utility. These messages will tell you that it was possible to successfully alter the YXXADDR structure, but not the YXXCUSTM table. Click the green arrow.
Step 5. Note that the status of the YXXCITY data element is now “partially active.”
Step 6. Navigate to the YXXCUSTMASTER table. Re-activate the table.
Step 7. A dialog box appears, indicating that the table must be converted in the database. This is the Database Utility at work. Click the Online radio button, and then click the Adjust push button at the bottom of the dialog box.
Step 8. After a few moments, you should see a message (at the bottom of the screen) that the request was executed successfully. Table YXXCUSTMASTER should now be “active” and “saved” again.
Step 9. Navigate to the YXXADD structure. Its status will be “partially active.” Re-activate it.
Step 10. Finally, navigate to the YXXCITY data element. Its status will be “partially active.” Re-activate it.
Chapter 7, Exercise 2
Choose one of your transparent tables and maintain various versions of the object. Refer to Chapter 7 in your manual for additional guidance. Remember that only temporary versions of active objects can be stored. Therefore, in order to have different temporary versions, you will need to 1) store a temporary version of your active object, 2) change that active object and reactivate it, and 3) then store another temporary version.
The ABAP Dictionary ABAP Exercises
March, 2001
p:\instruct\courses\abap\bc030\Ch3ffEx.doc Page 4
Exercise
Chapter 7