Sub topic 1
Customizing and Workbench: two kinds of change
Prerequisites
This chapter assumes you can do the following:
- Navigate SAP GUI and start transactions by code.
- Describe in general terms what an ERP system does for finance and logistics.
- Recognize the term "client" in SAP. The next chapter explains it properly.
- Read a database table with its key fields.
Two ways to change an SAP system
An SAP system changes in two different ways, and the rest of this tutorial depends on telling them apart.
- Workbench changes modify the programs and definitions that make up the system. Examples are an ABAP report, a class, a data element, a table definition, or a screen. These objects live in the repository, which is the system's catalogue of development objects. Developers create them in tools such as the ABAP Workbench (SE80) or ABAP Development Tools in Eclipse.
- Customizing changes modify business settings that existing programs read at runtime. Examples are a company code, a payment term, or a plant. These settings are rows in tables, maintained mostly through the Implementation Guide (IMG, transaction SPRO).
A short way to remember it: Workbench changes alter how the software is built, and Customizing changes alter how the finished software behaves for one organization.
Why the two are kept apart
The difference is not only conceptual. It decides where a change is stored, who may make it, and how it moves between systems.
| Aspect | Workbench object | Customizing entry |
|---|---|---|
| Typical content | Code, table definitions, screens | Rows of configuration data |
| Stored as | Repository object with an entry in table TADIR | Table contents, selected by key |
| Scope | Cross-client: every client sees it | Normally client-dependent: one client only |
| Maintained with | SE80, SE38, SE11, ADT | SPRO, SM30 |
| Recorded in | Workbench request | Customizing request |
| Typical owner | Developer | Functional consultant |
Because a repository object is stored once for the whole system, it is cross-client. A Customizing row carries a client number in its key, so each client has its own copy of the settings. The next chapters cover clients in detail. For now, remember that a Customizing change in one client does not appear in another.
The same table, two kinds of change
One table can be touched by both kinds of change, and this is the most common source of confusion.
Table T001 holds company codes. Its definition is a repository object. It covers the field list, the data elements and the key, and changing it is a Workbench change. Its contents are the company codes themselves, and adding a row is a Customizing change.
The same split applies to a maintenance view such as V_T001. Changing the view's definition is a Workbench activity. Maintaining the data it displays, through the IMG or SM30, is Customizing.
A table's delivery class tells you which kind of data it normally holds. The class is a field in the table's technical settings. The values you meet most often are:
C: Customizing data, maintained by the customer. Changes are recorded for transport.A: application data, such as master and transaction data. It is not transported.E: control data that SAP delivers and the customer may extend.S: system table, maintained by SAP only.
The following report reads the delivery class and the client-dependency flag from the dictionary table DD02L. The contflag field holds the delivery class. The clidep field is X when the table is client-dependent.
REPORT zdemo_delivery_class.
SELECT tabname, contflag, clidep
FROM dd02l
WHERE tabname IN ( 'T001', 'MARA', 'TADIR' )
AND as4local = 'A'
AND as4vers = '0000'
ORDER BY tabname
INTO TABLE @DATA(table_info).
LOOP AT table_info INTO DATA(info).
WRITE: / info-tabname, info-contflag, info-clidep.
ENDLOOP.You should see delivery class C for T001 and class A for MARA. Both are client-dependent. TADIR holds the repository directory and has no client field, so its flag stays blank. Treat the exact output as something to confirm in your own system, because it depends on the release.
How each kind of change is recorded
SAP records changes so they can be moved to other systems. Both kinds of change use a transport request, which is a container that collects changed objects. The request type differs:
- A Workbench request collects repository objects. Each entry is identified by a program ID and an object type, such as
R3TR PROGfor a report. - A Customizing request collects table contents. Its entries carry data, such as
R3TR TABUfor table rows selected by key, orR3TR VDATfor the contents of a view.
Both kinds have the same number format, which combines a three-letter system ID with a K and six digits, for example DEVK900123. You cannot tell the type from the number alone. Open the request in the Transport Organizer (SE09 or SE10) and read the request type.
Request: DEVK900123 (Customizing request)
Owner: CONSULTANT1
Task: DEVK900124
R3TR VDAT V_T001 (view contents, maintained via SM30 or the IMG)
R3TR TABU T001 (table entries, selected by key)The request is not the same as its task. The task belongs to one user and holds that user's changes. The request is the container that you release and transport. A later chapter covers this structure.
Which system accepts which change
The system landscape usually has a development system (DEV), a quality system (QAS) and a production system (PRD). Changes are made in DEV and move forward from there.
SAP controls where each kind of change is allowed. In the Workbench Organizer you set the system change option, which can lock repository objects in a system. Production normally has them locked. Customizing is controlled per client through the client settings, which Chapter 8 covers (SCC4).
Common errors and edge cases
- Editing Customizing in a client that does not record it. If the client settings do not record changes, the change stays local and cannot be transported. You then repeat it by hand in every system, and the systems drift apart.
- Using SE16 to change Customizing. Direct table edits can skip the checks and the request prompt that SM30 and the IMG apply. Use the maintenance view whenever one exists.
- Cross-client Customizing tables. Some Customizing tables have no client field. A change to one affects every client in the system, including clients used for testing. Check the client dependency before you change such a table.
- Mixing up the two request types. Placing a table definition in a Customizing request, or table contents in a Workbench request, produces a transport that does not do what its owner expected. Create the request type that matches the object.
- Treating master data as Customizing. Material and customer records belong to delivery class
A. They are not recorded in requests, so loading them in DEV does not move them to PRD.
Summary
Workbench changes alter repository objects, are stored once per system, and travel in Workbench requests. Customizing changes alter table contents, are usually stored per client, and travel in Customizing requests. A single table can be involved in both, because its definition is a Workbench matter and its rows are a Customizing matter.
Exercise
Your team adds a new field to the definition of Customizing table ZPAY_TERMS and then adds three rows of data to that table in the development client. Which kind of change is each action, and which request type records each?
Show answer
Adding the field changes the table definition, which is a repository object, so it is a Workbench change recorded in a Workbench request. Adding the three rows changes table contents, so it is a Customizing change recorded in a Customizing request, provided the client settings allow recording. The two parts need separate requests, and the definition must arrive in the target system before the rows, or the import of the rows will fail.
Exercise
A colleague says that because T001 appears in a Workbench tool, changing company codes counts as development work. Using the delivery class and the idea of definition versus contents, how would you respond?
Show answer
Seeing a table in a Workbench tool shows only that its definition is a repository object. Company codes are rows of a table with delivery class C, so entering or changing them is Customizing, normally through the IMG. Only changes to the table's structure, such as adding a field, count as development work.