SAP READ_DSR_DATA Function Module for









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

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



Function READ_DSR_DATA 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 'READ_DSR_DATA'"
EXPORTING
* DSR_NAME = "
* DSR_CLASS = "
* DSR_OBJECT_GUID = "

IMPORTING
DSR_OBJECT_ENTRY = "
DSR_OBJECT_VERSION = "
DSR_OBJECT_DSR_VERSION = "
DSR_OBJECT_DSR_ACTIVE = "
AGENT_OBJECT_ENTRY = "
AGENT_DSR_VERSION = "
MONITORING_SYSTEM = "

TABLES
* LINKED_SYSTEMS = "
* TRACE_FILE_PATHS = "
* TRACE_FILE_NAMES = "
* TRACE_FILE_NAME_PATTERNS = "

EXCEPTIONS
NO_DATA_FOUND = 1 NOT_AUTHORIZED = 2 NO_DSR_COMPONENT_SPECIFIED = 3 MULTIPLE_DSR_INSTANCES_FOUND = 4 INTERNAL_ERROR = 5 UNKNOWN_ERROR = 6
.



IMPORTING Parameters details for READ_DSR_DATA

DSR_NAME -

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

DSR_CLASS -

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

DSR_OBJECT_GUID -

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

EXPORTING Parameters details for READ_DSR_DATA

DSR_OBJECT_ENTRY -

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

DSR_OBJECT_VERSION -

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

DSR_OBJECT_DSR_VERSION -

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

DSR_OBJECT_DSR_ACTIVE -

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

AGENT_OBJECT_ENTRY -

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

AGENT_DSR_VERSION -

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

MONITORING_SYSTEM -

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

TABLES Parameters details for READ_DSR_DATA

LINKED_SYSTEMS -

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

TRACE_FILE_PATHS -

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

TRACE_FILE_NAMES -

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

TRACE_FILE_NAME_PATTERNS -

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

EXCEPTIONS details

NO_DATA_FOUND -

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

NOT_AUTHORIZED -

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

NO_DSR_COMPONENT_SPECIFIED -

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

MULTIPLE_DSR_INSTANCES_FOUND -

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

INTERNAL_ERROR -

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

UNKNOWN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for READ_DSR_DATA 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_dsr_name  TYPE CSMOBJNM, "   
lv_no_data_found  TYPE CSMOBJNM, "   
lt_linked_systems  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_dsr_object_entry  TYPE CSMBK_OB2, "   
lv_dsr_class  TYPE CSMCLASS, "   
lv_not_authorized  TYPE CSMCLASS, "   
lt_trace_file_paths  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_dsr_object_version  TYPE CSMOBJNM, "   
lv_dsr_object_guid  TYPE CSMSYSGUID, "   
lt_trace_file_names  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_dsr_object_dsr_version  TYPE CSMOBJNM, "   
lv_no_dsr_component_specified  TYPE CSMOBJNM, "   
lv_dsr_object_dsr_active  TYPE CSMACTIVE, "   
lt_trace_file_name_patterns  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_multiple_dsr_instances_found  TYPE CSM_INVALS, "   
lv_internal_error  TYPE CSM_INVALS, "   
lv_agent_object_entry  TYPE CSMBK_OB2, "   
lv_unknown_error  TYPE CSMBK_OB2, "   
lv_agent_dsr_version  TYPE CSMOBJNM, "   
lv_monitoring_system  TYPE CSMOBJNM. "   

  CALL FUNCTION 'READ_DSR_DATA'  "
    EXPORTING
         DSR_NAME = lv_dsr_name
         DSR_CLASS = lv_dsr_class
         DSR_OBJECT_GUID = lv_dsr_object_guid
    IMPORTING
         DSR_OBJECT_ENTRY = lv_dsr_object_entry
         DSR_OBJECT_VERSION = lv_dsr_object_version
         DSR_OBJECT_DSR_VERSION = lv_dsr_object_dsr_version
         DSR_OBJECT_DSR_ACTIVE = lv_dsr_object_dsr_active
         AGENT_OBJECT_ENTRY = lv_agent_object_entry
         AGENT_DSR_VERSION = lv_agent_dsr_version
         MONITORING_SYSTEM = lv_monitoring_system
    TABLES
         LINKED_SYSTEMS = lt_linked_systems
         TRACE_FILE_PATHS = lt_trace_file_paths
         TRACE_FILE_NAMES = lt_trace_file_names
         TRACE_FILE_NAME_PATTERNS = lt_trace_file_name_patterns
    EXCEPTIONS
        NO_DATA_FOUND = 1
        NOT_AUTHORIZED = 2
        NO_DSR_COMPONENT_SPECIFIED = 3
        MULTIPLE_DSR_INSTANCES_FOUND = 4
        INTERNAL_ERROR = 5
        UNKNOWN_ERROR = 6
. " READ_DSR_DATA




ABAP code using 7.40 inline data declarations to call FM READ_DSR_DATA

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!