SAP RSDU_PART_GENERIC_IDX_DIS_ORA Function Module for Add a partition to a partitioned table in a generic way
RSDU_PART_GENERIC_IDX_DIS_ORA is a standard rsdu part generic idx dis ora SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Add a partition to a partitioned table in a generic way 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 rsdu part generic idx dis ora FM, simply by entering the name RSDU_PART_GENERIC_IDX_DIS_ORA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDU_PART_ORA
Program Name: SAPLRSDU_PART_ORA
Main Program: SAPLRSDU_PART_ORA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSDU_PART_GENERIC_IDX_DIS_ORA 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 'RSDU_PART_GENERIC_IDX_DIS_ORA'"Add a partition to a partitioned table in a generic way.
EXPORTING
I_TABLNM = "Name of the partitioned table
* I_TS_PART = "Partition whose indexes are to be disabled
* I_SIMULATE = RS_C_FALSE "Only simulate, not Execute DDL
* I_CONNECTION = 'R/3*' "Logical Name for a Database Connection
IMPORTING
E_T_PROT = "Log
EXCEPTIONS
TABLE_NOT_EXISTS = 1 TABLE_NOT_PARTITIONED = 2 PARTITION_NOT_EXISTS = 3 DISABLE_PART_INDEXES_FAILED = 4 WRONG_IMPORT_PARAMETERS = 5 NOT_IMPLEMENTED = 6 INHERITED_ERROR = 7
IMPORTING Parameters details for RSDU_PART_GENERIC_IDX_DIS_ORA
I_TABLNM - Name of the partitioned table
Data type: RSD_TABLNMOptional: No
Call by Reference: Yes
I_TS_PART - Partition whose indexes are to be disabled
Data type: RSDU_TS_GENPART_INFOOptional: Yes
Call by Reference: Yes
I_SIMULATE - Only simulate, not Execute DDL
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_CONNECTION - Logical Name for a Database Connection
Data type: DBCON_NAMEDefault: 'R/3*'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSDU_PART_GENERIC_IDX_DIS_ORA
E_T_PROT - Log
Data type: RSDU_T_GENPART_PROTOptional: No
Call by Reference: Yes
EXCEPTIONS details
TABLE_NOT_EXISTS - Table does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_PARTITIONED - Table is not partitioned
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARTITION_NOT_EXISTS - Partition doesn't exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DISABLE_PART_INDEXES_FAILED - Creating local indices failed
Data type:Optional: No
Call by Reference: Yes
WRONG_IMPORT_PARAMETERS - Incorrect or ambiguous import parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_IMPLEMENTED - DB dependent part is not implemented
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INHERITED_ERROR - nherited error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSDU_PART_GENERIC_IDX_DIS_ORA 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_e_t_prot | TYPE RSDU_T_GENPART_PROT, " | |||
| lv_i_tablnm | TYPE RSD_TABLNM, " | |||
| lv_table_not_exists | TYPE RSD_TABLNM, " | |||
| lv_i_ts_part | TYPE RSDU_TS_GENPART_INFO, " | |||
| lv_table_not_partitioned | TYPE RSDU_TS_GENPART_INFO, " | |||
| lv_i_simulate | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_partition_not_exists | TYPE RS_BOOL, " | |||
| lv_i_connection | TYPE DBCON_NAME, " 'R/3*' | |||
| lv_disable_part_indexes_failed | TYPE DBCON_NAME, " | |||
| lv_wrong_import_parameters | TYPE DBCON_NAME, " | |||
| lv_not_implemented | TYPE DBCON_NAME, " | |||
| lv_inherited_error | TYPE DBCON_NAME. " |
|   CALL FUNCTION 'RSDU_PART_GENERIC_IDX_DIS_ORA' "Add a partition to a partitioned table in a generic way |
| EXPORTING | ||
| I_TABLNM | = lv_i_tablnm | |
| I_TS_PART | = lv_i_ts_part | |
| I_SIMULATE | = lv_i_simulate | |
| I_CONNECTION | = lv_i_connection | |
| IMPORTING | ||
| E_T_PROT | = lv_e_t_prot | |
| EXCEPTIONS | ||
| TABLE_NOT_EXISTS = 1 | ||
| TABLE_NOT_PARTITIONED = 2 | ||
| PARTITION_NOT_EXISTS = 3 | ||
| DISABLE_PART_INDEXES_FAILED = 4 | ||
| WRONG_IMPORT_PARAMETERS = 5 | ||
| NOT_IMPLEMENTED = 6 | ||
| INHERITED_ERROR = 7 | ||
| . " RSDU_PART_GENERIC_IDX_DIS_ORA | ||
ABAP code using 7.40 inline data declarations to call FM RSDU_PART_GENERIC_IDX_DIS_ORA
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_simulate) | = RS_C_FALSE. | |||
| DATA(ld_i_connection) | = 'R/3*'. | |||
Search for further information about these or an SAP related objects