SM30: How to Restrict Records and Field Maintenance in a Maintenance View

Sometimes users only need to maintain a subset of the records in an SM30 maintenance dialog. For example, a custom configuration table may contain several business areas, but a particular dialog should only expose one of them. Start by checking the Dictionary definition rather than changing the generated screen directly.

Check the maintenance view

  1. In SE11, display the custom table or maintenance view. Check its underlying table, key fields and existing selection conditions.
  2. For a custom maintenance view, review the Selection Conditions tab. A fixed selection condition can limit the records shown by that view.
  3. Review the maintenance attributes of individual view fields. The subset attribute, where supported and appropriate for the field, allows a selection value to define the work area. Read-only and hidden fields serve different purposes.
  4. If a change is needed, implement it in development. Use SE54 to update the generated maintenance dialog for the changed definition, taking care not to overwrite custom screen logic or events.

Test in SM30

Test both existing and newly created records with a representative user. Confirm that the chosen restriction behaves as intended, including cases where the user supplies no value. A display restriction is not a substitute for an authorization check. Review the authorization group and relevant S_TABU authorizations with the security team.

Avoid modifying a SAP-delivered view directly. For a non-key field that cannot be used as a subset field in your release or dialog type, have the ABAP team review a separate custom view or a supported maintenance-dialog enhancement.

References

SAP Note: 3793040

SAP Help: Maintenance Attribute of a View Field

SAP Help: Creating Maintenance Views

SAP Help: Changing a Maintenance Dialog

You May Also Like

Leave a Reply?