ANST_SEARCH_TRACES 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_SEARCH_TRACES 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
CALL FUNCTION 'ANST_SEARCH_TRACES' "Search Traces
TABLES
t_anst_note_sea = " anst_select_traces Select traces
lt_trace_p = " anst_traces_traces Tbom for selected traces
* CHANGING
* sw_execution = " flag General Flag
* uname = " anst_note_sea-uname User Name
* description = " anst_note_sea-description Trace Description
* unit = " anst_note_sea-unit 128 character
* dtrace_low = " anst_note_sea-datum Date
* dtrace_high = " anst_note_sea-datum Date
* sw_save_trace = " flag General Flag
EXCEPTIONS
NO_TRACE = 1 " No trace found
. " ANST_SEARCH_TRACES
The ABAP code below is a full code listing to execute function module ANST_SEARCH_TRACES 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).
| it_t_anst_note_sea | TYPE STANDARD TABLE OF ANST_SELECT_TRACES,"TABLES PARAM |
| wa_t_anst_note_sea | LIKE LINE OF it_t_anst_note_sea , |
| it_lt_trace_p | TYPE STANDARD TABLE OF ANST_TRACES_TRACES,"TABLES PARAM |
| wa_lt_trace_p | LIKE LINE OF it_lt_trace_p . |
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_sw_execution | TYPE FLAG , |
| it_t_anst_note_sea | TYPE STANDARD TABLE OF ANST_SELECT_TRACES , |
| wa_t_anst_note_sea | LIKE LINE OF it_t_anst_note_sea, |
| ld_uname | TYPE ANST_NOTE_SEA-UNAME , |
| it_lt_trace_p | TYPE STANDARD TABLE OF ANST_TRACES_TRACES , |
| wa_lt_trace_p | LIKE LINE OF it_lt_trace_p, |
| ld_description | TYPE ANST_NOTE_SEA-DESCRIPTION , |
| ld_unit | TYPE ANST_NOTE_SEA-UNIT , |
| ld_dtrace_low | TYPE ANST_NOTE_SEA-DATUM , |
| ld_dtrace_high | TYPE ANST_NOTE_SEA-DATUM , |
| ld_sw_save_trace | TYPE FLAG . |
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_SEARCH_TRACES or its description.