SAP SCSM_MD_CLASS_GET_DEFINITION Function Module for
SCSM_MD_CLASS_GET_DEFINITION is a standard scsm md class get definition 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 md class get definition FM, simply by entering the name SCSM_MD_CLASS_GET_DEFINITION into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCSMBK_MDATA_OUT
Program Name: SAPLSCSMBK_MDATA_OUT
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCSM_MD_CLASS_GET_DEFINITION 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_MD_CLASS_GET_DEFINITION'".
EXPORTING
* NAME' ' = "Object name in CCMS Repository
* SCHEME = SCHEME_BC "
CLASS = "
IMPORTING
CLASS_DEFINITION = "Class Definition for CSMBK_MDATA_IN (CCMS SCR)
TABLES
* CLASS_PROPERTIES = "Property Table for Function Group SCSMBK_MDATA_IN (CCMS SCR)
* CLASS_QUALIFIERS = "
* PROPERTY_QUALIFIERS = "
EXCEPTIONS
CLASS_NOT_DEFINED = 1 CLASS_DEFINITION_INVALID = 2 CLASS_DEFINITION_OBSOLETE = 3 NOT_AUTHORIZED = 4 INTERNAL_ERROR = 5
IMPORTING Parameters details for SCSM_MD_CLASS_GET_DEFINITION
NAMESPACE - Object name in CCMS Repository
Data type: CSMOBJNMOptional: Yes
Call by Reference: Yes
SCHEME -
Data type: CSMSMNTCDefault: SCHEME_BC
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASS -
Data type: CSMCLASSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCSM_MD_CLASS_GET_DEFINITION
CLASS_DEFINITION - Class Definition for CSMBK_MDATA_IN (CCMS SCR)
Data type: CSM_CLASSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SCSM_MD_CLASS_GET_DEFINITION
CLASS_PROPERTIES - Property Table for Function Group SCSMBK_MDATA_IN (CCMS SCR)
Data type: CSM_TOKENTOptional: Yes
Call by Reference: Yes
CLASS_QUALIFIERS -
Data type: CSM_Q_INPTOptional: Yes
Call by Reference: Yes
PROPERTY_QUALIFIERS -
Data type: CSM_Q_INPTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CLASS_NOT_DEFINED -
Data type:Optional: No
Call by Reference: Yes
CLASS_DEFINITION_INVALID -
Data type:Optional: No
Call by Reference: Yes
CLASS_DEFINITION_OBSOLETE -
Data type:Optional: No
Call by Reference: Yes
NOT_AUTHORIZED -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCSM_MD_CLASS_GET_DEFINITION 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, " | |||
| lv_class_definition | TYPE CSM_CLASS, " | |||
| lt_class_properties | TYPE STANDARD TABLE OF CSM_TOKENT, " | |||
| lv_class_not_defined | TYPE CSM_TOKENT, " | |||
| lv_scheme | TYPE CSMSMNTC, " SCHEME_BC | |||
| lt_class_qualifiers | TYPE STANDARD TABLE OF CSM_Q_INPT, " | |||
| lv_class_definition_invalid | TYPE CSM_Q_INPT, " | |||
| lv_class | TYPE CSMCLASS, " | |||
| lt_property_qualifiers | TYPE STANDARD TABLE OF CSM_Q_INPT, " | |||
| lv_class_definition_obsolete | TYPE CSM_Q_INPT, " | |||
| lv_not_authorized | TYPE CSM_Q_INPT, " | |||
| lv_internal_error | TYPE CSM_Q_INPT. " |
|   CALL FUNCTION 'SCSM_MD_CLASS_GET_DEFINITION' " |
| EXPORTING | ||
| NAMESPACE | = lv_namespace | |
| SCHEME | = lv_scheme | |
| CLASS | = lv_class | |
| IMPORTING | ||
| CLASS_DEFINITION | = lv_class_definition | |
| TABLES | ||
| CLASS_PROPERTIES | = lt_class_properties | |
| CLASS_QUALIFIERS | = lt_class_qualifiers | |
| PROPERTY_QUALIFIERS | = lt_property_qualifiers | |
| EXCEPTIONS | ||
| CLASS_NOT_DEFINED = 1 | ||
| CLASS_DEFINITION_INVALID = 2 | ||
| CLASS_DEFINITION_OBSOLETE = 3 | ||
| NOT_AUTHORIZED = 4 | ||
| INTERNAL_ERROR = 5 | ||
| . " SCSM_MD_CLASS_GET_DEFINITION | ||
ABAP code using 7.40 inline data declarations to call FM SCSM_MD_CLASS_GET_DEFINITION
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. | |||
Search for further information about these or an SAP related objects