• No results found

Modifying SAP Objects

In document Tadm12_2 en Col99 Fv Part Ltr (Page 179-195)

Classification of Tasks and Transport Requests

Exercise 6: Modifying SAP Objects

Exercise Objectives

After completing this exercise, you will be able to:

• know, how to modify SAP Repository objects

Business Example

During the implementation process, you may be required to make changes to standard SAP Repository objects in order to fulfill the requirements of your business. The Modification Assistant is a tool delivered with the SAP system to aid you in making the modifications as well as helping with a future modification adjustment.

Task 1:

Modify an SAP Repository object.

1. Log on to SAP system DCC, client 100. You will be modifying the ABAP program ADM325X##, where ## is your group number. Which package does this object belong to? Which SAP system is the original system?

2. Modify the source code of ADM325X##. Because this object is owned by SAP, normally you would be required to enter a registration key for the object. For the purposes of this class, you will not be prompted for a registration key for the object.

3.

Hint: Either modify the program as described here or do any modification you want. For example, just add a write 'hello!'.line. The main thing is, you modify the program at all!

The program ADM325X## currently sorts transport request by the transport request number. You would like to see the transport requests sorted by author. Modify line 38 of the source code, which reads:

ORDER BY STRKORR TRKORR Modify it so that it now reads:

ORDER BY STRKORR AS4USER TRKORR

For all modifications, use the Replace function of the Modification Assistant.

Save and activate your work to one of your transport requests. What type of change was created? Execute the program ADM325X##.

View the repair flag.

4. Release your task.

Task 2:

Modifying an ABAP Dictionary object.

1. You need to add an additional field to the table ADM325X## (where ## is your group number), review the structure of this table using the ABAP Dictionary.

2. Add the field ZZBIRTHPLACE to table ADM325X##. Assign data element GBORT to the field and choose Enter.

3. Activate and save the changes to the table ADM325X## to a new task within the same transport request used in the previous step of this exercise. The SAP system automatically prompts you for the new task.

4. Add some new entries to the table ADM325X##.

5. Which TMS configuration setting ensures that modifications to SAP objects are transportable?

6. Release your task.

7. Now release the transport request.

Solution 6: Modifying SAP Objects

Task 1:

Modify an SAP Repository object.

1. Log on to SAP system DCC, client 100. You will be modifying the ABAP program ADM325X##, where ## is your group number. Which package does this object belong to? Which SAP system is the original system?

a) To access the ABAP editor, choose transaction SE38. Enter the name of the SAP program, ADM325X##. choose Goto → Object directory entry. The package for this object is the package ADM325.

b) The original system can also be seen here in the object directory entry.

2. Modify the source code of ADM325X##. Because this object is owned by SAP, normally you would be required to enter a registration key for the object. For the purposes of this class, you will not be prompted for a registration key for the object.

a) In the ABAP Editor (transaction SE38), enter the name of the SAP program, ADM325X##, select Source Code, and choose Change. Read the information in the next window about the usage of the modification assistant and then choose Continue (Enter).

3.

Hint: Either modify the program as described here or do any modification you want. For example, just add a write 'hello!'.line. The main thing is, you modify the program at all!

The program ADM325X## currently sorts transport request by the transport request number. You would like to see the transport requests sorted by author. Modify line 38 of the source code, which reads:

ORDER BY STRKORR TRKORR Modify it so that it now reads:

ORDER BY STRKORR AS4USER TRKORR

For all modifications, use the Replace function of the Modification Assistant.

Save and activate your work to one of your transport requests. What type of change was created? Execute the program ADM325X##.

View the repair flag.

a) Since the original system for this program is SAP, this type of change is termed a repair so that the Modification Assistant can control the changes performed to the object.

To view the repair flag, call transaction SE38. Enter the program name and choose Goto → Object directory entry. The object directory entries displays. To view all attributes including the repair flag, choose the Object Attributes icon.

4. Release your task.

a) To release your task, choose transaction SE09. Display the transport requests and tasks assigned to your user, <CourseID>-##. Select your task number and choose Release Directly. Do not release the transport request yet.

Task 2:

Modifying an ABAP Dictionary object.

1. You need to add an additional field to the table ADM325X## (where ## is your group number), review the structure of this table using the ABAP Dictionary.

a) To display the structure of this table ADM325X##, call transaction SE11, the ABAP Dictionary.

b) Enter table name ADM325X##, choose the Change option.

2. Add the field ZZBIRTHPLACE to table ADM325X##. Assign data element GBORT to the field and choose Enter.

a) When in change mode in the ABAP Dictionary, to add a new field, place your cursor on a blank line and enter the field name ZZBIRTHPLACE.

b) In the Data element field, enter GBORT.

3. Activate and save the changes to the table ADM325X## to a new task within the same transport request used in the previous step of this exercise. The SAP system automatically prompts you for the new task.

a) To activate the table, choose Table → Activate. Once activated, the status active displays for the table.

b) Save the change to a new task within the same transport request you used for the SAP program ADM325X##.

4. Add some new entries to the table ADM325X##.

a) To add additional table entries, choose Utilities → Table Contents → Create Entries or use transaction SE16.

5. Which TMS configuration setting ensures that modifications to SAP objects are transportable?

a) All SAP objects are assigned a package with the transport layer SAP. In your SAP system landscape, a valid consolidation route is assigned to the transport layer SAP. The consolidation route is from the development system DEV, to the quality assurance system QAS (or, in this case: via the transport target group to QAS).

6. Release your task.

a) To release your task, go to the Transport Organizer (transaction SE09).

Choose Display to display the transport requests and tasks assigned to your user, ADM325-##. Select your tasks and choose Release Directly.

7. Now release the transport request.

a) Select your transport request and choose Release Directly.

Lesson Summary

You should now be able to:

• Modify SAP Repository objects

• Describe the difference between customer development and modifications

• Describe how the Modification Assistant assists developers

Unit Summary

You should now be able to:

• Explain what customizing is, from the business and the technical perspective

• Explain how the SAP Implementation Guide (IMG) and IMG projects can be used for customizing

• Explain how the SAP Solution Manager can be used for implementation projects

• Create transport requests and tasks

• List the tools used for managing transport requests

• Describe how to customize

• Follow steps in procedure for customizing an SAP system implementation

• Define cross-client customizing

• Plan change management for development

• Identify various implementation tools used for customizing and development

• Describe the function of the Transport Organizer

• create a simple program

• understand the principles of the version management

• check and adjust the Transport Organizer settings

• Modify SAP Repository objects

• Describe the difference between customer development and modifications

• Describe how the Modification Assistant assists developers

Test Your Knowledge

1. Select the correct descriptions of what the IMG is or does:

Choose the correct answer(s).

□ A Provides customizing transactions.

□ B Is where all customizing activities must be performed.

□ C Gives you offline access to all the information required to customize an SAP system.

□ D Offers project management tools.

2. It is possible to extend an existing project IMG.

Determine whether this statement is true or false.

□ True

□ False

3. What is a transport request ?

4. SAP recommends that:

Choose the correct answer(s).

□ A Project manager or person responsible for the transport (a limited number of users) are creating the transport requests

□ B Project members should always create their transport request by there own

□ C The project members are assigned to the transport request by creation of tasks for each project member inside the transport request

□ D Project members are recording changes in their own task (assigned by the project manager or person responsible for the transport request)

5. What should be done before releasing a transport request in the development system?

Choose the correct answer(s).

□ A Unit testing

□ B Release of all tasks inside the transport request

□ C Deletion of tasks inside the transport request

□ D Information of SAP system administration about the released tasks

6. Client-independent customizing objects must be saved to transport requests

of type .

Fill in the blanks to complete the sentence.

7. The change management solution in SAP systems is based on creating, documenting and distributing transport requests.

Determine whether this statement is true or false.

□ True

□ False

8. What is the function of Transport Organizer?

9. All development in an SAP system landscape should be done in a single SAP system.

Determine whether this statement is true or false.

□ True

□ False

10. When are versions being generated?

11. How is the changing of an SAP standard Repository object termed?

12. What is the function of Modification Assistant?

Answers

1. Select the correct descriptions of what the IMG is or does:

Answer: A, D

The IMG gives you online access to all the information required to customize an SAP system. Customizing can also be performed without the IMG, of course.

2. It is possible to extend an existing project IMG.

Answer: True

The project IMG can be extended with the help of transaction SPRO_ADMIN at any time. After the change of the IMG, a regeneration has to be done.

3. What is a transport request ?

Answer: A transport request is a information source in the Transport Organizer that can record all changes and modifications made to repository objects and customizing settings during the adoption of the SAP system.

4. SAP recommends that:

Answer: A, C, D

These are SAP recommendations for projects.

5. What should be done before releasing a transport request in the development system?

Answer: A, B

Before a transport request in the development system is released, first the unit testing in the development system should be successfully finished. Second, all tasks that are contained in the transport request have to be released by the customizers. Otherwise it is not possible to release the transport request by the project leader.

6. Client-independent customizing objects must be saved to transport requests of type workbench.

Answer: workbench

7. The change management solution in SAP systems is based on creating, documenting and distributing transport requests.

Answer: True

The change management solution in SAP systems is based on creating, documenting, and distributing transport requests.

8. What is the function of Transport Organizer?

Answer: Transport Organizer records customizing changes and ABAP Development Workbench changes in transport requests for customizing and development.

9. All development in an SAP system landscape should be done in a single SAP system.

Answer: True

All development in an SAP system landscape has to be done in the same source system, the development system.

10. When are versions being generated?

Answer: Versions are generated when releasing a transport request.

According to the tp parameter settings also when importing a transport request (not by default). A temporary version can be generated manually at any time by the developer.

11. How is the changing of an SAP standard Repository object termed?

Answer: An SAP standard Repository object is delivered as a copy in all customer SAP systems. Changing it is classified as a repair. Repairing an SAP standard Repository object is also called modification.

12. What is the function of Modification Assistant?

Answer: The Modification Assistant helps you modify SAP standard delivered objects and simplify a possible Modification adjustment during applying a SAP Support Package or SAP enhancement package or performing an SAP system Upgrade.

Unit 4

In document Tadm12_2 en Col99 Fv Part Ltr (Page 179-195)