SAP E2E_TESTING_AGENT_TASK_SQLTRAC Function Module for









E2E_TESTING_AGENT_TASK_SQLTRAC is a standard e2e testing agent task sqltrac 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 e2e testing agent task sqltrac FM, simply by entering the name E2E_TESTING_AGENT_TASK_SQLTRAC into the relevant SAP transaction such as SE37 or SE38.

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



Function E2E_TESTING_AGENT_TASK_SQLTRAC 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 'E2E_TESTING_AGENT_TASK_SQLTRAC'"
EXPORTING
* IT_ATRATRACE_IDS = "
* IT_TRACES = "
* I_START_DATE = "
* I_END_DATE = "
* I_START_TIME = "
* I_END_TIME = "
* I_TIMEZONE = "
* I_TRACE_USER = "
* IT_TABLE_TYPES = "Key for Drop Down Box
* IS_TRACE_OPTION = "E2E: TBOM Trace Options

TABLES
* ET_TBOM_BASE_KEY = "
ET_TBOM_BASE = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for E2E_TESTING_AGENT_TASK_SQLTRAC

IT_ATRATRACE_IDS -

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

IT_TRACES -

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

I_START_DATE -

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

I_END_DATE -

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

I_START_TIME -

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

I_END_TIME -

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

I_TIMEZONE -

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

I_TRACE_USER -

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

IT_TABLE_TYPES - Key for Drop Down Box

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

IS_TRACE_OPTION - E2E: TBOM Trace Options

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

TABLES Parameters details for E2E_TESTING_AGENT_TASK_SQLTRAC

ET_TBOM_BASE_KEY -

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

ET_TBOM_BASE -

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

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for E2E_TESTING_AGENT_TASK_SQLTRAC 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_error  TYPE STRING, "   
lt_et_tbom_base_key  TYPE STANDARD TABLE OF E2ET_TBOM_BASE_KEYS, "   
lv_it_atratrace_ids  TYPE ATRA_TRACE_IDS_T, "   
lv_it_traces  TYPE E2ET_TBOM_TRACE_T, "   
lt_et_tbom_base  TYPE STANDARD TABLE OF E2ET_TBOM_BASE, "   
lv_i_start_date  TYPE SY-DATUM, "   
lv_i_end_date  TYPE SY-DATUM, "   
lv_i_start_time  TYPE SY-UZEIT, "   
lv_i_end_time  TYPE SY-UZEIT, "   
lv_i_timezone  TYPE TIMEZONE, "   
lv_i_trace_user  TYPE SYUNAME, "   
lv_it_table_types  TYPE VALUEKEYS, "   
lv_is_trace_option  TYPE E2E_TRACE_OPTIONS. "   

  CALL FUNCTION 'E2E_TESTING_AGENT_TASK_SQLTRAC'  "
    EXPORTING
         IT_ATRATRACE_IDS = lv_it_atratrace_ids
         IT_TRACES = lv_it_traces
         I_START_DATE = lv_i_start_date
         I_END_DATE = lv_i_end_date
         I_START_TIME = lv_i_start_time
         I_END_TIME = lv_i_end_time
         I_TIMEZONE = lv_i_timezone
         I_TRACE_USER = lv_i_trace_user
         IT_TABLE_TYPES = lv_it_table_types
         IS_TRACE_OPTION = lv_is_trace_option
    TABLES
         ET_TBOM_BASE_KEY = lt_et_tbom_base_key
         ET_TBOM_BASE = lt_et_tbom_base
    EXCEPTIONS
        ERROR = 1
. " E2E_TESTING_AGENT_TASK_SQLTRAC




ABAP code using 7.40 inline data declarations to call FM E2E_TESTING_AGENT_TASK_SQLTRAC

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 DATUM FROM SY INTO @DATA(ld_i_start_date).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_end_date).
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_i_start_time).
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_i_end_time).
 
 
 
 
 


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!