SAP SCSM_RG_OBJ_GET_BY_CLASS Function Module for









SCSM_RG_OBJ_GET_BY_CLASS is a standard scsm rg obj get by class 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 rg obj get by class FM, simply by entering the name SCSM_RG_OBJ_GET_BY_CLASS into the relevant SAP transaction such as SE37 or SE38.

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



Function SCSM_RG_OBJ_GET_BY_CLASS 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_RG_OBJ_GET_BY_CLASS'"
EXPORTING
* NAME' ' = "Object name in CCMS Repository
* SCHEME = SCHEME_BC "
CLASS = "Target Class
* GUID_OF_PARENT = "
* TEST_PROPERTY = "
* TEST_VALUE = "
* RETURN_SUBCLASS_INSTANCES = CSM_YES "Indicator for Meta Data in System Component Repository

TABLES
OBJECT_ENTRIES = "

EXCEPTIONS
NO_CLASS_MEMBERS_FOUND = 1 NOT_AUTHORIZED = 2 BOTH_PROPRTY_AND_VALU_REQUIRED = 3 PARENT_OBJ_NOT_FOUND = 4
.



IMPORTING Parameters details for SCSM_RG_OBJ_GET_BY_CLASS

NAMESPACE - Object name in CCMS Repository

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

SCHEME -

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

CLASS - Target Class

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

GUID_OF_PARENT -

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

TEST_PROPERTY -

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

TEST_VALUE -

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

RETURN_SUBCLASS_INSTANCES - 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)

TABLES Parameters details for SCSM_RG_OBJ_GET_BY_CLASS

OBJECT_ENTRIES -

Data type: CSMBK_OB2
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_CLASS_MEMBERS_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

BOTH_PROPRTY_AND_VALU_REQUIRED -

Data type:
Optional: No
Call by Reference: Yes

PARENT_OBJ_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCSM_RG_OBJ_GET_BY_CLASS 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_namespace  TYPE CSMOBJNM, "   
lt_object_entries  TYPE STANDARD TABLE OF CSMBK_OB2, "   
lv_no_class_members_found  TYPE CSMBK_OB2, "   
lv_scheme  TYPE CSMSMNTC, "   SCHEME_BC
lv_not_authorized  TYPE CSMSMNTC, "   
lv_class  TYPE CSMCLASS, "   
lv_both_proprty_and_valu_required  TYPE CSMCLASS, "   
lv_guid_of_parent  TYPE CSMSYSGUID, "   
lv_parent_obj_not_found  TYPE CSMSYSGUID, "   
lv_test_property  TYPE CSMTOKEN, "   
lv_test_value  TYPE CSMOBJNM, "   
lv_return_subclass_instances  TYPE CSMACTIVE. "   CSM_YES

  CALL FUNCTION 'SCSM_RG_OBJ_GET_BY_CLASS'  "
    EXPORTING
         NAMESPACE = lv_namespace
         SCHEME = lv_scheme
         CLASS = lv_class
         GUID_OF_PARENT = lv_guid_of_parent
         TEST_PROPERTY = lv_test_property
         TEST_VALUE = lv_test_value
         RETURN_SUBCLASS_INSTANCES = lv_return_subclass_instances
    TABLES
         OBJECT_ENTRIES = lt_object_entries
    EXCEPTIONS
        NO_CLASS_MEMBERS_FOUND = 1
        NOT_AUTHORIZED = 2
        BOTH_PROPRTY_AND_VALU_REQUIRED = 3
        PARENT_OBJ_NOT_FOUND = 4
. " SCSM_RG_OBJ_GET_BY_CLASS




ABAP code using 7.40 inline data declarations to call FM SCSM_RG_OBJ_GET_BY_CLASS

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_scheme) = SCHEME_BC.
 
 
 
 
 
 
 
 
DATA(ld_return_subclass_instances) = 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!