SAP MSS_DEFINE_CS_INDEX Function Module for









MSS_DEFINE_CS_INDEX is a standard mss define cs index 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 mss define cs index FM, simply by entering the name MSS_DEFINE_CS_INDEX into the relevant SAP transaction such as SE37 or SE38.

Function Group: SFMSS_SYSCAT
Program Name: SAPLSFMSS_SYSCAT
Main Program: SAPLSFMSS_SYSCAT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MSS_DEFINE_CS_INDEX 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 'MSS_DEFINE_CS_INDEX'"
EXPORTING
I_TABNAME = "
* I_INDEXID = 'CS' "
* I_CLUSTERED = ABAP_FALSE "
* I_DELETE = ABAP_FALSE "
* I_INSERT = ABAP_FALSE "
* I_GLOBAL_CHECK = '&GLOBAL_EFACT' "
* I_GLOBAL_TO_LOCAL = ABAP_TRUE "

IMPORTING
E_CLUSTERED = "
.



IMPORTING Parameters details for MSS_DEFINE_CS_INDEX

I_TABNAME -

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

I_INDEXID -

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

I_CLUSTERED -

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

I_DELETE -

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

I_INSERT -

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

I_GLOBAL_CHECK -

Data type: STRING
Default: '&GLOBAL_EFACT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GLOBAL_TO_LOCAL -

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

EXPORTING Parameters details for MSS_DEFINE_CS_INDEX

E_CLUSTERED -

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

Copy and paste ABAP code example for MSS_DEFINE_CS_INDEX 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_i_tabname  TYPE TABNAME, "   
lv_e_clustered  TYPE STRING, "   
lv_i_indexid  TYPE INDEXID, "   'CS'
lv_i_clustered  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_i_delete  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_i_insert  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_i_global_check  TYPE STRING, "   '&GLOBAL_EFACT'
lv_i_global_to_local  TYPE ABAP_BOOL. "   ABAP_TRUE

  CALL FUNCTION 'MSS_DEFINE_CS_INDEX'  "
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_INDEXID = lv_i_indexid
         I_CLUSTERED = lv_i_clustered
         I_DELETE = lv_i_delete
         I_INSERT = lv_i_insert
         I_GLOBAL_CHECK = lv_i_global_check
         I_GLOBAL_TO_LOCAL = lv_i_global_to_local
    IMPORTING
         E_CLUSTERED = lv_e_clustered
. " MSS_DEFINE_CS_INDEX




ABAP code using 7.40 inline data declarations to call FM MSS_DEFINE_CS_INDEX

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_i_indexid) = 'CS'.
 
DATA(ld_i_clustered) = ABAP_FALSE.
 
DATA(ld_i_delete) = ABAP_FALSE.
 
DATA(ld_i_insert) = ABAP_FALSE.
 
DATA(ld_i_global_check) = '&GLOBAL_EFACT'.
 
DATA(ld_i_global_to_local) = ABAP_TRUE.
 


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!