Ansicht
Dokumentation
CMP_MASS - Mass Complaints Processing
rdisp/max_wprun_time - Maximum work process run time Vendor Master (General Section)This documentation is copyright by SAP AG.
Purpose
Mass Complaints Processing
Integration
Prerequisites
Features
Generating Complaints due to Customer Change
You can change the customer number in a selected set of billing documents. The program creates credit memos or credit memo requests for the previous customer and debit memos or debit memo requests for the new customer.
Generating Complaints due to Change in Unit of Measure
You can change the unit of measure in a selected set of billing document items. The program creates credit memos or credit memo requests for the previous price and debit memos or debit memo requests for the new price.
Generating Complaints due to Price Change
You can change the price for an article in a selected set of billing document items. The program creates credits or credit memos for the previous price and debits or debit memos for the new price.
Generating Complaints to Create Returns Orders
You can create returns orders for a selected set of billing document items (for recall actions, for example).
Selection
Program Flow
After calling the transaction, the user can enter the required values for finding billing documents on a selection screen.
The exception status provides the following information:
- The exception status for this line is YELLOW:
- There are already complaints for one or more of the documents (or items) found.
- The exception status for this line is GREEN:
- There are no complaints for one or more of the documents (or items) found.
- There is no RED exception status.
The internal table that results from the selection is displayed in an output list.
You can use the BAdI BAdI_CMP_ADD_FIELDS to extend the field catalog of the output list by your own fields.
After the selection, there are two options for further processing the data:
- Customer number has been specified
- The billing documents selected using the selection criteria are read from table VBRK and displayed in the list.
- Change of price, unit of measure and returns
- Billing documents are only permitted for mass processing if the following criteria are met:
- The posting document is created (RFBSK is C)
- The billing document is not cancelled (FKSTO is BLANK)
- The sales document type is not an invoice cancellation (VBTYP is N)
The billing documents selected using the selection criteria are read from table VBRK.
If billing documents have been found, the item data with the material number from the selection is read from table VBRP.
If you have specified a condition type, the program reads the relevant conditions from table PRCD_ELEMENTS.
Before the data is transferred line by line to the output list, the program checks if there is already a complaint regarding this item. If there is, the system creates a warning message with the status YELLOW.
Standard Variants
You can double-click a line in the output list to go to the master data transaction for displaying billing documents.
You have the following options for processing the data displayed in the output list:
- Execute processing in the foreground:
- Function modules CMP_MASS and CMP_MASS_CREATE process the data. The corresponding messages are displayed in the list after processing, and written to table CMP_VBFS_EXT by function module CMP_MASS.
- Execute processing in the background:
- If you set the indicator for background processing, function module CMP_MASS is called with the instruction 'CALL FUNCTION CMP_MASS in background task'. The data is processed and CMP_MASS_CREATE is called in exactly the same way as in 'Execute processing in the foreground'.
- The created messages are stored in CMP_VBFS_EXT and can be displayed using transaction WCMP_RESULT.
Output
Activities
Example
CL_GUI_FRONTEND_SERVICES - Frontend Services rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 4823 Date: 20240520 Time: 084825 sap01-206 ( 59 ms )