SAP RSDU_PARTITIONS_INFO_GET_MSS Function Module for Reads Partition Information into a Table
RSDU_PARTITIONS_INFO_GET_MSS is a standard rsdu partitions info get mss SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reads Partition Information into a Table 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 partitions info get mss FM, simply by entering the name RSDU_PARTITIONS_INFO_GET_MSS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDU_PART_MSS
Program Name: SAPLRSDU_PART_MSS
Main Program: SAPLRSDU_PART_MSS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSDU_PARTITIONS_INFO_GET_MSS 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_PARTITIONS_INFO_GET_MSS'"Reads Partition Information into a Table.
EXPORTING
I_TABLNM = "Table name
IMPORTING
E_PARTYPE = "
E_PARTKEY = "
E_TS_PART_INFO = "
CHANGING
C_PROCESSED = "Boolean
EXCEPTIONS
TABLE_NOT_EXISTS = 1 TABLE_NOT_PARTITIONED = 2
IMPORTING Parameters details for RSDU_PARTITIONS_INFO_GET_MSS
I_TABLNM - Table name
Data type: RSD_TABLNMOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RSDU_PARTITIONS_INFO_GET_MSS
E_PARTYPE -
Data type: RSDU_PARTYPEOptional: No
Call by Reference: Yes
E_PARTKEY -
Data type: RSD_FIELDNMOptional: No
Call by Reference: Yes
E_TS_PART_INFO -
Data type: RSDU_TS_PART_INFOOptional: No
Call by Reference: Yes
CHANGING Parameters details for RSDU_PARTITIONS_INFO_GET_MSS
C_PROCESSED - Boolean
Data type: RS_BOOLOptional: No
Call by Reference: Yes
EXCEPTIONS details
TABLE_NOT_EXISTS - Table unknown
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_PARTITIONED - Table Not Partitioned
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSDU_PARTITIONS_INFO_GET_MSS 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_tablnm | TYPE RSD_TABLNM, " | |||
lv_e_partype | TYPE RSDU_PARTYPE, " | |||
lv_c_processed | TYPE RS_BOOL, " | |||
lv_table_not_exists | TYPE RS_BOOL, " | |||
lv_e_partkey | TYPE RSD_FIELDNM, " | |||
lv_table_not_partitioned | TYPE RSD_FIELDNM, " | |||
lv_e_ts_part_info | TYPE RSDU_TS_PART_INFO. " |
  CALL FUNCTION 'RSDU_PARTITIONS_INFO_GET_MSS' "Reads Partition Information into a Table |
EXPORTING | ||
I_TABLNM | = lv_i_tablnm | |
IMPORTING | ||
E_PARTYPE | = lv_e_partype | |
E_PARTKEY | = lv_e_partkey | |
E_TS_PART_INFO | = lv_e_ts_part_info | |
CHANGING | ||
C_PROCESSED | = lv_c_processed | |
EXCEPTIONS | ||
TABLE_NOT_EXISTS = 1 | ||
TABLE_NOT_PARTITIONED = 2 | ||
. " RSDU_PARTITIONS_INFO_GET_MSS |
ABAP code using 7.40 inline data declarations to call FM RSDU_PARTITIONS_INFO_GET_MSS
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.Search for further information about these or an SAP related objects