SAP SAPWLN3_TRACEREC_DIRECT_READ Function Module for









SAPWLN3_TRACEREC_DIRECT_READ is a standard sapwln3 tracerec direct read 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 sapwln3 tracerec direct read FM, simply by entering the name SAPWLN3_TRACEREC_DIRECT_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function SAPWLN3_TRACEREC_DIRECT_READ 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 'SAPWLN3_TRACEREC_DIRECT_READ'"
EXPORTING
COMPONENT = "
* READ_TRACE_LEVEL = "Natural Number
* READ_TRACE_TYPE = "Natural Number
* READ_PID = "Natural Number
* READ_TID = "Natural Number
* READ_MODULE_NAME = "
* READ_MODULE_TYPE = "
* READ_EXTACCESS = "
* READ_JAVATID = "
COMPONENT_TYPE = "
* MONITORING_SYSTEM = "Logical Destination (Specified in Function Call)
* READ_START_DATE = "SAP Workload: Workload: Date
* READ_START_TIME = "SAP Workload: Workload: time of day
* READ_END_DATE = "SAP Workload: Workload: Date
* READ_END_TIME = "SAP Workload: Workload: time of day
* TIMEZONE = "Time Zone
* READ_TRANSID = "SAP Workload: Workload: Transaction ID

IMPORTING
RECCOUNT = "

TABLES
* TRACE_RECORDS = "

EXCEPTIONS
INVALID_TIME_RANGE = 1 NO_RECORDS_FOUND = 2 INTERNAL_ERROR = 3 COMPONENT_UNKNOWN = 4 RFC_PROBLEMS_DETECTED = 5 FUNCMODULE_NOT_FOUND_IN_MONSYS = 6 FILTER_SYNTAX_ERROR = 7
.



IMPORTING Parameters details for SAPWLN3_TRACEREC_DIRECT_READ

COMPONENT -

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

READ_TRACE_LEVEL - Natural Number

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

READ_TRACE_TYPE - Natural Number

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

READ_PID - Natural Number

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

READ_TID - Natural Number

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

READ_MODULE_NAME -

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

READ_MODULE_TYPE -

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

READ_EXTACCESS -

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

READ_JAVATID -

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

COMPONENT_TYPE -

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

MONITORING_SYSTEM - Logical Destination (Specified in Function Call)

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

READ_START_DATE - SAP Workload: Workload: Date

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

READ_START_TIME - SAP Workload: Workload: time of day

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

READ_END_DATE - SAP Workload: Workload: Date

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

READ_END_TIME - SAP Workload: Workload: time of day

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

TIMEZONE - Time Zone

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

READ_TRANSID - SAP Workload: Workload: Transaction ID

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

EXPORTING Parameters details for SAPWLN3_TRACEREC_DIRECT_READ

RECCOUNT -

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

TABLES Parameters details for SAPWLN3_TRACEREC_DIRECT_READ

TRACE_RECORDS -

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

EXCEPTIONS details

INVALID_TIME_RANGE -

Data type:
Optional: No
Call by Reference: Yes

NO_RECORDS_FOUND -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: Yes

COMPONENT_UNKNOWN -

Data type:
Optional: No
Call by Reference: Yes

RFC_PROBLEMS_DETECTED -

Data type:
Optional: No
Call by Reference: Yes

FUNCMODULE_NOT_FOUND_IN_MONSYS -

Data type:
Optional: No
Call by Reference: Yes

FILTER_SYNTAX_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SAPWLN3_TRACEREC_DIRECT_READ 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_reccount  TYPE SWLN3TRCNREC, "   
lv_component  TYPE SWLN3CMPNM, "   
lt_trace_records  TYPE STANDARD TABLE OF SWLN3_TRC_REC_FROM_AGENT, "   
lv_invalid_time_range  TYPE SWLN3_TRC_REC_FROM_AGENT, "   
lv_read_trace_level  TYPE INT4, "   
lv_read_trace_type  TYPE INT4, "   
lv_read_pid  TYPE INT4, "   
lv_read_tid  TYPE INT4, "   
lv_read_module_name  TYPE SWLN3TMNAM, "   
lv_read_module_type  TYPE SWLN3TMTYP, "   
lv_read_extaccess  TYPE SWLN3TEXAC, "   
lv_read_javatid  TYPE SWLN3JVTID, "   
lv_component_type  TYPE SWLN3CPTYP, "   
lv_no_records_found  TYPE SWLN3CPTYP, "   
lv_internal_error  TYPE SWLN3CPTYP, "   
lv_monitoring_system  TYPE RFCDEST, "   
lv_read_start_date  TYPE SAPWLDATE, "   
lv_component_unknown  TYPE SAPWLDATE, "   
lv_read_start_time  TYPE SAPWLTIME, "   
lv_rfc_problems_detected  TYPE SAPWLTIME, "   
lv_read_end_date  TYPE SAPWLDATE, "   
lv_funcmodule_not_found_in_monsys  TYPE SAPWLDATE, "   
lv_read_end_time  TYPE SAPWLTIME, "   
lv_filter_syntax_error  TYPE SAPWLTIME, "   
lv_timezone  TYPE TIMEZONE, "   
lv_read_transid  TYPE SWLNTRID. "   

  CALL FUNCTION 'SAPWLN3_TRACEREC_DIRECT_READ'  "
    EXPORTING
         COMPONENT = lv_component
         READ_TRACE_LEVEL = lv_read_trace_level
         READ_TRACE_TYPE = lv_read_trace_type
         READ_PID = lv_read_pid
         READ_TID = lv_read_tid
         READ_MODULE_NAME = lv_read_module_name
         READ_MODULE_TYPE = lv_read_module_type
         READ_EXTACCESS = lv_read_extaccess
         READ_JAVATID = lv_read_javatid
         COMPONENT_TYPE = lv_component_type
         MONITORING_SYSTEM = lv_monitoring_system
         READ_START_DATE = lv_read_start_date
         READ_START_TIME = lv_read_start_time
         READ_END_DATE = lv_read_end_date
         READ_END_TIME = lv_read_end_time
         TIMEZONE = lv_timezone
         READ_TRANSID = lv_read_transid
    IMPORTING
         RECCOUNT = lv_reccount
    TABLES
         TRACE_RECORDS = lt_trace_records
    EXCEPTIONS
        INVALID_TIME_RANGE = 1
        NO_RECORDS_FOUND = 2
        INTERNAL_ERROR = 3
        COMPONENT_UNKNOWN = 4
        RFC_PROBLEMS_DETECTED = 5
        FUNCMODULE_NOT_FOUND_IN_MONSYS = 6
        FILTER_SYNTAX_ERROR = 7
. " SAPWLN3_TRACEREC_DIRECT_READ




ABAP code using 7.40 inline data declarations to call FM SAPWLN3_TRACEREC_DIRECT_READ

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!