Sub topic 14
Controlling which fields and views appear
This chapter assumes you know the material master views, material types, and plants from earlier chapters. You should also be able to open a transaction such as MM02 in SAP GUI.
Why the screen is not the same for everyone
Two users can open the same material and see different screens. Some fields are missing, some are display-only, and some views never show up. This is deliberate. The system decides what to show by combining several controls, so each department sees only the data it needs.
The main controls are:
- The material type, which sets the views that are allowed for materials of that type.
- Field selection, which sets each field to required, optional, display-only, or hidden.
- The screen sequence, which sets the order and grouping of the tabs.
- The user's view selection in the create dialog.
Field selection
Field selection decides how each field behaves. It is configured in Customizing (transaction OMSR for field selection by field reference). A field can have one of these attributes:
| Attribute | Effect on the user |
|---|---|
| Hide | The field does not appear. |
| Display | The field appears but cannot be changed. |
| Required entry | The user must fill the field before saving. |
| Optional entry | The user may fill the field. |
Settings can be tied to the material type, the plant, the transaction (create, change, display), and the industry sector. The system uses the most specific match. If several settings apply to the same field, the strictest one wins. Hide overrides Required entry, for example.
Screen sequences
A screen sequence is a set of screens, arranged in a given order, that makes up the material master dialog. Each material type points to a screen sequence. It controls which tabs exist and in what order they appear. It does not change what data is stored.
The figure shows how the controls combine.
A worked example
Suppose purchasing wants the Purchasing group to be mandatory for raw materials. In field selection you find the field reference for the purchasing group. For material type ROH you set the attribute to Required entry. Now a buyer who creates a ROH material cannot save until the group is filled. Materials of type HAWA are not affected, because the setting is tied to the material type.
Common errors
- A view is missing. First check that the material type allows it. Then check that you selected it in the dialog. A hidden field setting can also remove all fields from a tab, so the tab looks empty.
- A field is display-only when you expect to edit it. Some fields are controlled by other data. The price control field, for instance, cannot be changed once stock exists.
- A setting seems to be ignored. Look for a more specific entry, such as one for the plant, and for the strictest-wins rule.
Exercise
A company wants the base unit of measure hidden for a custom material type. After the change, a user says the Basic Data tab is still there. Why is this expected?
Show answer
Field selection controls individual fields, not tabs. Hiding one field leaves the tab in place. The tab list comes from the material type and its screen sequence. The tab would only disappear if every field on it were hidden, or if the view were not allowed for the material type.