SAP SCSMBK_TOKENDEF_REGISTER Function Module for









SCSMBK_TOKENDEF_REGISTER is a standard scsmbk tokendef 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 tokendef register FM, simply by entering the name SCSMBK_TOKENDEF_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_TOKENDEF_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_TOKENDEF_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
* DATATYPE = "Natural Number
* DEFAULTVAL = "CCMS Monitoring Architecture: Name of MTE 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 "
SCHEME = "Name of semantic for representing system relationships
* REPLICATE = CSM_NO "Single-Character Flag
* LANGUAGE = "
* TOKEN_DISPLAY_TEXT = "
* LOCK = ' ' "Single-Character Flag
CLASS = "CCMS Class Names
TOKEN = "Property of CCMS Repository class
* KEYTOKEN = CSM_NO "Indicates whether a property is a key for a CCMS class
* ISREFERENCE = CSM_NO "Indicates that a CCMS property is a CIM reference
* STRONGWEAK = "Association types
* OVERRIDE = CSM_OVERRIDE_ALLOWED "Overwrite property of CCMS class property
* 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 INCORRECT_PROVIDER_IN_REPLIC = 13 NOT_AUTHORIZED = 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_TOKENDEF_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)

DATATYPE - Natural Number

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

DEFAULTVAL - CCMS Monitoring Architecture: Name of MTE class

Data type: TEXT40
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)

SCHEME - Name of semantic for representing system relationships

Data type: CSMSMNTC
Optional: No
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)

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

TOKEN - Property of CCMS Repository class

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

KEYTOKEN - Indicates whether a property is a key for a CCMS class

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

ISREFERENCE - Indicates that a CCMS property is a CIM reference

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

STRONGWEAK - Association types

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

OVERRIDE - Overwrite property of CCMS class property

Data type: CSMOVRRIDE
Default: CSM_OVERRIDE_ALLOWED
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_TOKENDEF_REGISTER

QUALIFIERS - CSM_BK: Semantic and Token Definitions

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

EXCEPTIONS details

DATABASE_ERROR -

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

VER_NUM_REQUIRED_FOR_REPLICATE -

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

BREAK_IN_REPLIC_VERSION_NUM -

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

INCORRECT_SEMANTIC_IN_REPLIC -

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

INCORRECT_PROVIDER_IN_REPLIC -

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

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

CLASSDEF_HAS_WRONG_PROVIDER -

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

REPLICATE_AND_RESET_BOTH_SET -

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

REPLICATED_VERSIONS_MISMATCH -

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

INDIC_ASSOC_BOTH_MARKED -

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

ERR_ADDING_NEW_CLASS_TO_CLUSTR -

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)

ERR_DELETING_OLD_CLASSDEF -

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

ONLY_ONE_VERSION_NUM_GIVEN -

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

Copy and paste ABAP code example for SCSMBK_TOKENDEF_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_datatype  TYPE INT4, "   
lv_incorrect_semantic_in_replic  TYPE INT4, "   
lv_defaultval  TYPE TEXT40, "   
lv_incorrect_provider_in_replic  TYPE TEXT40, "   
lv_semantic  TYPE CSMSMNTC, "   SEM_BC
lv_not_authorized  TYPE CSMSMNTC, "   
lv_provider  TYPE CSMPROVDR, "   
lv_mteclass  TYPE ALMTECLASS, "   
lv_reporter  TYPE CSMSYSGUID, "   
lv_timestamp  TYPE TIMESTAMP, "   
lv_reset  TYPE CHAR1, "   CSM_NO
lv_scheme  TYPE CSMSMNTC, "   
lv_classdef_has_wrong_provider  TYPE CSMSMNTC, "   
lv_replicate  TYPE CHAR1, "   CSM_NO
lv_language  TYPE SPRAS, "   
lv_token_display_text  TYPE ALMTECLASS, "   
lv_lock  TYPE CHAR1, "   SPACE
lv_class  TYPE CSMCLASS, "   
lv_replicate_and_reset_both_set  TYPE CSMCLASS, "   
lv_token  TYPE CSMTOKEN, "   
lv_replicated_versions_mismatch  TYPE CSMTOKEN, "   
lv_keytoken  TYPE CSMKEYTOKN, "   CSM_NO
lv_indic_assoc_both_marked  TYPE CSMKEYTOKN, "   
lv_isreference  TYPE CSMREFRNCE, "   CSM_NO
lv_err_adding_new_class_to_clustr  TYPE CSMREFRNCE, "   
lv_strongweak  TYPE CSMASSOC, "   
lv_internal_error  TYPE CSMASSOC, "   
lv_override  TYPE CSMOVRRIDE, "   CSM_OVERRIDE_ALLOWED
lv_err_deleting_old_classdef  TYPE CSMOVRRIDE, "   
lv_active  TYPE CSMACTIVE, "   CSM_YES
lv_only_one_version_num_given  TYPE CSMACTIVE. "   

  CALL FUNCTION 'SCSMBK_TOKENDEF_REGISTER'  "
    EXPORTING
         AREA = lv_area
         DOMVERSION = lv_domversion
         SUBVERSION = lv_subversion
         DATATYPE = lv_datatype
         DEFAULTVAL = lv_defaultval
         SEMANTIC = lv_semantic
         PROVIDER = lv_provider
         MTECLASS = lv_mteclass
         REPORTER = lv_reporter
         TIMESTAMP = lv_timestamp
         RESET = lv_reset
         SCHEME = lv_scheme
         REPLICATE = lv_replicate
         LANGUAGE = lv_language
         TOKEN_DISPLAY_TEXT = lv_token_display_text
         LOCK = lv_lock
         CLASS = lv_class
         TOKEN = lv_token
         KEYTOKEN = lv_keytoken
         ISREFERENCE = lv_isreference
         STRONGWEAK = lv_strongweak
         OVERRIDE = lv_override
         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
        INCORRECT_PROVIDER_IN_REPLIC = 13
        NOT_AUTHORIZED = 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_TOKENDEF_REGISTER




ABAP code using 7.40 inline data declarations to call FM SCSMBK_TOKENDEF_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_keytoken) = CSM_NO.
 
 
DATA(ld_isreference) = CSM_NO.
 
 
 
 
DATA(ld_override) = CSM_OVERRIDE_ALLOWED.
 
 
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!