SAP SVRS_GET_TR_DATA Function Module for API to get the TR details









SVRS_GET_TR_DATA is a standard svrs get tr data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for API to get the TR details 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 svrs get tr data FM, simply by entering the name SVRS_GET_TR_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: SVRS_VRS_CPY
Program Name: SAPLSVRS_VRS_CPY
Main Program: SAPLSVRS_VRS_CPY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SVRS_GET_TR_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 'SVRS_GET_TR_DATA'"API to get the TR details
EXPORTING
IV_TRKORR = "Request/Task

TABLES
* TT_E070 = "Change & Transport System: Header of Requests/Tasks
* TT_E07T = "Change & Transport System: Short Texts for Requests/Tasks
* TT_E070A = "Change & Transport System: Attributes of a Request
* TT_E070C = "CTS: Source/Target Client of Requests/Tasks
* TT_E071 = "Change & Transport System: Object Entries of Requests/Tasks
* TT_E071K = "Transport system: Key entries of requests/tasks
* TT_E071KF = "Transport system: Nametab information for (CHAR) key fields
.



IMPORTING Parameters details for SVRS_GET_TR_DATA

IV_TRKORR - Request/Task

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

TABLES Parameters details for SVRS_GET_TR_DATA

TT_E070 - Change & Transport System: Header of Requests/Tasks

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

TT_E07T - Change & Transport System: Short Texts for Requests/Tasks

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

TT_E070A - Change & Transport System: Attributes of a Request

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

TT_E070C - CTS: Source/Target Client of Requests/Tasks

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

TT_E071 - Change & Transport System: Object Entries of Requests/Tasks

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

TT_E071K - Transport system: Key entries of requests/tasks

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

TT_E071KF - Transport system: Nametab information for (CHAR) key fields

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

Copy and paste ABAP code example for SVRS_GET_TR_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_tt_e070  TYPE STANDARD TABLE OF E070, "   
lv_iv_trkorr  TYPE TRKORR, "   
lt_tt_e07t  TYPE STANDARD TABLE OF E07T, "   
lt_tt_e070a  TYPE STANDARD TABLE OF E070A, "   
lt_tt_e070c  TYPE STANDARD TABLE OF E070C, "   
lt_tt_e071  TYPE STANDARD TABLE OF E071, "   
lt_tt_e071k  TYPE STANDARD TABLE OF E071K, "   
lt_tt_e071kf  TYPE STANDARD TABLE OF E071KF. "   

  CALL FUNCTION 'SVRS_GET_TR_DATA'  "API to get the TR details
    EXPORTING
         IV_TRKORR = lv_iv_trkorr
    TABLES
         TT_E070 = lt_tt_e070
         TT_E07T = lt_tt_e07t
         TT_E070A = lt_tt_e070a
         TT_E070C = lt_tt_e070c
         TT_E071 = lt_tt_e071
         TT_E071K = lt_tt_e071k
         TT_E071KF = lt_tt_e071kf
. " SVRS_GET_TR_DATA




ABAP code using 7.40 inline data declarations to call FM SVRS_GET_TR_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.

 
 
 
 
 
 
 
 


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!