SAP DD_INDX_ACTIVATE Function Module for
DD_INDX_ACTIVATE is a standard dd indx activate 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 dd indx activate FM, simply by entering the name DD_INDX_ACTIVATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDIN
Program Name: SAPLSDIN
Main Program: SAPLSDIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DD_INDX_ACTIVATE 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 'DD_INDX_ACTIVATE'".
EXPORTING
* ACT_CONTROL = 1 "
* AUTH_CHK = 'X' "
* DD03P_DELIVERED = ' ' "
* GET_STATUS = 'M' "
* INDEXNAME = '*' "
* PRID = 9999 "Log ID
* TABNAME = 'CD2TB1INDX' "
* PROTNAME = ' ' "
IMPORTING
RC = "
SETTMST = "
DBACT = "
TABLES
* DD03P_TAB = "
DD12V_TAB = "
DD17V_TAB = "Index Fields
IMPORTING Parameters details for DD_INDX_ACTIVATE
ACT_CONTROL -
Data type:Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTH_CHK -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DD03P_DELIVERED -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_STATUS -
Data type: DD12V-AS4LOCALDefault: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDEXNAME -
Data type: DD12V-INDEXNAMEDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID - Log ID
Data type: SY-TABIXDefault: 9999
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABNAME -
Data type: DD12V-SQLTABDefault: 'CD2TB1INDX'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROTNAME -
Data type: DDPRH-PROTNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DD_INDX_ACTIVATE
RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
SETTMST -
Data type: SETTMSTOptional: No
Call by Reference: Yes
DBACT -
Data type: TBATG-FCTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_INDX_ACTIVATE
DD03P_TAB -
Data type: DD03POptional: Yes
Call by Reference: No ( called with pass by value option)
DD12V_TAB -
Data type: DD12VOptional: No
Call by Reference: No ( called with pass by value option)
DD17V_TAB - Index Fields
Data type: DD17VOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DD_INDX_ACTIVATE 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_rc | TYPE SY-SUBRC, " | |||
| lt_dd03p_tab | TYPE STANDARD TABLE OF DD03P, " | |||
| lv_act_control | TYPE DD03P, " 1 | |||
| lv_settmst | TYPE SETTMST, " | |||
| lv_auth_chk | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lt_dd12v_tab | TYPE STANDARD TABLE OF DD12V, " | |||
| lv_dbact | TYPE TBATG-FCT, " | |||
| lt_dd17v_tab | TYPE STANDARD TABLE OF DD17V, " | |||
| lv_dd03p_delivered | TYPE DD17V, " SPACE | |||
| lv_get_status | TYPE DD12V-AS4LOCAL, " 'M' | |||
| lv_indexname | TYPE DD12V-INDEXNAME, " '*' | |||
| lv_prid | TYPE SY-TABIX, " 9999 | |||
| lv_tabname | TYPE DD12V-SQLTAB, " 'CD2TB1INDX' | |||
| lv_protname | TYPE DDPRH-PROTNAME. " SPACE |
|   CALL FUNCTION 'DD_INDX_ACTIVATE' " |
| EXPORTING | ||
| ACT_CONTROL | = lv_act_control | |
| AUTH_CHK | = lv_auth_chk | |
| DD03P_DELIVERED | = lv_dd03p_delivered | |
| GET_STATUS | = lv_get_status | |
| INDEXNAME | = lv_indexname | |
| PRID | = lv_prid | |
| TABNAME | = lv_tabname | |
| PROTNAME | = lv_protname | |
| IMPORTING | ||
| RC | = lv_rc | |
| SETTMST | = lv_settmst | |
| DBACT | = lv_dbact | |
| TABLES | ||
| DD03P_TAB | = lt_dd03p_tab | |
| DD12V_TAB | = lt_dd12v_tab | |
| DD17V_TAB | = lt_dd17v_tab | |
| . " DD_INDX_ACTIVATE | ||
ABAP code using 7.40 inline data declarations to call FM DD_INDX_ACTIVATE
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 SUBRC FROM SY INTO @DATA(ld_rc). | ||||
| DATA(ld_act_control) | = 1. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_auth_chk). | ||||
| DATA(ld_auth_chk) | = 'X'. | |||
| "SELECT single FCT FROM TBATG INTO @DATA(ld_dbact). | ||||
| DATA(ld_dd03p_delivered) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD12V INTO @DATA(ld_get_status). | ||||
| DATA(ld_get_status) | = 'M'. | |||
| "SELECT single INDEXNAME FROM DD12V INTO @DATA(ld_indexname). | ||||
| DATA(ld_indexname) | = '*'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
| DATA(ld_prid) | = 9999. | |||
| "SELECT single SQLTAB FROM DD12V INTO @DATA(ld_tabname). | ||||
| DATA(ld_tabname) | = 'CD2TB1INDX'. | |||
| "SELECT single PROTNAME FROM DDPRH INTO @DATA(ld_protname). | ||||
| DATA(ld_protname) | = ' '. | |||
Search for further information about these or an SAP related objects