SAP SCSMBK_CLASSDEF_REGISTER Function Module for









SCSMBK_CLASSDEF_REGISTER is a standard scsmbk classdef register 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 scsmbk classdef register FM, simply by entering the name SCSMBK_CLASSDEF_REGISTER into the relevant SAP transaction such as SE37 or SE38.

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



Function SCSMBK_CLASSDEF_REGISTER 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 'SCSMBK_CLASSDEF_REGISTER'"
EXPORTING
* AREA = 'BC' "Version Number Component
* DOMVERSION = "Dominant or subsidiary version number of a CCMS class
* SUBVERSION = "Dominant or subsidiary version number of a CCMS class
* SEMANTIC = SEM_BC "Name of semantic for representing system relationships
PROVIDER = "Data supplier that creates a class token tuple
* MTECLASS = "CCMS Monitoring Architecture: Name of MTE class
REPORTER = "System GUID for R/3 or other system
TIMESTAMP = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
* RESET = CSM_NO "
* REPLICATE = CSM_NO "Single-Character Flag
* LANGUAGE = "
SCHEME = "Name of semantic for representing system relationships
* CLASS_DISPLAY_TEXT = "
* LOCK = ' ' "Single-Character Flag
CLASS = "CCMS Class Names
SUPER_SCHEME = "Name of Schema or Semantic in System Repository
SUPER_CLASS = "CCMS Class Names
* ASSOCIATION = CSM_NO "Indicates whether a CCMS class is an association
ASSOCTYP = "Association types
* INDICATION = CSM_NO "Indicates whether a CCMS class is an indication
* ACTIVE = CSM_YES "Indicates whether a CCMS class is the active version

TABLES
QUALIFIERS = "CSM_BK: Semantic and Token Definitions

EXCEPTIONS
DATABASE_ERROR = 1 VER_NUM_REQUIRED_FOR_REPLICATE = 10 BREAK_IN_REPLIC_VERSION_NUM = 11 INCORRECT_SEMANTIC_IN_REPLIC = 12 NOT_AUTHORIZED = 13 INCORRECT_PROVIDER_IN_REPLIC = 14 CLASSDEF_HAS_WRONG_PROVIDER = 2 REPLICATE_AND_RESET_BOTH_SET = 3 REPLICATED_VERSIONS_MISMATCH = 4 INDIC_ASSOC_BOTH_MARKED = 5 ERR_ADDING_NEW_CLASS_TO_CLUSTR = 6 INTERNAL_ERROR = 7 ERR_DELETING_OLD_CLASSDEF = 8 ONLY_ONE_VERSION_NUM_GIVEN = 9
.



IMPORTING Parameters details for SCSMBK_CLASSDEF_REGISTER

AREA - Version Number Component

Data type: CHAR2
Default: 'BC'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOMVERSION - Dominant or subsidiary version number of a CCMS class

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

SUBVERSION - Dominant or subsidiary version number of a CCMS class

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

SEMANTIC - Name of semantic for representing system relationships

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

PROVIDER - Data supplier that creates a class token tuple

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

MTECLASS - CCMS Monitoring Architecture: Name of MTE class

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

REPORTER - System GUID for R/3 or other system

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

TIMESTAMP - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)

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

RESET -

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

REPLICATE - Single-Character Flag

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

LANGUAGE -

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

SCHEME - Name of semantic for representing system relationships

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

CLASS_DISPLAY_TEXT -

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

LOCK - Single-Character Flag

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

CLASS - CCMS Class Names

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

SUPER_SCHEME - Name of Schema or Semantic in System Repository

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

SUPER_CLASS - CCMS Class Names

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

ASSOCIATION - Indicates whether a CCMS class is an association

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

ASSOCTYP - Association types

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

INDICATION - Indicates whether a CCMS class is an indication

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

ACTIVE - Indicates whether a CCMS class is the active version

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

TABLES Parameters details for SCSMBK_CLASSDEF_REGISTER

QUALIFIERS - CSM_BK: Semantic and Token Definitions

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

EXCEPTIONS details

DATABASE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

VER_NUM_REQUIRED_FOR_REPLICATE -

Data type:
Optional: No
Call by Reference: Yes

BREAK_IN_REPLIC_VERSION_NUM -

Data type:
Optional: No
Call by Reference: Yes

INCORRECT_SEMANTIC_IN_REPLIC -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

INCORRECT_PROVIDER_IN_REPLIC -

Data type:
Optional: No
Call by Reference: Yes

CLASSDEF_HAS_WRONG_PROVIDER -

Data type:
Optional: No
Call by Reference: Yes

REPLICATE_AND_RESET_BOTH_SET -

Data type:
Optional: No
Call by Reference: Yes

REPLICATED_VERSIONS_MISMATCH -

Data type:
Optional: No
Call by Reference: Yes

INDIC_ASSOC_BOTH_MARKED -

Data type:
Optional: No
Call by Reference: Yes

ERR_ADDING_NEW_CLASS_TO_CLUSTR -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ERR_DELETING_OLD_CLASSDEF -

Data type:
Optional: No
Call by Reference: Yes

ONLY_ONE_VERSION_NUM_GIVEN -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCSMBK_CLASSDEF_REGISTER 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_area  TYPE CHAR2, "   'BC'
lt_qualifiers  TYPE STANDARD TABLE OF CSM_QUALIF, "   
lv_database_error  TYPE CSM_QUALIF, "   
lv_domversion  TYPE CSMVERSN, "   
lv_ver_num_required_for_replicate  TYPE CSMVERSN, "   
lv_subversion  TYPE CSMVERSN, "   
lv_break_in_replic_version_num  TYPE CSMVERSN, "   
lv_semantic  TYPE CSMSMNTC, "   SEM_BC
lv_incorrect_semantic_in_replic  TYPE CSMSMNTC, "   
lv_provider  TYPE CSMPROVDR, "   
lv_not_authorized  TYPE CSMPROVDR, "   
lv_mteclass  TYPE ALMTECLASS, "   
lv_incorrect_provider_in_replic  TYPE ALMTECLASS, "   
lv_reporter  TYPE CSMSYSGUID, "   
lv_timestamp  TYPE TIMESTAMP, "   
lv_reset  TYPE CHAR1, "   CSM_NO
lv_replicate  TYPE CHAR1, "   CSM_NO
lv_language  TYPE SPRAS, "   
lv_scheme  TYPE CSMSMNTC, "   
lv_classdef_has_wrong_provider  TYPE CSMSMNTC, "   
lv_class_display_text  TYPE ALMTECLASS, "   
lv_lock  TYPE CHAR1, "   SPACE
lv_class  TYPE CSMCLASS, "   
lv_replicate_and_reset_both_set  TYPE CSMCLASS, "   
lv_super_scheme  TYPE CSMSMNTC, "   
lv_replicated_versions_mismatch  TYPE CSMSMNTC, "   
lv_super_class  TYPE CSMCLASS, "   
lv_indic_assoc_both_marked  TYPE CSMCLASS, "   
lv_association  TYPE CSMISASSC, "   CSM_NO
lv_err_adding_new_class_to_clustr  TYPE CSMISASSC, "   
lv_assoctyp  TYPE CSMASSOC, "   
lv_internal_error  TYPE CSMASSOC, "   
lv_indication  TYPE CSMISINDC, "   CSM_NO
lv_err_deleting_old_classdef  TYPE CSMISINDC, "   
lv_active  TYPE CSMACTIVE, "   CSM_YES
lv_only_one_version_num_given  TYPE CSMACTIVE. "   

  CALL FUNCTION 'SCSMBK_CLASSDEF_REGISTER'  "
    EXPORTING
         AREA = lv_area
         DOMVERSION = lv_domversion
         SUBVERSION = lv_subversion
         SEMANTIC = lv_semantic
         PROVIDER = lv_provider
         MTECLASS = lv_mteclass
         REPORTER = lv_reporter
         TIMESTAMP = lv_timestamp
         RESET = lv_reset
         REPLICATE = lv_replicate
         LANGUAGE = lv_language
         SCHEME = lv_scheme
         CLASS_DISPLAY_TEXT = lv_class_display_text
         LOCK = lv_lock
         CLASS = lv_class
         SUPER_SCHEME = lv_super_scheme
         SUPER_CLASS = lv_super_class
         ASSOCIATION = lv_association
         ASSOCTYP = lv_assoctyp
         INDICATION = lv_indication
         ACTIVE = lv_active
    TABLES
         QUALIFIERS = lt_qualifiers
    EXCEPTIONS
        DATABASE_ERROR = 1
        VER_NUM_REQUIRED_FOR_REPLICATE = 10
        BREAK_IN_REPLIC_VERSION_NUM = 11
        INCORRECT_SEMANTIC_IN_REPLIC = 12
        NOT_AUTHORIZED = 13
        INCORRECT_PROVIDER_IN_REPLIC = 14
        CLASSDEF_HAS_WRONG_PROVIDER = 2
        REPLICATE_AND_RESET_BOTH_SET = 3
        REPLICATED_VERSIONS_MISMATCH = 4
        INDIC_ASSOC_BOTH_MARKED = 5
        ERR_ADDING_NEW_CLASS_TO_CLUSTR = 6
        INTERNAL_ERROR = 7
        ERR_DELETING_OLD_CLASSDEF = 8
        ONLY_ONE_VERSION_NUM_GIVEN = 9
. " SCSMBK_CLASSDEF_REGISTER




ABAP code using 7.40 inline data declarations to call FM SCSMBK_CLASSDEF_REGISTER

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_area) = 'BC'.
 
 
 
 
 
 
 
DATA(ld_semantic) = SEM_BC.
 
 
 
 
 
 
 
 
DATA(ld_reset) = CSM_NO.
 
DATA(ld_replicate) = CSM_NO.
 
 
 
 
 
DATA(ld_lock) = ' '.
 
 
 
 
 
 
 
DATA(ld_association) = CSM_NO.
 
 
 
 
DATA(ld_indication) = CSM_NO.
 
 
DATA(ld_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!