SAP SCPR_TR_READ_DATA_TDAT Function Module for









SCPR_TR_READ_DATA_TDAT is a standard scpr tr read data tdat 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 tdat FM, simply by entering the name SCPR_TR_READ_DATA_TDAT 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_TDAT 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_TDAT'"
EXPORTING
ORDER_NO = "Request/Task
* CHECK_ONLY = ' ' "
* READ_ENTIRE_TABLE = ' ' "
* ENTITIES_VARIABLE = 'X' "
* CATEGORY = ' ' "
* CHECK_CLI_DEP = ' ' "
* CHECK_CLI_CAS = ' ' "
MASTERNAME = "Object Name in Object Directory
MASTERTYPE = "Object Type
ACTIVITY = "IMG Activity
LANG = "
* MAIN_OBJNAME = "
* MAIN_OBJTYPE = "
* ONLY_CURRENT_CLIENT = 'X' "
* ONLY_KEYS = ' ' "

IMPORTING
OBJ_DATA_COUNT = "
OBJ_VALID_TR_KEYS = "
OBJ_CLI_DEP = "
OBJ_CLI_CAS = "
BCSET_RELEVANT = "
CHECKED_OBJ_TABLES = "

CHANGING
TAB_FIELDDESCRS = "
TAB_RECATTR = "
TAB_VALUES = "
* REFRESH_RECNUM_BUFFER = 'X' "
* CHECKED_ALL_TABLES = "
* DENIED_ALL_TABLES = "

TABLES
TAB_E071K = "Change & Transport System: Key Entries of Requests/Tasks
TAB_ERRORS = "Error Message Table
.



IMPORTING Parameters details for SCPR_TR_READ_DATA_TDAT

ORDER_NO - Request/Task

Data type: E071-TRKORR
Optional: No
Call by Reference: No ( called with pass by value option)

CHECK_ONLY -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_ENTIRE_TABLE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENTITIES_VARIABLE -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CATEGORY -

Data type: SCPRATTR-CATEGORY
Default: SPACE
Optional: Yes
Call by Reference: Yes

CHECK_CLI_DEP -

Data type: SCPRATTR-CLI_DEP
Default: SPACE
Optional: Yes
Call by Reference: Yes

CHECK_CLI_CAS -

Data type: SCPRATTR-CLI_CAS
Default: SPACE
Optional: Yes
Call by Reference: Yes

MASTERNAME - Object Name in Object Directory

Data type: E071K-MASTERNAME
Optional: No
Call by Reference: No ( called with pass by value option)

MASTERTYPE - Object Type

Data type: E071K-MASTERTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

ACTIVITY - IMG Activity

Data type: E071K-ACTIVITY
Optional: No
Call by Reference: No ( called with pass by value option)

LANG -

Data type: E071K-LANG
Optional: No
Call by Reference: No ( called with pass by value option)

MAIN_OBJNAME -

Data type: OBJH-OBJECTNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAIN_OBJTYPE -

Data type: OBJH-OBJECTTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLY_CURRENT_CLIENT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLY_KEYS -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SCPR_TR_READ_DATA_TDAT

OBJ_DATA_COUNT -

Data type: I
Optional: No
Call by Reference: Yes

OBJ_VALID_TR_KEYS -

Data type: I
Optional: No
Call by Reference: Yes

OBJ_CLI_DEP -

Data type: SCPR_CLDEP
Optional: No
Call by Reference: Yes

OBJ_CLI_CAS -

Data type: SCPR_CLCAS
Optional: No
Call by Reference: Yes

BCSET_RELEVANT -

Data type: C
Optional: No
Call by Reference: Yes

CHECKED_OBJ_TABLES -

Data type: SCP1_CHECKED_TABLES
Optional: No
Call by Reference: Yes

CHANGING Parameters details for SCPR_TR_READ_DATA_TDAT

TAB_FIELDDESCRS -

Data type: SCPR_RECORDS
Optional: No
Call by Reference: Yes

TAB_RECATTR -

Data type: SCPR_RECA_TAB
Optional: No
Call by Reference: Yes

TAB_VALUES -

Data type: SCPR_VALS_TAB
Optional: No
Call by Reference: Yes

REFRESH_RECNUM_BUFFER -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHECKED_ALL_TABLES -

Data type: SCP1_CHECKED_TABLES
Optional: Yes
Call by Reference: Yes

DENIED_ALL_TABLES -

Data type: SCP1_CHECKED_TABLES
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SCPR_TR_READ_DATA_TDAT

TAB_E071K - Change & Transport System: Key Entries of Requests/Tasks

Data type: E071K
Optional: No
Call by Reference: No ( called with pass by value option)

TAB_ERRORS - Error Message Table

Data type: SCPR_TRANSP_ERRORS
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCPR_TR_READ_DATA_TDAT 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_order_no  TYPE E071-TRKORR, "   
lt_tab_e071k  TYPE STANDARD TABLE OF E071K, "   
lv_obj_data_count  TYPE I, "   
lv_tab_fielddescrs  TYPE SCPR_RECORDS, "   
lv_check_only  TYPE C, "   ' '
lv_read_entire_table  TYPE C, "   SPACE
lv_entities_variable  TYPE C, "   'X'
lv_category  TYPE SCPRATTR-CATEGORY, "   SPACE
lv_check_cli_dep  TYPE SCPRATTR-CLI_DEP, "   SPACE
lv_check_cli_cas  TYPE SCPRATTR-CLI_CAS, "   SPACE
lv_mastername  TYPE E071K-MASTERNAME, "   
lt_tab_errors  TYPE STANDARD TABLE OF SCPR_TRANSP_ERRORS, "   
lv_tab_recattr  TYPE SCPR_RECA_TAB, "   
lv_obj_valid_tr_keys  TYPE I, "   
lv_mastertype  TYPE E071K-MASTERTYPE, "   
lv_tab_values  TYPE SCPR_VALS_TAB, "   
lv_obj_cli_dep  TYPE SCPR_CLDEP, "   
lv_activity  TYPE E071K-ACTIVITY, "   
lv_obj_cli_cas  TYPE SCPR_CLCAS, "   
lv_refresh_recnum_buffer  TYPE C, "   'X'
lv_lang  TYPE E071K-LANG, "   
lv_bcset_relevant  TYPE C, "   
lv_checked_all_tables  TYPE SCP1_CHECKED_TABLES, "   
lv_main_objname  TYPE OBJH-OBJECTNAME, "   
lv_denied_all_tables  TYPE SCP1_CHECKED_TABLES, "   
lv_checked_obj_tables  TYPE SCP1_CHECKED_TABLES, "   
lv_main_objtype  TYPE OBJH-OBJECTTYPE, "   
lv_only_current_client  TYPE C, "   'X'
lv_only_keys  TYPE C. "   ' '

  CALL FUNCTION 'SCPR_TR_READ_DATA_TDAT'  "
    EXPORTING
         ORDER_NO = lv_order_no
         CHECK_ONLY = lv_check_only
         READ_ENTIRE_TABLE = lv_read_entire_table
         ENTITIES_VARIABLE = lv_entities_variable
         CATEGORY = lv_category
         CHECK_CLI_DEP = lv_check_cli_dep
         CHECK_CLI_CAS = lv_check_cli_cas
         MASTERNAME = lv_mastername
         MASTERTYPE = lv_mastertype
         ACTIVITY = lv_activity
         LANG = lv_lang
         MAIN_OBJNAME = lv_main_objname
         MAIN_OBJTYPE = lv_main_objtype
         ONLY_CURRENT_CLIENT = lv_only_current_client
         ONLY_KEYS = lv_only_keys
    IMPORTING
         OBJ_DATA_COUNT = lv_obj_data_count
         OBJ_VALID_TR_KEYS = lv_obj_valid_tr_keys
         OBJ_CLI_DEP = lv_obj_cli_dep
         OBJ_CLI_CAS = lv_obj_cli_cas
         BCSET_RELEVANT = lv_bcset_relevant
         CHECKED_OBJ_TABLES = lv_checked_obj_tables
    CHANGING
         TAB_FIELDDESCRS = lv_tab_fielddescrs
         TAB_RECATTR = lv_tab_recattr
         TAB_VALUES = lv_tab_values
         REFRESH_RECNUM_BUFFER = lv_refresh_recnum_buffer
         CHECKED_ALL_TABLES = lv_checked_all_tables
         DENIED_ALL_TABLES = lv_denied_all_tables
    TABLES
         TAB_E071K = lt_tab_e071k
         TAB_ERRORS = lt_tab_errors
. " SCPR_TR_READ_DATA_TDAT




ABAP code using 7.40 inline data declarations to call FM SCPR_TR_READ_DATA_TDAT

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 TRKORR FROM E071 INTO @DATA(ld_order_no).
 
 
 
 
DATA(ld_check_only) = ' '.
 
DATA(ld_read_entire_table) = ' '.
 
DATA(ld_entities_variable) = 'X'.
 
"SELECT single CATEGORY FROM SCPRATTR INTO @DATA(ld_category).
DATA(ld_category) = ' '.
 
"SELECT single CLI_DEP FROM SCPRATTR INTO @DATA(ld_check_cli_dep).
DATA(ld_check_cli_dep) = ' '.
 
"SELECT single CLI_CAS FROM SCPRATTR INTO @DATA(ld_check_cli_cas).
DATA(ld_check_cli_cas) = ' '.
 
"SELECT single MASTERNAME FROM E071K INTO @DATA(ld_mastername).
 
 
 
 
"SELECT single MASTERTYPE FROM E071K INTO @DATA(ld_mastertype).
 
 
 
"SELECT single ACTIVITY FROM E071K INTO @DATA(ld_activity).
 
 
DATA(ld_refresh_recnum_buffer) = 'X'.
 
"SELECT single LANG FROM E071K INTO @DATA(ld_lang).
 
 
 
"SELECT single OBJECTNAME FROM OBJH INTO @DATA(ld_main_objname).
 
 
 
"SELECT single OBJECTTYPE FROM OBJH INTO @DATA(ld_main_objtype).
 
DATA(ld_only_current_client) = 'X'.
 
DATA(ld_only_keys) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!