SAP SCPRCOMPARE_SELECTION_SCREEN Function Module for Call up selection screen
SCPRCOMPARE_SELECTION_SCREEN is a standard scprcompare selection screen SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call up selection screen 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 scprcompare selection screen FM, simply by entering the name SCPRCOMPARE_SELECTION_SCREEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPRCOMPARE
Program Name: SAPLSCPRCOMPARE
Main Program: SAPLSCPRCOMPARE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPRCOMPARE_SELECTION_SCREEN 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 'SCPRCOMPARE_SELECTION_SCREEN'"Call up selection screen.
EXPORTING
* I_BCSET_A = ' ' "Business Configuration Set
* I_PRINT_ALL = ' ' "
* I_LANGVECTOR = "
* I_NO_DISPLAY = ' ' "
* I_BCSET_UEBERSICHT = ' ' "Single-Character Flag
* I_BCSET_B = ' ' "Business Configuration Set
* CATEGORY = ' ' "
* I_DRUCKAUSGABE = ' ' "Single-Character Flag
* I_AUFBAUVERGLEICH = ' ' "Single-Character Flag
* I_VARIABLENVERGLEICH = ' ' "Single-Character Flag
* I_TABELLENVERGLEICH = ' ' "Single-Character Flag
* I_DATENSATZVERGLEICH = 'X' "Single-Character Flag
* I_MAXIMALE_AUSGABEBREITE = 120 "
IMPORTING
E_BCSET_A = "Business Configuration Set
E_LANGVECTOR = "
E_DIFFERENCE = "
E_NO_DISPLAY = "Single-Character Flag
E_BCSET_UEBERSICHT = "Single-Character Flag
E_BCSET_B = "Business Configuration Set
E_DRUCKAUSGABE = "Single-Character Flag
E_AUFBAUVERGLEICH = "Single-Character Flag
E_VARIABLENVERGLEICH = "Single-Character Flag
E_TABELLENVERGLEICH = "Single-Character Flag
E_DATENSATZVERGLEICH = "Single-Character Flag
E_MAXIMALE_AUSGABEBREITE = "
E_PRINT_ALL = "Single-Character Flag
IMPORTING Parameters details for SCPRCOMPARE_SELECTION_SCREEN
I_BCSET_A - Business Configuration Set
Data type: SCPR_IDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_PRINT_ALL -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_LANGVECTOR -
Data type: SCPR_LANGUAGESOptional: Yes
Call by Reference: Yes
I_NO_DISPLAY -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_BCSET_UEBERSICHT - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_BCSET_B - Business Configuration Set
Data type: SCPR_IDDefault: SPACE
Optional: Yes
Call by Reference: Yes
CATEGORY -
Data type: SCPR_CTGRYDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_DRUCKAUSGABE - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_AUFBAUVERGLEICH - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_VARIABLENVERGLEICH - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_TABELLENVERGLEICH - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_DATENSATZVERGLEICH - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
I_MAXIMALE_AUSGABEBREITE -
Data type: IDefault: 120
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SCPRCOMPARE_SELECTION_SCREEN
E_BCSET_A - Business Configuration Set
Data type: SCPR_IDOptional: No
Call by Reference: Yes
E_LANGVECTOR -
Data type: SCPR_LANGUAGESOptional: No
Call by Reference: Yes
E_DIFFERENCE -
Data type: CHAR1Optional: No
Call by Reference: Yes
E_NO_DISPLAY - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_BCSET_UEBERSICHT - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_BCSET_B - Business Configuration Set
Data type: SCPR_IDOptional: No
Call by Reference: Yes
E_DRUCKAUSGABE - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_AUFBAUVERGLEICH - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_VARIABLENVERGLEICH - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_TABELLENVERGLEICH - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_DATENSATZVERGLEICH - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
E_MAXIMALE_AUSGABEBREITE -
Data type: IOptional: No
Call by Reference: Yes
E_PRINT_ALL - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCPRCOMPARE_SELECTION_SCREEN 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_e_bcset_a | TYPE SCPR_ID, " | |||
| lv_i_bcset_a | TYPE SCPR_ID, " SPACE | |||
| lv_i_print_all | TYPE CHAR1, " SPACE | |||
| lv_e_langvector | TYPE SCPR_LANGUAGES, " | |||
| lv_e_difference | TYPE CHAR1, " | |||
| lv_i_langvector | TYPE SCPR_LANGUAGES, " | |||
| lv_e_no_display | TYPE CHAR1, " | |||
| lv_i_no_display | TYPE CHAR1, " SPACE | |||
| lv_e_bcset_uebersicht | TYPE CHAR1, " | |||
| lv_i_bcset_uebersicht | TYPE CHAR1, " SPACE | |||
| lv_e_bcset_b | TYPE SCPR_ID, " | |||
| lv_i_bcset_b | TYPE SCPR_ID, " SPACE | |||
| lv_category | TYPE SCPR_CTGRY, " SPACE | |||
| lv_e_druckausgabe | TYPE CHAR1, " | |||
| lv_i_druckausgabe | TYPE CHAR1, " SPACE | |||
| lv_e_aufbauvergleich | TYPE CHAR1, " | |||
| lv_i_aufbauvergleich | TYPE CHAR1, " SPACE | |||
| lv_e_variablenvergleich | TYPE CHAR1, " | |||
| lv_e_tabellenvergleich | TYPE CHAR1, " | |||
| lv_i_variablenvergleich | TYPE CHAR1, " SPACE | |||
| lv_i_tabellenvergleich | TYPE CHAR1, " SPACE | |||
| lv_e_datensatzvergleich | TYPE CHAR1, " | |||
| lv_i_datensatzvergleich | TYPE CHAR1, " 'X' | |||
| lv_e_maximale_ausgabebreite | TYPE I, " | |||
| lv_e_print_all | TYPE CHAR1, " | |||
| lv_i_maximale_ausgabebreite | TYPE I. " 120 |
|   CALL FUNCTION 'SCPRCOMPARE_SELECTION_SCREEN' "Call up selection screen |
| EXPORTING | ||
| I_BCSET_A | = lv_i_bcset_a | |
| I_PRINT_ALL | = lv_i_print_all | |
| I_LANGVECTOR | = lv_i_langvector | |
| I_NO_DISPLAY | = lv_i_no_display | |
| I_BCSET_UEBERSICHT | = lv_i_bcset_uebersicht | |
| I_BCSET_B | = lv_i_bcset_b | |
| CATEGORY | = lv_category | |
| I_DRUCKAUSGABE | = lv_i_druckausgabe | |
| I_AUFBAUVERGLEICH | = lv_i_aufbauvergleich | |
| I_VARIABLENVERGLEICH | = lv_i_variablenvergleich | |
| I_TABELLENVERGLEICH | = lv_i_tabellenvergleich | |
| I_DATENSATZVERGLEICH | = lv_i_datensatzvergleich | |
| I_MAXIMALE_AUSGABEBREITE | = lv_i_maximale_ausgabebreite | |
| IMPORTING | ||
| E_BCSET_A | = lv_e_bcset_a | |
| E_LANGVECTOR | = lv_e_langvector | |
| E_DIFFERENCE | = lv_e_difference | |
| E_NO_DISPLAY | = lv_e_no_display | |
| E_BCSET_UEBERSICHT | = lv_e_bcset_uebersicht | |
| E_BCSET_B | = lv_e_bcset_b | |
| E_DRUCKAUSGABE | = lv_e_druckausgabe | |
| E_AUFBAUVERGLEICH | = lv_e_aufbauvergleich | |
| E_VARIABLENVERGLEICH | = lv_e_variablenvergleich | |
| E_TABELLENVERGLEICH | = lv_e_tabellenvergleich | |
| E_DATENSATZVERGLEICH | = lv_e_datensatzvergleich | |
| E_MAXIMALE_AUSGABEBREITE | = lv_e_maximale_ausgabebreite | |
| E_PRINT_ALL | = lv_e_print_all | |
| . " SCPRCOMPARE_SELECTION_SCREEN | ||
ABAP code using 7.40 inline data declarations to call FM SCPRCOMPARE_SELECTION_SCREEN
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.| DATA(ld_i_bcset_a) | = ' '. | |||
| DATA(ld_i_print_all) | = ' '. | |||
| DATA(ld_i_no_display) | = ' '. | |||
| DATA(ld_i_bcset_uebersicht) | = ' '. | |||
| DATA(ld_i_bcset_b) | = ' '. | |||
| DATA(ld_category) | = ' '. | |||
| DATA(ld_i_druckausgabe) | = ' '. | |||
| DATA(ld_i_aufbauvergleich) | = ' '. | |||
| DATA(ld_i_variablenvergleich) | = ' '. | |||
| DATA(ld_i_tabellenvergleich) | = ' '. | |||
| DATA(ld_i_datensatzvergleich) | = 'X'. | |||
| DATA(ld_i_maximale_ausgabebreite) | = 120. | |||
Search for further information about these or an SAP related objects