Ansicht
Dokumentation
WRF_DISPRO_TD_DF_CREATE - Create Default Values for Time-Dependent Promotion Data
RFUMSV00 - Advance Return for Tax on Sales/Purchases Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
This function module creates customer-specific time-dependent default values in the database table WRF_DISPRO_TD_DF. The database table is locked during processing.
The function module first calls the method GET_DEFAULT_VALUES of BAdI WRF_DISPRO_TD_DF_CREATE to find the customer-specific time-dependent default values that match the ranges IT_MATNR and IT_WERKS. If you select the flag I_DELTA , only changed data is returned.
The system checks the default values returned by this method to ensure the following:
- Some data has been entered (that is, the fields are not completely empty).
- There is an entry in at least one key field (Promotion Type, Material, or Plant).
- At least one checkbox is selected.
- The correct value according to the value range of its domain has been selected for each checkbox.
- If the checkboxes for the planning and delivery cycle are selected, an entry is made for the corresponding default value.
- If an entry is made for a default value, the corresponding indicator is selected.
- The maximum stock is greater than the minimum stock if absolute values are entered for these fields.
- The planning and delivery cycle is defined in the table T439G or in the table T399D for the reference plant in question.
Once these checks have been executed successfully, the system creates or updates the default values in the table WRF_DISPRO_TD_DF. The export parameter ET_DISPRO_TD_DF contains these entries.
Note: If an error is found for a default value, the system stops processing it and raises a message. All error messages are written in the parameter CT_MESSAGES.
The following fields of the table WRF_DISPRO_TD_DF are filled:
- DISPRO_SOURCE
- Here, the system enters the value 1: Automatically Created.
- DISPRO_LEVEL
- Here, the system enters one of the following values, depending on the entries in the key fields:
- 1: Promotion Type
- 2: Promotion Type and Material
- 3: Promotion Type, Material, and Plant
- 4: Material
- 5: Material, Plant
Example
Notes
Further information
Parameters
CT_MESSAGESET_DISPRO_TD_DF
IT_MATNR
IT_WERKS
I_DELTA
I_OVERWRITE
I_TIMESTAMP
Exceptions
DATA_LOCKEDERROR
NO_DATA
Function Group
WRF_MAINT_DISPRO_DEFAULTRFUMSV00 - Advance Return for Tax on Sales/Purchases CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 4487 Date: 20240523 Time: 140129 sap01-206 ( 58 ms )