SAP MSS_CREATE_PARTITION_INDEX Function Module for









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

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



Function MSS_CREATE_PARTITION_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_CREATE_PARTITION_INDEX'"
EXPORTING
PART_TABNAME = "Table Name
PART_INDEX_DBNAME = "Database index
PART_INDEX_DDNAME = "Database index
* EXECUTE = ' ' "CHAR01 Data Element for SYST
* PRID = 0 "Internal Tables, Current Row Index
* DBSYS = SY-DBSYS "R/3 System, Name of Central Database System

TABLES
DDFLDNAMES_IN = "Name of a DD table field
STATEMENT_TAB_OUT = "

EXCEPTIONS
WRONG_DATABASE_PLATFORM = 1 TABLE_NOT_FOUND = 2 TPARAM_SOURCE_NOT_DETERMINATED = 3 STATEMENT_NOT_GENERATED = 4 STATEMENT_EXEC_ERROR = 5
.



IMPORTING Parameters details for MSS_CREATE_PARTITION_INDEX

PART_TABNAME - Table Name

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

PART_INDEX_DBNAME - Database index

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

PART_INDEX_DDNAME - Database index

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

EXECUTE - CHAR01 Data Element for SYST

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

PRID - Internal Tables, Current Row Index

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

DBSYS - R/3 System, Name of Central Database System

Data type: SY-DBSYS
Default: SY-DBSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MSS_CREATE_PARTITION_INDEX

DDFLDNAMES_IN - Name of a DD table field

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

STATEMENT_TAB_OUT -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_DATABASE_PLATFORM -

Data type:
Optional: No
Call by Reference: Yes

TABLE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

TPARAM_SOURCE_NOT_DETERMINATED -

Data type:
Optional: No
Call by Reference: Yes

STATEMENT_NOT_GENERATED -

Data type:
Optional: No
Call by Reference: Yes

STATEMENT_EXEC_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MSS_CREATE_PARTITION_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_part_tabname  TYPE DD02L-TABNAME, "   
lt_ddfldnames_in  TYPE STANDARD TABLE OF DDFLDNAM, "   
lv_wrong_database_platform  TYPE DDFLDNAM, "   
lv_table_not_found  TYPE DDFLDNAM, "   
lv_part_index_dbname  TYPE DD12L-DBINDEX, "   
lt_statement_tab_out  TYPE STANDARD TABLE OF DD12L, "   
lv_part_index_ddname  TYPE DD12L-INDEXNAME, "   
lv_tparam_source_not_determinated  TYPE DD12L, "   
lv_execute  TYPE SYCHAR01, "   ' '
lv_statement_not_generated  TYPE SYCHAR01, "   
lv_prid  TYPE SY-TABIX, "   0
lv_statement_exec_error  TYPE SY, "   
lv_dbsys  TYPE SY-DBSYS. "   SY-DBSYS

  CALL FUNCTION 'MSS_CREATE_PARTITION_INDEX'  "
    EXPORTING
         PART_TABNAME = lv_part_tabname
         PART_INDEX_DBNAME = lv_part_index_dbname
         PART_INDEX_DDNAME = lv_part_index_ddname
         EXECUTE = lv_execute
         PRID = lv_prid
         DBSYS = lv_dbsys
    TABLES
         DDFLDNAMES_IN = lt_ddfldnames_in
         STATEMENT_TAB_OUT = lt_statement_tab_out
    EXCEPTIONS
        WRONG_DATABASE_PLATFORM = 1
        TABLE_NOT_FOUND = 2
        TPARAM_SOURCE_NOT_DETERMINATED = 3
        STATEMENT_NOT_GENERATED = 4
        STATEMENT_EXEC_ERROR = 5
. " MSS_CREATE_PARTITION_INDEX




ABAP code using 7.40 inline data declarations to call FM MSS_CREATE_PARTITION_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.

"SELECT single TABNAME FROM DD02L INTO @DATA(ld_part_tabname).
 
 
 
 
"SELECT single DBINDEX FROM DD12L INTO @DATA(ld_part_index_dbname).
 
 
"SELECT single INDEXNAME FROM DD12L INTO @DATA(ld_part_index_ddname).
 
 
DATA(ld_execute) = ' '.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_prid).
 
 
"SELECT single DBSYS FROM SY INTO @DATA(ld_dbsys).
DATA(ld_dbsys) = SY-DBSYS.
 


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!