SAP SP_REVALUATION_DATA_SELECT Function Module for NOTRANSL: Datenselektion für die Vorlage Sammelerfassung VKP-Umbewertung
SP_REVALUATION_DATA_SELECT is a standard sp revaluation data select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Datenselektion für die Vorlage Sammelerfassung VKP-Umbewertung processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sp revaluation data select FM, simply by entering the name SP_REVALUATION_DATA_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: WBW1
Program Name: SAPLWBW1
Main Program: SAPLWBW1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SP_REVALUATION_DATA_SELECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SP_REVALUATION_DATA_SELECT'"NOTRANSL: Datenselektion für die Vorlage Sammelerfassung VKP-Umbewertung.
EXPORTING
* PI_GRUND = "Reason for retail price change
* PI_UBJAHR = "Retail revaluation: document year
IMPORTING
PE_FCODE = "Function code
TABLES
PE_T_XPVAEN = "Revaluation for Retail Price Changes
PE_T_ERR_PVAEN = "Error Structure for Revaluation at Retail
* PI_T_SO_UBLNR = "Range Table for Retail Revaluation Document Number
* PI_T_SO_MATNR = "Range table for the material number
* PI_T_SO_WERKS = "Range table for the plant
* PI_T_SO_VPDAT = "Range Table for the Material Number
* PI_T_SO_BUDAT = "Trading Contract: Range Structure for Posting Date
* PI_T_SO_ERNAM = "Range structure Document entered by
EXCEPTIONS
NO_USEG_FOUND = 1 EXIT = 2 NO_AUTHORITY_CHANGE_USEG_STAT = 3 NO_USEG_POS_TO_REVALUATE_FOUND = 4
IMPORTING Parameters details for SP_REVALUATION_DATA_SELECT
PI_GRUND - Reason for retail price change
Data type: USEGD-PV_GRUNDOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_UBJAHR - Retail revaluation: document year
Data type: USEGD-UBJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SP_REVALUATION_DATA_SELECT
PE_FCODE - Function code
Data type: T185-FCODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SP_REVALUATION_DATA_SELECT
PE_T_XPVAEN - Revaluation for Retail Price Changes
Data type: PVAENOptional: No
Call by Reference: No ( called with pass by value option)
PE_T_ERR_PVAEN - Error Structure for Revaluation at Retail
Data type: VERROOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_SO_UBLNR - Range Table for Retail Revaluation Document Number
Data type: UBLNR_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_T_SO_MATNR - Range table for the material number
Data type: MATNR_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_T_SO_WERKS - Range table for the plant
Data type: WERKS_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_T_SO_VPDAT - Range Table for the Material Number
Data type: VPDAT_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_T_SO_BUDAT - Trading Contract: Range Structure for Posting Date
Data type: BUDAT_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_T_SO_ERNAM - Range structure Document entered by
Data type: ERNAM_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_USEG_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXIT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_CHANGE_USEG_STAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_USEG_POS_TO_REVALUATE_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SP_REVALUATION_DATA_SELECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_pe_fcode | TYPE T185-FCODE, " | |||
| lv_pi_grund | TYPE USEGD-PV_GRUND, " | |||
| lt_pe_t_xpvaen | TYPE STANDARD TABLE OF PVAEN, " | |||
| lv_no_useg_found | TYPE PVAEN, " | |||
| lv_exit | TYPE PVAEN, " | |||
| lv_pi_ubjahr | TYPE USEGD-UBJAHR, " | |||
| lt_pe_t_err_pvaen | TYPE STANDARD TABLE OF VERRO, " | |||
| lt_pi_t_so_ublnr | TYPE STANDARD TABLE OF UBLNR_RAN, " | |||
| lv_no_authority_change_useg_stat | TYPE UBLNR_RAN, " | |||
| lt_pi_t_so_matnr | TYPE STANDARD TABLE OF MATNR_RAN, " | |||
| lv_no_useg_pos_to_revaluate_found | TYPE MATNR_RAN, " | |||
| lt_pi_t_so_werks | TYPE STANDARD TABLE OF WERKS_RAN, " | |||
| lt_pi_t_so_vpdat | TYPE STANDARD TABLE OF VPDAT_RAN, " | |||
| lt_pi_t_so_budat | TYPE STANDARD TABLE OF BUDAT_RAN, " | |||
| lt_pi_t_so_ernam | TYPE STANDARD TABLE OF ERNAM_RAN. " |
|   CALL FUNCTION 'SP_REVALUATION_DATA_SELECT' "NOTRANSL: Datenselektion für die Vorlage Sammelerfassung VKP-Umbewertung |
| EXPORTING | ||
| PI_GRUND | = lv_pi_grund | |
| PI_UBJAHR | = lv_pi_ubjahr | |
| IMPORTING | ||
| PE_FCODE | = lv_pe_fcode | |
| TABLES | ||
| PE_T_XPVAEN | = lt_pe_t_xpvaen | |
| PE_T_ERR_PVAEN | = lt_pe_t_err_pvaen | |
| PI_T_SO_UBLNR | = lt_pi_t_so_ublnr | |
| PI_T_SO_MATNR | = lt_pi_t_so_matnr | |
| PI_T_SO_WERKS | = lt_pi_t_so_werks | |
| PI_T_SO_VPDAT | = lt_pi_t_so_vpdat | |
| PI_T_SO_BUDAT | = lt_pi_t_so_budat | |
| PI_T_SO_ERNAM | = lt_pi_t_so_ernam | |
| EXCEPTIONS | ||
| NO_USEG_FOUND = 1 | ||
| EXIT = 2 | ||
| NO_AUTHORITY_CHANGE_USEG_STAT = 3 | ||
| NO_USEG_POS_TO_REVALUATE_FOUND = 4 | ||
| . " SP_REVALUATION_DATA_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM SP_REVALUATION_DATA_SELECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single FCODE FROM T185 INTO @DATA(ld_pe_fcode). | ||||
| "SELECT single PV_GRUND FROM USEGD INTO @DATA(ld_pi_grund). | ||||
| "SELECT single UBJAHR FROM USEGD INTO @DATA(ld_pi_ubjahr). | ||||
Search for further information about these or an SAP related objects