SAP DB_INDX_SET_CRE Function Module for Save the current DB STORAGE parameter for table or index
DB_INDX_SET_CRE is a standard db indx set cre SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save the current DB STORAGE parameter for table or index processing and below is the pattern details for this FM, 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 db indx set cre FM, simply by entering the name DB_INDX_SET_CRE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDB6
Program Name: SAPLSDB6
Main Program: SAPLSDB6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DB_INDX_SET_CRE 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 'DB_INDX_SET_CRE'"Save the current DB STORAGE parameter for table or index.
EXPORTING
* TABNAME = "
* DBTABNAME = ' ' "
* SELECTNAME = ' ' "Table Name
* INDEXNAME = '*' "
* DROP_CREATE = 'X' "
* CHECK_EXISTENCE = ' ' "
* CONTEXT = 'DEVEL' "Context in which the conversion runs
* SCENARIO = 'PREUPG' "
* PRID = 0 "Row Index of Internal Tables
EXCEPTIONS
INDEX_NOT_FOUND = 1 TABLE_NOT_FOUND = 2 UNKNOWN_ERROR = 3 OP_FAILURE = 4
IMPORTING Parameters details for DB_INDX_SET_CRE
TABNAME -
Data type: DD12L-SQLTABOptional: Yes
Call by Reference: No ( called with pass by value option)
DBTABNAME -
Data type: DD02L-TABNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTNAME - Table Name
Data type: DD12L-SQLTABDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDEXNAME -
Data type: DD12L-INDEXNAMEDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DROP_CREATE -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_EXISTENCE -
Data type: DDREFSTRUC-BOOLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONTEXT - Context in which the conversion runs
Data type: TICNV-CNVCONTEXTDefault: 'DEVEL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCENARIO -
Data type: TICNV-SCENARIODefault: 'PREUPG'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID - Row Index of Internal Tables
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INDEX_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OP_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DB_INDX_SET_CRE 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_tabname | TYPE DD12L-SQLTAB, " | |||
| lv_index_not_found | TYPE DD12L, " | |||
| lv_dbtabname | TYPE DD02L-TABNAME, " ' ' | |||
| lv_table_not_found | TYPE DD02L, " | |||
| lv_selectname | TYPE DD12L-SQLTAB, " ' ' | |||
| lv_unknown_error | TYPE DD12L, " | |||
| lv_indexname | TYPE DD12L-INDEXNAME, " '*' | |||
| lv_op_failure | TYPE DD12L, " | |||
| lv_drop_create | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_check_existence | TYPE DDREFSTRUC-BOOL, " ' ' | |||
| lv_context | TYPE TICNV-CNVCONTEXT, " 'DEVEL' | |||
| lv_scenario | TYPE TICNV-SCENARIO, " 'PREUPG' | |||
| lv_prid | TYPE SY-TABIX. " 0 |
|   CALL FUNCTION 'DB_INDX_SET_CRE' "Save the current DB STORAGE parameter for table or index |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| DBTABNAME | = lv_dbtabname | |
| SELECTNAME | = lv_selectname | |
| INDEXNAME | = lv_indexname | |
| DROP_CREATE | = lv_drop_create | |
| CHECK_EXISTENCE | = lv_check_existence | |
| CONTEXT | = lv_context | |
| SCENARIO | = lv_scenario | |
| PRID | = lv_prid | |
| EXCEPTIONS | ||
| INDEX_NOT_FOUND = 1 | ||
| TABLE_NOT_FOUND = 2 | ||
| UNKNOWN_ERROR = 3 | ||
| OP_FAILURE = 4 | ||
| . " DB_INDX_SET_CRE | ||
ABAP code using 7.40 inline data declarations to call FM DB_INDX_SET_CRE
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 SQLTAB FROM DD12L INTO @DATA(ld_tabname). | ||||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_dbtabname). | ||||
| DATA(ld_dbtabname) | = ' '. | |||
| "SELECT single SQLTAB FROM DD12L INTO @DATA(ld_selectname). | ||||
| DATA(ld_selectname) | = ' '. | |||
| "SELECT single INDEXNAME FROM DD12L INTO @DATA(ld_indexname). | ||||
| DATA(ld_indexname) | = '*'. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_drop_create). | ||||
| DATA(ld_drop_create) | = 'X'. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_check_existence). | ||||
| DATA(ld_check_existence) | = ' '. | |||
| "SELECT single CNVCONTEXT FROM TICNV INTO @DATA(ld_context). | ||||
| DATA(ld_context) | = 'DEVEL'. | |||
| "SELECT single SCENARIO FROM TICNV INTO @DATA(ld_scenario). | ||||
| DATA(ld_scenario) | = 'PREUPG'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
Search for further information about these or an SAP related objects