Sub topic 14
Controlling which fields and views appear
This chapter assumes you can navigate SAP GUI and know the views and organizational levels from earlier chapters. You also need access to Customizing (transaction SPRO). Without that access, read the configuration steps as background and ask your SAP Basis or functional team to make the changes.
Why the screens differ between users
Two users who open the same material can see different screens. One may see a Purchasing tab and the other may not. The Gross Weight field may be mandatory for a trading good and hidden for a service. None of this comes from authorizations or code. Customizing controls it through three mechanisms:
- View selection decides which views are offered in the dialog when you create or change a material.
- Field selection decides the status of each field: hidden, display only, required, or optional.
- Screen sequence decides which subscreens appear, in what order, and under which tab.
Authorizations are a separate layer. They decide whether you may maintain a plant or a view at all. Field control shapes the screens for everyone who is allowed in.
View selection
When you create a material in MM01 (or the equivalent Fiori app), SAP offers only the views that make sense for the material type. The material type's attributes in Customizing (Define Attributes of Material Types, OMS2) include a list of user departments. Each department letter corresponds to a view, such as Purchasing, MRP, or Accounting.
The industry sector and material type together also shape the dialog. A raw material (ROH) offers Purchasing and MRP, but not Sales. A finished product (FERT) offers Sales and Work Scheduling.
If a view is missing from the dialog, check these causes in order:
- The material type does not allow that department.
- The organizational level is missing. For example, plant-level views need a plant entry in the Organizational Levels dialog.
- Your user is not authorized for that plant or sales organization.
- The screen sequence does not contain that view.
Field selection
Field selection works on field references. SAP groups the fields of the material master into field selection groups, and each group has a reference such as one for purchasing data or one for MRP planning data. You configure the status for a reference, and every field in that group follows it.
The configuration happens in two steps:
- Assign fields to field selection groups. This step, usually done with transaction OMSR, is rarely changed. It determines which fields share a status. If two fields sit in the same group, you cannot hide one and keep the other.
- Maintain the field status per group. Transaction OMS9 lets you pick a field reference and set its status for each influencing factor.
Field status values
| Status | Effect on the screen |
|---|---|
| Hide | The field does not appear. |
| Display | The field appears, but the user cannot change it. |
| Required entry | The field appears and the user must fill it before saving. |
| Optional entry | The field appears and the user may leave it empty. |
Influencing factors
The status of one field can depend on several factors at the same time:
- Transaction type, meaning create, change, or display. You could make a field required at creation and display-only afterwards.
- Material type, so a service material hides stock-related fields.
- Industry sector, such as plant engineering or retail.
- Plant, so one plant can require data that another does not.
- Procurement type and MRP type, for some planning fields.
Not every field reference supports every factor. OMS9 shows which factors are available for the reference you selected.
The priority rule
Several factors can apply to the same field, and they can disagree. SAP then resolves the conflict with a fixed order:
- Hide
- Display
- Required entry
- Optional entry
The status with the highest priority wins. If the material type says "required" but the plant says "hide", the field is hidden. A field set to "required" by one factor and "display" by another becomes display only, so the user cannot fill it in and the material may fail later checks.
Screen sequences
A screen sequence defines the structure of the data screens: which subscreens belong to each view, how they are grouped on tabs, and in which order they appear. SAP delivers standard sequences, and you can copy one and adjust it.
You can use a custom sequence to:
- Move a frequently used subscreen to the front.
- Remove a subscreen that no one in your company uses.
- Group related fields on a screen of their own.
Screen sequences affect layout only. They do not decide whether a field is mandatory. A field can be required by field selection and still be absent from your screen sequence. In that case the user cannot reach the field, and the save fails with an error about a missing entry. Check both layers when a user reports "I cannot save the material, but I cannot find the field."
Checking and changing the configuration safely
Changes to field selection affect every user of the affected material types and plants, usually on the next logon or screen refresh. Follow a few practices:
- Make changes in the development system and transport them. Do not change field status directly in production.
- Test with a user who has the same authorization profile as the target group. Your admin user may bypass checks that block others.
- Document each change with the reason, the field reference, the influencing factors, and the status. The OMS9 screen shows only the current state.
- Re-test mass-load and interface programs after a change. A newly required field can make a load fail for every record that leaves it empty. Whether a given interface enforces field selection varies by interface, so test it rather than assume.
Diagnosing a field that behaves unexpectedly
| Symptom | Likely cause | Where to look |
|---|---|---|
| A tab is missing | Material type does not allow the department, or the view is missing from the screen sequence | OMS2 and the screen sequence |
| A field is gray | Status is Display from some influencing factor, or the transaction is change-restricted | OMS9, all factors for that reference |
| A field is gone | Status is Hide from one factor, which overrides the others | OMS9, the plant and material type entries |
| Save fails on a field the user cannot see | Field is required but absent from the screen sequence | Screen sequence structure |
| Two fields always change together | They share a field reference | OMSR |
Exercise
A material type sets the field "Purchasing Group" to Required entry. The plant 1010 sets the same field to Display. A user creates a material of that type in plant 1010. What status does the field have, and what problem can this cause?
Show answer
The field is display only, because Display has higher priority than Required entry. The user cannot enter a purchasing group, so any check that expects a value can block the save or leave the material without one. Fix the conflict in OMS9 by aligning the plant and material type settings, or by changing one of them to Optional entry.
Exercise
A user reports that saving a new material fails because a field is required, but the field is not on any tab. Name the two configuration layers you check, and say what you expect to find.
Show answer
Check field selection (OMS9) and the screen sequence. You expect the field to be Required entry in field selection while the screen sequence has no subscreen that contains it. Add the subscreen to the sequence or change the field status to Optional entry or Hide.