Function documentationList of Contracts (Optimized Version)

 

The optimized version of the List of Contracts (report SD_SALES_DOCUMENT_VA45; transaction code VA45) is based on the technical changes for the determination of contracts. In this version, it is also easier to enter selection criteria on the selection screen as well as to process the result list in the selection results.

Integration

The enhancement concept for the optimized report SD_SALES_DOCUMENT_VA45 allows you to adjust the result list to meet customer-specific requirements and to increase the number of selection criteria.

Note Note

For technical information about the enhancement concept, see SAP Note 1780163Information published on SAP site (Report Optimization: Accessing Other Tables).

End of the note.
Selection Criteria

You can use the enhancement spot ES_SD_SALES_DOCUMENT_VA45 to increase the the number of selection criteria available for report SD_SALES_DOCUMENT_VA45. The following enhancement options (enhancement implementation points) are available:

  • SD_SALES_DOCUMENT_VA45_EP_EXT1

    Here, you can define customer-specific parameters and selection criteria.

  • SD_SALES_DOCUMENT_VA45_EP_EXT2

    Here, you can transfer the entries made by the user to the internal structure for further processing.

Note Note

Before you can use customer-specific fields as selection criteria, implement the fields in question using business add-in BADI_SDOC_WRAPPER in report SD_SALES_DOCUMENT_VA45.

End of the note.
Result List

The optimized report uses a defined number of database tables for the selection. If you want the selection of output fields in the selection results to be enterprise-specific, you can include additional tables in the selection. These can be standard tables or customer-defined tables (from namespace Z*, for example).

In Customizing for Sales and Distribution, you can implement the following business add-ins (BAdIs) under Start of the navigation path Sales Next navigation step Lists Next navigation step Optimized Lists End of the navigation path.

  • BAdI: Adjust Selection Results (BADI_SDOC_WRAPPER)

    You can add customer-specific fields as columns for the result list.

    You also get a method for processing the additional field data. For example, you can execute calculations, such as an ABC classification based on net value. The data for the result list is processed line by line.

  • BAdI: Adjust Selection Results (Mass Access) (BADI_SDOC_WRAPPER_MASS)

    You can use this BAdI to calculate and manipulate data for all lines of the result list with mass processing.

  • BAdI: Add Pushbutton (BADI_SDOC_VIEW_CUSTOM_FUNC)

    You can prepare additional customer-specific functions for processing the result list. The first six functions are displayed as pushbuttons in the menu bar. If you have defined more than six functions, when you choose the sixth pushbutton a dialog box appears containing the remaining functions. The system determines the total number of defined functions in BAdIs BADI_SDOC_VIEW_CUSTOM_FUNC and BADI_SDOC_VIEW_CUSTOM_FUNC_INT (can only be implemented by SAP).

Prerequisites

  • You have activated the business function Sales and Distribution, Optimization of Lists (BF_LOG_SD_REPORT_OPT).

  • You have activated the optimized version of transaction VA05 in Customizing for Sales and Distribution under Start of the navigation path Sales Next navigation step Lists Next navigation step Optimized Lists Next navigation step Activate Optimized Reports End of the navigation path.

    Once you have activated the optimized version, you can no longer use your customer-specific selection variants and layouts or your customer enhancements for the previous version (user exits for program SAPMV75A, screen 140, for example, include V05TZZMO).

  • If you want to make customer-specific adjustments, you have to implement the appropriate BAdIs under Start of the navigation path Sales Next navigation step Lists Next navigation step Optimized Lists End of the navigation path.

Features

Selection

The optimized version provides the following new functions on the selection screen:

  • The number of selection criteria has been increased. All of the selection criteria are situated directly on the selection screen and are grouped together to provide a better overview.

  • The search using placeholders and the restriction to a specific range simplify the task-oriented creation of the result list.

  • You can search for contracts more precisely with regard to their validity. The system checks the validity data from the item overview: Contract start and contract end.

    • You can enter exact data for the Valid-From and Valid-To dates. The system only selects documents that correspond with these entries.

    • You can also search for a validity period. The system selects contracts that are valid for at least one day of the specified validity period. If you leave either of the validity period fields empty, the system searches without any restrictions with regard to the validity period. For examples, see the system documentation for the input fields of the validity area.

  • You can search contracts more precisely for a specific partner function, which classifies the responsible people (involved people in the company) and partners.

    • If you do not enter any further restrictions regarding the personnel number or the partner for a specific partner function, the system returns all contracts with the selected partner function.

      As long as the selected layout includes the columns for the partner functions, the system displays the data for the respective partner function in the corresponding column in the display list.

    • If you do not enter a partner function, you will not find any partner function data in the result list. This is also the case if the system determines contracts for which partner function data exists, and the selected layout includes the columns for this partner data.

Output

The optimized version provides the following new functions in the result list:

  • The selection results are displayed using the current version of the SAP List Viewer. This allows you to process the list with more versatility and change the layout in different ways.

    See also: Navigating in the List, Personalizing the List, Functions in the List.

  • Layout variants determine what data is displayed in the result list. This allows you to restrict the amount of data to an appropriate volume. This makes sense, for example, if you want to download the list as a file, or if you want to print via the print preview.

    The following layout variants are provided in the standard system:

    • 0SAP: Contracts - Header

    • 1SAP: Contracts - Items (default setting)

    Note Note

    You select the layout variants on the selection screen before creating the list.

    You can find the Add and Change functions of the layout variants in the result list under Start of the navigation path Settings Next navigation step Layout End of the navigation path. To enable users to save layout variants, the authorization parameter SD_VARIANT_MAINTAIN must be defined in your user profile. The following values are defined:

    • Value A: Users can save both user-specific and standard layouts.

    • Value X: Users can only save standard layouts.

    • Value U: Users can only save user-specific layouts.

    To enable a high-performance selection, at the start of the report, the system only reads fields that are contained in the selected layouts. If you change the layout in the result list or choose a different layout, the system reselects the documents.

    End of the note.
Constraints

The Expected Customer Price field is not displayed in the result lists. Once you have activated the optimized version, you can no longer use your customer-specific selection variants and layouts or your customer enhancements for the previous version (user exits for program SAPMV75A, screen 140, for example, include V05TZZMO).

Activities

You can find the List of Contracts in the SAP Menu under Start of the navigation path Logistics Next navigation step Sales and Distribution End of the navigation path in all relevant areas under Info System, for example:

  • Start of the navigation path Sales Next navigation step Info System Next navigation step Contracts End of the navigation path

  • Start of the navigation path Sales Support Next navigation step Info System End of the navigation path