SAP MD_RDPR_READ Function Module for NOTRANSL: Lesen von Rundungsprofilen aus der Tabelle RDPR
MD_RDPR_READ is a standard md rdpr read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen von Rundungsprofilen aus der Tabelle RDPR 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 md rdpr read FM, simply by entering the name MD_RDPR_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: MDR1
Program Name: SAPLMDR1
Main Program: SAPLMDR1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MD_RDPR_READ 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 'MD_RDPR_READ'"NOTRANSL: Lesen von Rundungsprofilen aus der Tabelle RDPR.
EXPORTING
I_OPCODE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_RDPRF = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_WERKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_RDMPO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_BUFFER_ON = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_READ_WITH_BUFFER = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_BUFFER_SIZE = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
E_T_RDPR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NO_ENTRY_FOUND = 1 INVALID_OPCODE = 2 BAD_PARAMS = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLMDR1_001 User Exit for Removing Invalid UN decimal Points
EXIT_SAPLMDR1_002 User Exit for Defining Allowed Units of Measure
EXIT_SAPLMDR1_003 User Exit for Implementing Customer-Specific Method of Rounding
EXIT_SAPLMDR1_004 User Exit for Customer-Specific Correction of Rounding Result
EXIT_SAPLMDR1_005 User Exit for Customer-Specific Correction of Rounding Parameters
IMPORTING Parameters details for MD_RDPR_READ
I_OPCODE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: SY-INPUTOptional: No
Call by Reference: No ( called with pass by value option)
I_RDPRF - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RDPR-RDPRFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RDPR-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RDMPO - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RDPR-RDMPOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUFFER_ON - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_WITH_BUFFER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUFFER_SIZE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MD_RDPR_READ
E_T_RDPR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RDPROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_OPCODE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_PARAMS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MD_RDPR_READ 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: | ||||
| lt_e_t_rdpr | TYPE STANDARD TABLE OF RDPR, " | |||
| lv_i_opcode | TYPE SY-INPUT, " | |||
| lv_no_entry_found | TYPE SY, " | |||
| lv_i_rdprf | TYPE RDPR-RDPRF, " | |||
| lv_invalid_opcode | TYPE RDPR, " | |||
| lv_i_werks | TYPE RDPR-WERKS, " | |||
| lv_bad_params | TYPE RDPR, " | |||
| lv_i_rdmpo | TYPE RDPR-RDMPO, " | |||
| lv_i_buffer_on | TYPE C, " 'X' | |||
| lv_i_read_with_buffer | TYPE C, " 'X' | |||
| lv_i_buffer_size | TYPE INT4. " 0 |
|   CALL FUNCTION 'MD_RDPR_READ' "NOTRANSL: Lesen von Rundungsprofilen aus der Tabelle RDPR |
| EXPORTING | ||
| I_OPCODE | = lv_i_opcode | |
| I_RDPRF | = lv_i_rdprf | |
| I_WERKS | = lv_i_werks | |
| I_RDMPO | = lv_i_rdmpo | |
| I_BUFFER_ON | = lv_i_buffer_on | |
| I_READ_WITH_BUFFER | = lv_i_read_with_buffer | |
| I_BUFFER_SIZE | = lv_i_buffer_size | |
| TABLES | ||
| E_T_RDPR | = lt_e_t_rdpr | |
| EXCEPTIONS | ||
| NO_ENTRY_FOUND = 1 | ||
| INVALID_OPCODE = 2 | ||
| BAD_PARAMS = 3 | ||
| . " MD_RDPR_READ | ||
ABAP code using 7.40 inline data declarations to call FM MD_RDPR_READ
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 INPUT FROM SY INTO @DATA(ld_i_opcode). | ||||
| "SELECT single RDPRF FROM RDPR INTO @DATA(ld_i_rdprf). | ||||
| "SELECT single WERKS FROM RDPR INTO @DATA(ld_i_werks). | ||||
| "SELECT single RDMPO FROM RDPR INTO @DATA(ld_i_rdmpo). | ||||
| DATA(ld_i_buffer_on) | = 'X'. | |||
| DATA(ld_i_read_with_buffer) | = 'X'. | |||
Search for further information about these or an SAP related objects