SAP Function Modules

ANST_TESTING_AGEN_TRACE_DIALOG SAP Function module - Dialog to start and stop the trace of the web application







ANST_TESTING_AGEN_TRACE_DIALOG is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ANST_TESTING_AGEN_TRACE_DIALOG into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ANST_SEARCH_TRACES
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ANST_TESTING_AGEN_TRACE_DIALOG - ANST TESTING AGEN TRACE DIALOG





CALL FUNCTION 'ANST_TESTING_AGEN_TRACE_DIALOG' "Dialog to start and stop the trace of the web application
* EXPORTING
*   i_url_type =                " char128       128 character
*   i_url =                     " string
*   i_atra_object_name =        " char40        Character field of length 40
*   i_uname = SY-UNAME          " syuname       SAP System, User Logon Name
*   i_with_table_trace =        " flag          General Flag
  IMPORTING
    e_start_date =              " sy-datum      Date and Time, Current (Application Server) Date
    e_start_time =              " sy-uzeit      Date and Time, Current (Application Server) Date
    e_end_date =                " sy-datum      Date and Time, Current (Application Server) Date
    e_end_time =                " sy-uzeit      Date and Time, Current Application Server Time
    e_trace_user =              " syuname       SAP System, User Logon Name
  EXCEPTIONS
    ANST_ERROR = 1              "
    .  "  ANST_TESTING_AGEN_TRACE_DIALOG

ABAP code example for Function Module ANST_TESTING_AGEN_TRACE_DIALOG





The ABAP code below is a full code listing to execute function module ANST_TESTING_AGEN_TRACE_DIALOG including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_start_date  TYPE SY-DATUM ,
ld_e_start_time  TYPE SY-UZEIT ,
ld_e_end_date  TYPE SY-DATUM ,
ld_e_end_time  TYPE SY-UZEIT ,
ld_e_trace_user  TYPE SYUNAME .

DATA(ld_i_url_type) = 'Check type of data required'.
DATA(ld_i_url) = 'Check type of data required'.
DATA(ld_i_atra_object_name) = 'Check type of data required'.
DATA(ld_i_uname) = 'some text here'.
DATA(ld_i_with_table_trace) = 'some text here'. . CALL FUNCTION 'ANST_TESTING_AGEN_TRACE_DIALOG' * EXPORTING * i_url_type = ld_i_url_type * i_url = ld_i_url * i_atra_object_name = ld_i_atra_object_name * i_uname = ld_i_uname * i_with_table_trace = ld_i_with_table_trace IMPORTING e_start_date = ld_e_start_date e_start_time = ld_e_start_time e_end_date = ld_e_end_date e_end_time = ld_e_end_time e_trace_user = ld_e_trace_user EXCEPTIONS ANST_ERROR = 1 . " ANST_TESTING_AGEN_TRACE_DIALOG
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_start_date  TYPE SY-DATUM ,
ld_i_url_type  TYPE CHAR128 ,
ld_e_start_time  TYPE SY-UZEIT ,
ld_i_url  TYPE STRING ,
ld_e_end_date  TYPE SY-DATUM ,
ld_i_atra_object_name  TYPE CHAR40 ,
ld_e_end_time  TYPE SY-UZEIT ,
ld_i_uname  TYPE SYUNAME ,
ld_e_trace_user  TYPE SYUNAME ,
ld_i_with_table_trace  TYPE FLAG .

ld_i_url_type = 'some text here'.
ld_i_url = 'some text here'.
ld_i_atra_object_name = 'some text here'.
ld_i_uname = 'some text here'.
ld_i_with_table_trace = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ANST_TESTING_AGEN_TRACE_DIALOG or its description.