SAP SCPR_TR_READ_DATA Function Module for
SCPR_TR_READ_DATA is a standard scpr tr read data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 scpr tr read data FM, simply by entering the name SCPR_TR_READ_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPRTR
Program Name: SAPLSCPRTR
Main Program: SAPLSCPRTR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPR_TR_READ_DATA 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 'SCPR_TR_READ_DATA'".
EXPORTING
* ONLY_CURRENT_CLIENT = 'X' "
* ONLY_KEYS = ' ' "
* WITH_PROGRESS_INDICATOR = 'X' "
* CHECK_ONLY = ' ' "
* ENTITIES_VARIABLE = 'X' "
* CATEGORY = ' ' "
* CHECK_CLI_DEP = ' ' "
* CHECK_CLI_CAS = ' ' "
IMPORTING
TAB_FIELDDESCRS = "
TAB_RECATTR = "
TAB_VALUES = "
TABLES
TAB_E071 = "Change & Transport System: Object Entries of Requests/Tasks
TAB_E071K = "Change & Transport System: Key Entries of Requests/Tasks
* TAB_STATUSLIST = "
EXCEPTIONS
NO_DATA_FOUND = 1
IMPORTING Parameters details for SCPR_TR_READ_DATA
ONLY_CURRENT_CLIENT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_KEYS -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_PROGRESS_INDICATOR -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_ONLY -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENTITIES_VARIABLE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CATEGORY -
Data type: SCPR_CTGRYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_CLI_DEP -
Data type: SCPR_CLDEPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_CLI_CAS -
Data type: SCPR_CLCASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCPR_TR_READ_DATA
TAB_FIELDDESCRS -
Data type: SCPR_RECORDSOptional: No
Call by Reference: Yes
TAB_RECATTR -
Data type: SCPR_RECA_TABOptional: No
Call by Reference: Yes
TAB_VALUES -
Data type: SCPR_VALS_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for SCPR_TR_READ_DATA
TAB_E071 - Change & Transport System: Object Entries of Requests/Tasks
Data type: E071Optional: No
Call by Reference: No ( called with pass by value option)
TAB_E071K - Change & Transport System: Key Entries of Requests/Tasks
Data type: E071KOptional: No
Call by Reference: No ( called with pass by value option)
TAB_STATUSLIST -
Data type: SCPR_TRANSP_ENTRIESOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCPR_TR_READ_DATA 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: | ||||
| lt_tab_e071 | TYPE STANDARD TABLE OF E071, " | |||
| lv_no_data_found | TYPE E071, " | |||
| lv_tab_fielddescrs | TYPE SCPR_RECORDS, " | |||
| lv_only_current_client | TYPE C, " 'X' | |||
| lv_only_keys | TYPE C, " ' ' | |||
| lt_tab_e071k | TYPE STANDARD TABLE OF E071K, " | |||
| lv_tab_recattr | TYPE SCPR_RECA_TAB, " | |||
| lv_tab_values | TYPE SCPR_VALS_TAB, " | |||
| lt_tab_statuslist | TYPE STANDARD TABLE OF SCPR_TRANSP_ENTRIES, " | |||
| lv_with_progress_indicator | TYPE C, " 'X' | |||
| lv_check_only | TYPE C, " ' ' | |||
| lv_entities_variable | TYPE C, " 'X' | |||
| lv_category | TYPE SCPR_CTGRY, " SPACE | |||
| lv_check_cli_dep | TYPE SCPR_CLDEP, " SPACE | |||
| lv_check_cli_cas | TYPE SCPR_CLCAS. " SPACE |
|   CALL FUNCTION 'SCPR_TR_READ_DATA' " |
| EXPORTING | ||
| ONLY_CURRENT_CLIENT | = lv_only_current_client | |
| ONLY_KEYS | = lv_only_keys | |
| WITH_PROGRESS_INDICATOR | = lv_with_progress_indicator | |
| CHECK_ONLY | = lv_check_only | |
| ENTITIES_VARIABLE | = lv_entities_variable | |
| CATEGORY | = lv_category | |
| CHECK_CLI_DEP | = lv_check_cli_dep | |
| CHECK_CLI_CAS | = lv_check_cli_cas | |
| IMPORTING | ||
| TAB_FIELDDESCRS | = lv_tab_fielddescrs | |
| TAB_RECATTR | = lv_tab_recattr | |
| TAB_VALUES | = lv_tab_values | |
| TABLES | ||
| TAB_E071 | = lt_tab_e071 | |
| TAB_E071K | = lt_tab_e071k | |
| TAB_STATUSLIST | = lt_tab_statuslist | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| . " SCPR_TR_READ_DATA | ||
ABAP code using 7.40 inline data declarations to call FM SCPR_TR_READ_DATA
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_only_current_client) | = 'X'. | |||
| DATA(ld_only_keys) | = ' '. | |||
| DATA(ld_with_progress_indicator) | = 'X'. | |||
| DATA(ld_check_only) | = ' '. | |||
| DATA(ld_entities_variable) | = 'X'. | |||
| DATA(ld_category) | = ' '. | |||
| DATA(ld_check_cli_dep) | = ' '. | |||
| DATA(ld_check_cli_cas) | = ' '. | |||
Search for further information about these or an SAP related objects