SAP ANST_TESTING_AGENT_UTRACE_OFF Function Module for Abschalten des globalen User Traces
ANST_TESTING_AGENT_UTRACE_OFF is a standard anst testing agent utrace off SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Abschalten des globalen User Traces 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 anst testing agent utrace off FM, simply by entering the name ANST_TESTING_AGENT_UTRACE_OFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: ANST_SEARCH_TRACES
Program Name: SAPLANST_SEARCH_TRACES
Main Program: SAPLANST_SEARCH_TRACES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function ANST_TESTING_AGENT_UTRACE_OFF 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 'ANST_TESTING_AGENT_UTRACE_OFF'"Abschalten des globalen User Traces.
EXPORTING
IT_REQ_IDS = "Table of ZRK_S_SERVER_REQID
* IV_ONLY_MY_SERVER = ' ' "allgemeines flag
* IV_DEACTIVATE_REMOTE_TRACE = 'X' "Remote Trace deaktivieren?
* IV_DEACTIVATE_TABLE_TRACE = "Tabellentrace deaktivieren?
* IT_TABLE_TYPES = "Types of tables to be traced
IMPORTING
EV_RETURN_CODE = "Return Value of ABAP Statements
EXCEPTIONS
ANST_TA_REL_NOT_SUPPORTED = 1 ANST_TA_ERROR = 2
IMPORTING Parameters details for ANST_TESTING_AGENT_UTRACE_OFF
IT_REQ_IDS - Table of ZRK_S_SERVER_REQID
Data type: ANST_T_SERVER_REQIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_ONLY_MY_SERVER - allgemeines flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_DEACTIVATE_REMOTE_TRACE - Remote Trace deaktivieren?
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_DEACTIVATE_TABLE_TRACE - Tabellentrace deaktivieren?
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_TABLE_TYPES - Types of tables to be traced
Data type: VALUEKEYSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ANST_TESTING_AGENT_UTRACE_OFF
EV_RETURN_CODE - Return Value of ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ANST_TA_REL_NOT_SUPPORTED - Funktionalität nicht untertützt in diesem Release
Data type:Optional: No
Call by Reference: Yes
ANST_TA_ERROR - Allgemeiner Fehler
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ANST_TESTING_AGENT_UTRACE_OFF 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_it_req_ids | TYPE ANST_T_SERVER_REQID, " | |||
lv_ev_return_code | TYPE SY-SUBRC, " | |||
lv_anst_ta_rel_not_supported | TYPE SY, " | |||
lv_anst_ta_error | TYPE SY, " | |||
lv_iv_only_my_server | TYPE FLAG, " SPACE | |||
lv_iv_deactivate_remote_trace | TYPE FLAG, " 'X' | |||
lv_iv_deactivate_table_trace | TYPE FLAG, " | |||
lv_it_table_types | TYPE VALUEKEYS. " |
  CALL FUNCTION 'ANST_TESTING_AGENT_UTRACE_OFF' "Abschalten des globalen User Traces |
EXPORTING | ||
IT_REQ_IDS | = lv_it_req_ids | |
IV_ONLY_MY_SERVER | = lv_iv_only_my_server | |
IV_DEACTIVATE_REMOTE_TRACE | = lv_iv_deactivate_remote_trace | |
IV_DEACTIVATE_TABLE_TRACE | = lv_iv_deactivate_table_trace | |
IT_TABLE_TYPES | = lv_it_table_types | |
IMPORTING | ||
EV_RETURN_CODE | = lv_ev_return_code | |
EXCEPTIONS | ||
ANST_TA_REL_NOT_SUPPORTED = 1 | ||
ANST_TA_ERROR = 2 | ||
. " ANST_TESTING_AGENT_UTRACE_OFF |
ABAP code using 7.40 inline data declarations to call FM ANST_TESTING_AGENT_UTRACE_OFF
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 SUBRC FROM SY INTO @DATA(ld_ev_return_code). | ||||
DATA(ld_iv_only_my_server) | = ' '. | |||
DATA(ld_iv_deactivate_remote_trace) | = 'X'. | |||
Search for further information about these or an SAP related objects