SAP ATRA_TRACE_ON_REMOTE Function Module for









ATRA_TRACE_ON_REMOTE is a standard atra trace on remote 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 atra trace on remote FM, simply by entering the name ATRA_TRACE_ON_REMOTE into the relevant SAP transaction such as SE37 or SE38.

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



Function ATRA_TRACE_ON_REMOTE 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 'ATRA_TRACE_ON_REMOTE'"
EXPORTING
I_FUNC = "
* I_UREQ_PTYPE = "
* I_UREQ_ONAME = "
* I_UREQ_IRUNS = "
* I_UREQ_EDATE = "
* I_UREQ_ETIME = "
I_VUSER = "
* I_VNAME = 'DEFAULT' "
* I_COMM = 'RFC-Test' "
* I_PARTICULAR_UNITS = 'X' "
* I_TYPE = 'F' "
* I_UREQ_SUSER = ' ' "
* I_UREQ_CLIENT = "
* I_UREQ_EMODE = "

IMPORTING
FNAME = "
P_SESSION_ID = "
P_SESSION_INIT_TIME = "
P_WP_ID = "

EXCEPTIONS
ERROR_DURING_TRACE_INIT = 1
.



IMPORTING Parameters details for ATRA_TRACE_ON_REMOTE

I_FUNC -

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

I_UREQ_PTYPE -

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

I_UREQ_ONAME -

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

I_UREQ_IRUNS -

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

I_UREQ_EDATE -

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

I_UREQ_ETIME -

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

I_VUSER -

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

I_VNAME -

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

I_COMM -

Data type: SE30VARTXT
Default: 'RFC-Test'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARTICULAR_UNITS -

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

I_TYPE -

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

I_UREQ_SUSER -

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

I_UREQ_CLIENT -

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

I_UREQ_EMODE -

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

EXPORTING Parameters details for ATRA_TRACE_ON_REMOTE

FNAME -

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

P_SESSION_ID -

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

P_SESSION_INIT_TIME -

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

P_WP_ID -

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

EXCEPTIONS details

ERROR_DURING_TRACE_INIT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ATRA_TRACE_ON_REMOTE 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_fname  TYPE SE30FNAME, "   
lv_i_func  TYPE RS38L-NAME, "   
lv_error_during_trace_init  TYPE RS38L, "   
lv_i_ureq_ptype  TYPE SE30U_PTYPE, "   
lv_i_ureq_oname  TYPE SE30U_ONAME, "   
lv_i_ureq_iruns  TYPE SE30U_IRUNS, "   
lv_i_ureq_edate  TYPE SE30U_EDATE, "   
lv_i_ureq_etime  TYPE SE30U_ETIME, "   
lv_i_vuser  TYPE USERNAME, "   
lv_p_session_id  TYPE SE30SESID, "   
lv_i_vname  TYPE SE30VAR, "   'DEFAULT'
lv_p_session_init_time  TYPE SE30SESTIM, "   
lv_i_comm  TYPE SE30VARTXT, "   'RFC-Test'
lv_p_wp_id  TYPE SYCHAR08, "   
lv_i_particular_units  TYPE SE30L1ONOF, "   'X'
lv_i_type  TYPE SYCHAR01, "   'F'
lv_i_ureq_suser  TYPE SE30U_SUSER, "   ' '
lv_i_ureq_client  TYPE MANDANT, "   
lv_i_ureq_emode  TYPE SE30U_EMODE. "   

  CALL FUNCTION 'ATRA_TRACE_ON_REMOTE'  "
    EXPORTING
         I_FUNC = lv_i_func
         I_UREQ_PTYPE = lv_i_ureq_ptype
         I_UREQ_ONAME = lv_i_ureq_oname
         I_UREQ_IRUNS = lv_i_ureq_iruns
         I_UREQ_EDATE = lv_i_ureq_edate
         I_UREQ_ETIME = lv_i_ureq_etime
         I_VUSER = lv_i_vuser
         I_VNAME = lv_i_vname
         I_COMM = lv_i_comm
         I_PARTICULAR_UNITS = lv_i_particular_units
         I_TYPE = lv_i_type
         I_UREQ_SUSER = lv_i_ureq_suser
         I_UREQ_CLIENT = lv_i_ureq_client
         I_UREQ_EMODE = lv_i_ureq_emode
    IMPORTING
         FNAME = lv_fname
         P_SESSION_ID = lv_p_session_id
         P_SESSION_INIT_TIME = lv_p_session_init_time
         P_WP_ID = lv_p_wp_id
    EXCEPTIONS
        ERROR_DURING_TRACE_INIT = 1
. " ATRA_TRACE_ON_REMOTE




ABAP code using 7.40 inline data declarations to call FM ATRA_TRACE_ON_REMOTE

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 NAME FROM RS38L INTO @DATA(ld_i_func).
 
 
 
 
 
 
 
 
 
DATA(ld_i_vname) = 'DEFAULT'.
 
 
DATA(ld_i_comm) = 'RFC-Test'.
 
 
DATA(ld_i_particular_units) = 'X'.
 
DATA(ld_i_type) = 'F'.
 
DATA(ld_i_ureq_suser) = ' '.
 
 
 


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!