SAP SCSM_DSR_COMP_AGENT_INTERFACE Function Module for









SCSM_DSR_COMP_AGENT_INTERFACE is a standard scsm dsr comp agent interface 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 scsm dsr comp agent interface FM, simply by entering the name SCSM_DSR_COMP_AGENT_INTERFACE into the relevant SAP transaction such as SE37 or SE38.

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



Function SCSM_DSR_COMP_AGENT_INTERFACE 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 'SCSM_DSR_COMP_AGENT_INTERFACE'"
EXPORTING
DSR_NAME = "System Component Repository Properties and Values
DSR_COMPONENT_TYPE = "CCMS Class Names
* DSR_COMPONENT_VERSION = "Object name in CCMS Repository
* DSR_ACTIVE = CSM_YES "Indicator for Meta Data in System Component Repository
* DSR_VERSION = "Object name in CCMS Repository
* DSR_AGENT_NAME = "Object name in CCMS Repository
* AGENT_DSR_VERSION = "Object name in CCMS Repository

IMPORTING
DSR_OBJECT = "New Object Table for SCR from SAP Web AS 6.10
SERVED_SYSTEM_OBJECTS = "New Object Table for SCR from SAP Web AS 6.10
SERVED_SYSTEM_ASSOCIATIONS = "Table of System Component Repository Associations
AGENT_OBJECT = "New Object Table for SCR from SAP Web AS 6.10
AGENT_ASSOCIATION = "Table of System Component Repository Associations

TABLES
* SYSTEMS_SERVED_BY_DSR = "
* TRACE_FILE_PATHS = "
* TRACE_FILE_NAMES = "
* TRACE_FILE_NAME_PATTERNS = "

EXCEPTIONS
NOT_AUTHORIZED = 1 INTERNAL_ERROR = 2 COMPONENT_NAME_NOT_UNIQUE = 3 NO_SERVED_SYSTEMS_SPECIFIED = 4
.



IMPORTING Parameters details for SCSM_DSR_COMP_AGENT_INTERFACE

DSR_NAME - System Component Repository Properties and Values

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

DSR_COMPONENT_TYPE - CCMS Class Names

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

DSR_COMPONENT_VERSION - Object name in CCMS Repository

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

DSR_ACTIVE - Indicator for Meta Data in System Component Repository

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

DSR_VERSION - Object name in CCMS Repository

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

DSR_AGENT_NAME - Object name in CCMS Repository

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

AGENT_DSR_VERSION - Object name in CCMS Repository

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

EXPORTING Parameters details for SCSM_DSR_COMP_AGENT_INTERFACE

DSR_OBJECT - New Object Table for SCR from SAP Web AS 6.10

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

SERVED_SYSTEM_OBJECTS - New Object Table for SCR from SAP Web AS 6.10

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

SERVED_SYSTEM_ASSOCIATIONS - Table of System Component Repository Associations

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

AGENT_OBJECT - New Object Table for SCR from SAP Web AS 6.10

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

AGENT_ASSOCIATION - Table of System Component Repository Associations

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

TABLES Parameters details for SCSM_DSR_COMP_AGENT_INTERFACE

SYSTEMS_SERVED_BY_DSR -

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

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

NOT_AUTHORIZED -

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)

COMPONENT_NAME_NOT_UNIQUE -

Data type:
Optional: No
Call by Reference: Yes

NO_SERVED_SYSTEMS_SPECIFIED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCSM_DSR_COMP_AGENT_INTERFACE 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 TEXT132, "   
lv_dsr_object  TYPE CSMBK_OB2, "   
lv_not_authorized  TYPE CSMBK_OB2, "   
lt_systems_served_by_dsr  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_internal_error  TYPE CSM_INVALS, "   
lt_trace_file_paths  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_dsr_component_type  TYPE TEXT30, "   
lv_served_system_objects  TYPE CSMBK_OB2T, "   
lt_trace_file_names  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_dsr_component_version  TYPE CSMOBJNM, "   
lv_component_name_not_unique  TYPE CSMOBJNM, "   
lv_served_system_associations  TYPE CSMBK_ASCT, "   
lv_dsr_active  TYPE CSMACTIVE, "   CSM_YES
lv_agent_object  TYPE CSMBK_OB2, "   
lt_trace_file_name_patterns  TYPE STANDARD TABLE OF CSM_INVALS, "   
lv_no_served_systems_specified  TYPE CSM_INVALS, "   
lv_dsr_version  TYPE CSMOBJNM, "   
lv_agent_association  TYPE CSMBK_ASC, "   
lv_dsr_agent_name  TYPE CSMOBJNM, "   
lv_agent_dsr_version  TYPE CSMOBJNM. "   

  CALL FUNCTION 'SCSM_DSR_COMP_AGENT_INTERFACE'  "
    EXPORTING
         DSR_NAME = lv_dsr_name
         DSR_COMPONENT_TYPE = lv_dsr_component_type
         DSR_COMPONENT_VERSION = lv_dsr_component_version
         DSR_ACTIVE = lv_dsr_active
         DSR_VERSION = lv_dsr_version
         DSR_AGENT_NAME = lv_dsr_agent_name
         AGENT_DSR_VERSION = lv_agent_dsr_version
    IMPORTING
         DSR_OBJECT = lv_dsr_object
         SERVED_SYSTEM_OBJECTS = lv_served_system_objects
         SERVED_SYSTEM_ASSOCIATIONS = lv_served_system_associations
         AGENT_OBJECT = lv_agent_object
         AGENT_ASSOCIATION = lv_agent_association
    TABLES
         SYSTEMS_SERVED_BY_DSR = lt_systems_served_by_dsr
         TRACE_FILE_PATHS = lt_trace_file_paths
         TRACE_FILE_NAMES = lt_trace_file_names
         TRACE_FILE_NAME_PATTERNS = lt_trace_file_name_patterns
    EXCEPTIONS
        NOT_AUTHORIZED = 1
        INTERNAL_ERROR = 2
        COMPONENT_NAME_NOT_UNIQUE = 3
        NO_SERVED_SYSTEMS_SPECIFIED = 4
. " SCSM_DSR_COMP_AGENT_INTERFACE




ABAP code using 7.40 inline data declarations to call FM SCSM_DSR_COMP_AGENT_INTERFACE

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_dsr_active) = CSM_YES.
 
 
 
 
 
 
 
 


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!