SAP Function Modules

SCSMBK_DELETE_FROM_DATACLUSTER SAP Function module







SCSMBK_DELETE_FROM_DATACLUSTER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SCSMBK_DELETE_FROM_DATACLUSTER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SCSMBK
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SCSMBK_DELETE_FROM_DATACLUSTER - SCSMBK DELETE FROM DATACLUSTER





CALL FUNCTION 'SCSMBK_DELETE_FROM_DATACLUSTER' "
  EXPORTING
*   area = 'BC'                 " char2         Version Number Component
    scheme =                    " csmsmntc      Name of semantic for representing system relationships
    class =                     " csmclass      CCMS Class Names
*   semantic = SEM_BC           " csmsmntc      Name of semantic for representing system relationships
*   token =                     " csmtoken      Property of CCMS Repository class
*   active = 'Y'                " csmactive     Indicates whether a CCMS class is the active version
*   dom_version =               " csmversn      Dominant or subsidiary version number of a CCMS class
*   sub_version =               " csmversn      Dominant or subsidiary version number of a CCMS class
* TABLES
*   classdef =                  " csmbk_clss    CCMS Class Definitions
*   tokendef =                  " csmbk_tokn    CCMS Token Definitions
  EXCEPTIONS
    ONLY_ONE_VERSIONNUMBER_GIVEN = 1  "
    KEY_NOT_FOUND_IN_DATA_CLUSTER = 2  "
    .  "  SCSMBK_DELETE_FROM_DATACLUSTER

ABAP code example for Function Module SCSMBK_DELETE_FROM_DATACLUSTER





The ABAP code below is a full code listing to execute function module SCSMBK_DELETE_FROM_DATACLUSTER including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_classdef  TYPE STANDARD TABLE OF CSMBK_CLSS,"TABLES PARAM
wa_classdef  LIKE LINE OF it_classdef ,
it_tokendef  TYPE STANDARD TABLE OF CSMBK_TOKN,"TABLES PARAM
wa_tokendef  LIKE LINE OF it_tokendef .

DATA(ld_area) = 'Check type of data required'.
DATA(ld_scheme) = 'Check type of data required'.
DATA(ld_class) = 'Check type of data required'.
DATA(ld_semantic) = 'Check type of data required'.
DATA(ld_token) = 'Check type of data required'.
DATA(ld_active) = 'Check type of data required'.
DATA(ld_dom_version) = 'Check type of data required'.
DATA(ld_sub_version) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_classdef to it_classdef.

"populate fields of struture and append to itab
append wa_tokendef to it_tokendef. . CALL FUNCTION 'SCSMBK_DELETE_FROM_DATACLUSTER' EXPORTING * area = ld_area scheme = ld_scheme class = ld_class * semantic = ld_semantic * token = ld_token * active = ld_active * dom_version = ld_dom_version * sub_version = ld_sub_version * TABLES * classdef = it_classdef * tokendef = it_tokendef EXCEPTIONS ONLY_ONE_VERSIONNUMBER_GIVEN = 1 KEY_NOT_FOUND_IN_DATA_CLUSTER = 2 . " SCSMBK_DELETE_FROM_DATACLUSTER
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_area  TYPE CHAR2 ,
it_classdef  TYPE STANDARD TABLE OF CSMBK_CLSS ,
wa_classdef  LIKE LINE OF it_classdef,
ld_scheme  TYPE CSMSMNTC ,
it_tokendef  TYPE STANDARD TABLE OF CSMBK_TOKN ,
wa_tokendef  LIKE LINE OF it_tokendef,
ld_class  TYPE CSMCLASS ,
ld_semantic  TYPE CSMSMNTC ,
ld_token  TYPE CSMTOKEN ,
ld_active  TYPE CSMACTIVE ,
ld_dom_version  TYPE CSMVERSN ,
ld_sub_version  TYPE CSMVERSN .

ld_area = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_classdef to it_classdef.
ld_scheme = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tokendef to it_tokendef.
ld_class = 'Check type of data required'.
ld_semantic = 'Check type of data required'.
ld_token = 'Check type of data required'.
ld_active = 'Check type of data required'.
ld_dom_version = 'Check type of data required'.
ld_sub_version = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SCSMBK_DELETE_FROM_DATACLUSTER or its description.