Sub topic 7
What an IMG activity changes: tables and views
This chapter assumes you can navigate SAP GUI, know what a client is, and understand database tables and keys. It covers what happens in the database when you save an IMG activity.
An IMG activity is a table editor
Most IMG activities open a maintenance view or a view cluster. The view is a screen-friendly window onto one or more Customizing tables. When you save, the system writes rows to those tables. Nothing else changes. The system's behavior changes because programs read those rows at runtime.
For example, the activity that defines company codes edits table T001. The program below reads the result. The ABAP Open SQL statement returns only rows of the current logon client, so no MANDT condition is needed.
REPORT zdemo_company_codes.
SELECT bukrs, butxt, ort01, waers
FROM t001
ORDER BY bukrs
INTO TABLE @DATA(company_codes).
LOOP AT company_codes INTO DATA(cc).
WRITE: / cc-bukrs, cc-butxt, cc-ort01, cc-waers.
ENDLOOP.Tables, views and where to look
To see what an activity changes, open it and choose a table entry, then use System > Status or the F1 technical information to find the view name, such as V_T001. Then open the table in SE11 or browse its rows in SE16. The same view can be called directly in SM30.
| Object | Role | Typical example |
|---|---|---|
| Customizing table | Stores the settings | `T001` |
| Maintenance view | Screen for editing one or more tables | `V_T001` |
| View cluster | Several views edited together, with navigation | Enterprise structure clusters |
| Text table | Language-dependent descriptions | `T001T`-style text tables |
The delivery class of a table (field CONTFLAG in DD02L) tells you how it is treated. Class C marks Customizing data. Class A marks application data, which is not normally recorded as Customizing.
Client dependence follows the table
A table is client-dependent when its first key field is MANDT. Changes to such a table affect only the client you are logged on to. A table without MANDT is cross-client, so one change affects every client in the system. Check the first key field in SE11 before you save an activity you do not know.
Reading the transport entry
The request that records the change does not hold the screen or the program. It holds the table content. The entries look like this.
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)VDAT means view contents. TABU means table entries chosen by key. Only the selected keys are transported, not the whole table.
Exercise
You save an IMG activity and the underlying table has no MANDT field. Which clients are affected, and why?
Show answer
All clients in the system. A table without MANDT is cross-client, so its rows are shared by every client.