Ansicht
Dokumentation

EXIT_/SAPAPO/SAPLBOP_SORT_020 - Obsolete - ATP, BOP: Backorder Processing: Sorting

EXIT_/SAPAPO/SAPLBOP_SORT_020 - Obsolete - ATP, BOP: Backorder Processing: Sorting

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The user exit is called for the following applications:

  • In backorder processing during the sort of the order items. The user exit is only called once.
  • In CRM for sorting the requirements. The user exit is called once per criterion and once at the end of the sorting.

The description of the sort profile, the processing level, the work table description and the work table are transferred to the user exit.

Backorder Processing

For the sort an internal table is generated whose structure complies with the definition of the sort profile. The table (CT_LIST) is then used to sort the documents and to determine the priority.

The user exit can be used in two different variants:

  • The 'USEREXIT' column is used in the sort profile. In the generated table a column is reserved for this particular value. A single value per document is then entered or calculated in this column in the user exit. This value then supplements the values that can be used in the standard system for the sort.
    This can then be used if several values together determine the priority (can only be used as a pair of values; for example, the product MAT_A has a higher priority with customer CUST01 than with customer CUST02).
    The 'USEREXIT' column can only exist once in the sort profile.
  • Alternatively, this user exit can change the values determined previously for the sort (for example, customer number or priority), before the sort is carried out.
    This can, for example, be used if the sort is to be made according to the first two characters in the product number or if particular values of a criterion have the same priority.

CTM

A table with fixed structure is provided for the sort. The table (CT_LIST) is then used to sort the documents and to determine the priority.

  • After the priority is entered in the CT_LIST-DEMID field, the entries are sorted in ascending order after calling the user exit.
  • In CTM, the criterion USEREXIT can be set at several levels of the sort profile. IF_SORTLEVEL contains the current call level. The sorting for a specific sort level (that is, the setting of CT_LIST-DEMID) must occur in the user exit for the entire table. Outwith the user exit it is ensured that this sort only affects the current call level.
  • In addition, the user exit at the end of the total prioritization operation is called using IF_SORTLEVEL = 0. Sorts carried out here are final and overwrite the sorts of the sort profile levels.

Example

The coding for the function module /SAPAPO/BOP_SORT_SPECIAL_SORT (routine SPECIAL_SORTORDER_INSERT) can be used as an example of access to the table CT_LIST. In this module the special sorts are entered in the corresponding columns.

Notes

The function module is called only once during backorder processing. For the sort in CTM, the function module is called several times, once per criterion and once at the end of the sort.
See also the parameter IF_SORTLEVEL.

Further information

Enhancement APOBO020





Parameters

CT_LIST
IF_SORTLEVEL
IT_BOPSORTD
IT_FIELD

Exceptions

Function Group

XBOPUSER

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 4329 Date: 20240523 Time: 075454     sap01-206 ( 69 ms )