Thursday, June 6, 2013

Create maintenance view variant

This post explains how to create a maintenance view variant for an existing maintenance dialog.

NOTE: When you create a maintenance view variant, no new dialog is generated, i.e. all screens and function modules of the original dialog are used. For this reason, all basis dialog checks are made in view variant maintenance.

Prerequisites: The basis dialog for which the maintenance variant is created already exists.

Procedure
  1. Start maintenance dialog generation.
  2. Choose Edit view variant in the initial screen.
  3. The Generate table maintenance dialog: View variant initial screen appears.
  4. Enter the maintenance view variant name and choose Create.
  5. The Dictionary: Maintain view screen appears.
  6. Enter the basis dialog name under Tables, and an explanatory text under Short description.
  7. The dependent subobjects are added in the Tables column.
  8. Choose the View fields tab.
  9. The basis view key fields are automatically put in the maintenance view variant.
    Caution
    The key fields must not be deleted from the maintenance view variant.
  10. To put function fields in the maintenance view variant, choose Tab. fields.
  11. Specify other view variant attributes under Selection conditions.
  12. Note
    The maintenance view selection conditions and then the maintenance view variant selection conditions apply in data maintenance. The maintenance view selection conditions only apply if they were generated in the maintenance dialog. If, e.g. the selection conditions were put in the ABAP/4 Dictionary later and the maintenance dialog was not regenerated, these selection conditions do not apply in the maintenance view variant.
  13. Specify other view variant attributes under Maintenance status.
Caution
Maintenance view variant field maintenance attributes must be compatible with the maintenance attributes specified in the basis dialog:


Maintenance attribute definition compatibility

Basis dialog maintenance attribute valid variant maintenance attributes

:

'R', 'H'

'R'

'R', 'H'

'S'

'S'

'H'

'H'

The compatibility is not checked when the variant is created. Invalid maintenance attributes are ignored at runtime. The original dialog maintenance attribute is used instead.
  1. Save and activate your entries.
  2. Assign the maintenance view variant to an authorization group.

No comments:

Post a Comment