Show TOC

 Use of List Variants

Use

In the Archive Explorer, you can save list variants. You can use list variants to specify the fields that are to be used when a particular list is displayed.

Integration

You can operate the variant functions using the standard menu entries and function buttons of the SAP List Viewer (formerly ABAP List Viewer, ALV ).

Features

You can create both user-specific and common list variants. You can do this where lists are implemented using the SAP List Viewer, that is, for displaying:

  • Data belonging to an archive information structure

  • Table contents for the technical view

List Variants for Archive Information Structures

In the display of information structure data (the first list in the Archive Explorer), list variants are stored per archive information structure. A list variant is only valid for the archive information structure for which it was created and cannot be used for other archive information structures.

Once an archive information structure has been changed (but has kept the same name), the accompanying list variants can still be used. However, a list variant can be invalid is invalidated by the change, for example where the field displayed in the list variant has been deleted from the archive information structure. You should therefore modify the list variants accordingly. Example:

Example Example

When you display the archive information structure CO_ORDER_001 , use the list variant MY_VARIANT to specify that the fields AUFNR (Order Number) and KTEXT (Short Text) are to be displayed. You cannot use these variants for the archive information structure CO_ORDER_002 , even if both archive information structures have identical structures.

If the archive information structure CO_ORDER_001 is changed so that the fields AUFK and KTEXT no longer appear, then the list variant MY_VARIANT can still be used, but this would be pointless as no fields will be displayed. You can therefore modify these variants using the relevant function of the ALV to fit the changed archive information structure.

For the archive information structure CO_ORDER_002 you can also create a list variant called MY_VARIANT ; however this is not identical to the list variant of the same name for CO_ORDER_001 .

End of the example.

List Variants for Tables

The technical view for single document display is used to display the table contents for the selected data objects. You can save list variants per table here, which are independent of the archive information structure used. A list variant created for a specific table is only valid for this table and cannot be used for other tables. However, a list variant for a specific table is always independent of the archive information structure used. This is also valid where the archive information structure belongs to different archiving objects. It therefore does not matter which archiving object was used to archive the table entries. Example:

Example Example

You are using the archiving objects SD_VBAK and PP_ORDER and the accompanying archive information structures SD_VBAK_001 or PP_ORDER_001 . Both archiving objects contain the table COEP . To display the table COEP , save the list variant MY_VARIANT in the Archive Explorer. In contrast to the above list variants, this variant is only assigned to the COEP table.

You can then use MY_VARIANT to display the COEP table, and it does not matter whether you enter the Archive Explorer via the archive information structure SD_VBAK_001 or PP_ORDER_001 .

End of the example.

Activities

In the Archive Explorer list display, you can access the list variant functions. Choose Start of the navigation path Settings Next navigation step Display Variants End of the navigation path .

For more information on the use of list variants, see the documentation on the SAP List Viewer.