SAP SCSMBK_EXPORT_TO_DATACLUSTER Function Module for









SCSMBK_EXPORT_TO_DATACLUSTER is a standard scsmbk export to datacluster 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 export to datacluster FM, simply by entering the name SCSMBK_EXPORT_TO_DATACLUSTER 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): Normal Function Module
Update:



Function SCSMBK_EXPORT_TO_DATACLUSTER 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_EXPORT_TO_DATACLUSTER'"
EXPORTING
* AREA = 'BC' "Version Number Component
SCHEME = "Name of semantic for representing system relationships
CLASS = "CCMS Class Names
* SEMANTIC = SEM_BC "Name of semantic for representing system relationships
* TOKEN = "Property of CCMS Repository class
* ACTIVE = 'Y' "Indicates whether a CCMS class is the active version
DOM_VERSION = "Dominant or subsidiary version number of a CCMS class
SUB_VERSION = "Dominant or subsidiary version number of a CCMS class
* LOCK = ' ' "CHAR01 Data Element for SYST

TABLES
* CLASSDEF = "CCMS Class Definitions
* TOKENDEF = "CCMS Token Definitions

EXCEPTIONS
WRONG_INPUTS_FOR_CL_OR_TOK_DEF = 1 MORE_THAN_ONE_CLASS_TO_REG = 2 EMPTY_CLASSDEF_TABLE = 3 TABLE_HOLDS_MULTIPLE_CLASSDEFS = 4 EMPTY_TOKENDEF_TABLE = 5 TABLE_HOLDS_MULTIPLE_TOKENDEFS = 6 WRONG_INPUTS_FOR_CLS_OR_TOKEN = 7 EXPORT_ERROR = 8
.



IMPORTING Parameters details for SCSMBK_EXPORT_TO_DATACLUSTER

AREA - Version Number Component

Data type: CHAR2
Default: 'BC'
Optional: Yes
Call by Reference: Yes

SCHEME - Name of semantic for representing system relationships

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

CLASS - CCMS Class Names

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

SEMANTIC - Name of semantic for representing system relationships

Data type: CSMSMNTC
Default: SEM_BC
Optional: Yes
Call by Reference: Yes

TOKEN - Property of CCMS Repository class

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

ACTIVE - Indicates whether a CCMS class is the active version

Data type: CSMACTIVE
Default: 'Y'
Optional: Yes
Call by Reference: Yes

DOM_VERSION - Dominant or subsidiary version number of a CCMS class

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

SUB_VERSION - Dominant or subsidiary version number of a CCMS class

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

LOCK - CHAR01 Data Element for SYST

Data type: CSMBK_CL-SPERR
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SCSMBK_EXPORT_TO_DATACLUSTER

CLASSDEF - CCMS Class Definitions

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

TOKENDEF - CCMS Token Definitions

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

EXCEPTIONS details

WRONG_INPUTS_FOR_CL_OR_TOK_DEF -

Data type:
Optional: No
Call by Reference: Yes

MORE_THAN_ONE_CLASS_TO_REG -

Data type:
Optional: No
Call by Reference: Yes

EMPTY_CLASSDEF_TABLE -

Data type:
Optional: No
Call by Reference: Yes

TABLE_HOLDS_MULTIPLE_CLASSDEFS -

Data type:
Optional: No
Call by Reference: Yes

EMPTY_TOKENDEF_TABLE -

Data type:
Optional: No
Call by Reference: Yes

TABLE_HOLDS_MULTIPLE_TOKENDEFS -

Data type:
Optional: No
Call by Reference: Yes

WRONG_INPUTS_FOR_CLS_OR_TOKEN -

Data type:
Optional: No
Call by Reference: Yes

EXPORT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCSMBK_EXPORT_TO_DATACLUSTER 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_classdef  TYPE STANDARD TABLE OF CSMBK_CLSS, "   
lv_wrong_inputs_for_cl_or_tok_def  TYPE CSMBK_CLSS, "   
lv_scheme  TYPE CSMSMNTC, "   
lt_tokendef  TYPE STANDARD TABLE OF CSMBK_TOKN, "   
lv_more_than_one_class_to_reg  TYPE CSMBK_TOKN, "   
lv_class  TYPE CSMCLASS, "   
lv_empty_classdef_table  TYPE CSMCLASS, "   
lv_semantic  TYPE CSMSMNTC, "   SEM_BC
lv_table_holds_multiple_classdefs  TYPE CSMSMNTC, "   
lv_token  TYPE CSMTOKEN, "   
lv_empty_tokendef_table  TYPE CSMTOKEN, "   
lv_active  TYPE CSMACTIVE, "   'Y'
lv_table_holds_multiple_tokendefs  TYPE CSMACTIVE, "   
lv_dom_version  TYPE CSMVERSN, "   
lv_wrong_inputs_for_cls_or_token  TYPE CSMVERSN, "   
lv_sub_version  TYPE CSMVERSN, "   
lv_export_error  TYPE CSMVERSN, "   
lv_lock  TYPE CSMBK_CL-SPERR. "   SPACE

  CALL FUNCTION 'SCSMBK_EXPORT_TO_DATACLUSTER'  "
    EXPORTING
         AREA = lv_area
         SCHEME = lv_scheme
         CLASS = lv_class
         SEMANTIC = lv_semantic
         TOKEN = lv_token
         ACTIVE = lv_active
         DOM_VERSION = lv_dom_version
         SUB_VERSION = lv_sub_version
         LOCK = lv_lock
    TABLES
         CLASSDEF = lt_classdef
         TOKENDEF = lt_tokendef
    EXCEPTIONS
        WRONG_INPUTS_FOR_CL_OR_TOK_DEF = 1
        MORE_THAN_ONE_CLASS_TO_REG = 2
        EMPTY_CLASSDEF_TABLE = 3
        TABLE_HOLDS_MULTIPLE_CLASSDEFS = 4
        EMPTY_TOKENDEF_TABLE = 5
        TABLE_HOLDS_MULTIPLE_TOKENDEFS = 6
        WRONG_INPUTS_FOR_CLS_OR_TOKEN = 7
        EXPORT_ERROR = 8
. " SCSMBK_EXPORT_TO_DATACLUSTER




ABAP code using 7.40 inline data declarations to call FM SCSMBK_EXPORT_TO_DATACLUSTER

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_active) = 'Y'.
 
 
 
 
 
 
"SELECT single SPERR FROM CSMBK_CL INTO @DATA(ld_lock).
DATA(ld_lock) = ' '.
 


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!