SAP SACC_TRACE_OFF Function Module for
SACC_TRACE_OFF is a standard sacc trace off 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 sacc trace off FM, simply by entering the name SACC_TRACE_OFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: SSQ0ACC
Program Name: SAPLSSQ0ACC
Main Program: SAPLSSQ0ACC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SACC_TRACE_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 'SACC_TRACE_OFF'".
EXPORTING
* TRACE_USER = SY-UNAME "
* SQL_TRACE_OFF = 'X' "
* ENQ_TRACE_OFF = ' ' "
* RFC_TRACE_OFF = ' ' "
* HTTP_TRACE_OFF = ' ' "
* BUF_TRACE_OFF = ' ' "
* AUTH_TRACE_OFF = ' ' "
* CHECK_USER = ' ' "
IMPORTING
LAST_MOD_DAT = "
LAST_MOD_TIME = "
LAST_MOD_USER = "
EXCEPTIONS
ERROR_TRACE_OFF = 1 ERROR_MOD_USER = 2
IMPORTING Parameters details for SACC_TRACE_OFF
TRACE_USER -
Data type: SYUNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: Yes
SQL_TRACE_OFF -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
ENQ_TRACE_OFF -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
RFC_TRACE_OFF -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
HTTP_TRACE_OFF -
Data type: CHAR1Default: SPACE
Optional: No
Call by Reference: Yes
BUF_TRACE_OFF -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
AUTH_TRACE_OFF -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
CHECK_USER -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SACC_TRACE_OFF
LAST_MOD_DAT -
Data type: DATSOptional: No
Call by Reference: Yes
LAST_MOD_TIME -
Data type: TIMSOptional: No
Call by Reference: Yes
LAST_MOD_USER -
Data type: SY-UNAMEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_TRACE_OFF -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_MOD_USER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SACC_TRACE_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_trace_user | TYPE SYUNAME, " SY-UNAME | |||
| lv_last_mod_dat | TYPE DATS, " | |||
| lv_error_trace_off | TYPE DATS, " | |||
| lv_last_mod_time | TYPE TIMS, " | |||
| lv_sql_trace_off | TYPE CHAR1, " 'X' | |||
| lv_error_mod_user | TYPE CHAR1, " | |||
| lv_enq_trace_off | TYPE CHAR1, " SPACE | |||
| lv_last_mod_user | TYPE SY-UNAME, " | |||
| lv_rfc_trace_off | TYPE CHAR1, " SPACE | |||
| lv_http_trace_off | TYPE CHAR1, " SPACE | |||
| lv_buf_trace_off | TYPE CHAR1, " SPACE | |||
| lv_auth_trace_off | TYPE CHAR1, " SPACE | |||
| lv_check_user | TYPE CHAR1. " SPACE |
|   CALL FUNCTION 'SACC_TRACE_OFF' " |
| EXPORTING | ||
| TRACE_USER | = lv_trace_user | |
| SQL_TRACE_OFF | = lv_sql_trace_off | |
| ENQ_TRACE_OFF | = lv_enq_trace_off | |
| RFC_TRACE_OFF | = lv_rfc_trace_off | |
| HTTP_TRACE_OFF | = lv_http_trace_off | |
| BUF_TRACE_OFF | = lv_buf_trace_off | |
| AUTH_TRACE_OFF | = lv_auth_trace_off | |
| CHECK_USER | = lv_check_user | |
| IMPORTING | ||
| LAST_MOD_DAT | = lv_last_mod_dat | |
| LAST_MOD_TIME | = lv_last_mod_time | |
| LAST_MOD_USER | = lv_last_mod_user | |
| EXCEPTIONS | ||
| ERROR_TRACE_OFF = 1 | ||
| ERROR_MOD_USER = 2 | ||
| . " SACC_TRACE_OFF | ||
ABAP code using 7.40 inline data declarations to call FM SACC_TRACE_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.| DATA(ld_trace_user) | = SY-UNAME. | |||
| DATA(ld_sql_trace_off) | = 'X'. | |||
| DATA(ld_enq_trace_off) | = ' '. | |||
| "SELECT single UNAME FROM SY INTO @DATA(ld_last_mod_user). | ||||
| DATA(ld_rfc_trace_off) | = ' '. | |||
| DATA(ld_http_trace_off) | = ' '. | |||
| DATA(ld_buf_trace_off) | = ' '. | |||
| DATA(ld_auth_trace_off) | = ' '. | |||
| DATA(ld_check_user) | = ' '. | |||
Search for further information about these or an SAP related objects