SAP EXIT_SAPLMDR1_003 Function Module for User Exit for Implementing Customer-Specific Method of Rounding









EXIT_SAPLMDR1_003 is a standard exit saplmdr1 003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exit for Implementing Customer-Specific Method of Rounding 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 exit saplmdr1 003 FM, simply by entering the name EXIT_SAPLMDR1_003 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XMDR1
Program Name: SAPLXMDR1
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLMDR1_003 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 'EXIT_SAPLMDR1_003'"User Exit for Implementing Customer-Specific Method of Rounding
EXPORTING
I_S_GENERAL = "General Input Structure

CHANGING
* CH_S_RESULTS = "Rounding Parameters with Rounding Result

TABLES
* CH_T_QT_UNITS = "Allowed Unit of Measure
* CH_T_ROUND_REASONS = "Reasons for Rounding

EXCEPTIONS
ERROR = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
F4_ALLOWED_QUANTITY_UNIT NOTRANSL: F4-Hilfe für die Bestimmung der erlaubten ME
F4_ORDER_QUANTITY NOTRANSL: F4-Hilfe zur Bestellmenge incl. Rundung in Alternativ-ME's
F4_RDPR_RDPRF NOTRANSL: F4-Hilfe zum Rundungsprofil incl. Werksübernahme
F4_RDPR_WERKS NOTRANSL: F4-Hilfe zum Werk, dem ein Rundungsprofil zugeordnet ist
MDR1_DETERMINE_ROUND_PARAMS Definition of Rounding Parameters
MDR1_SIMU_ROUNDING NOTRANSL: Anwendungsabhängig- und unabhängige Simulation von Rundungsprofi
MD_ALLOWED_QUANTITY_UNIT NOTRANSL: Bestimmung der erlaubten Mengeneinheiten
MD_CONVERT_MATERIAL_UNIT NOTRANSL: Wandelt Menge von Quellmengeeinheit in Zielmengeneinheit für Mat
MD_CONV_QUANTITY_FLOAT_TO_PACK NOTRANSL: Convert floating point to packed decimal
MD_CONV_QUANTITY_PACK_TO_FLOAT NOTRANSL: Convert pack to floating point
MD_CUSTOMIZING_READ NOTRANSL: Tabellen RCTR und RCPR werden gelesen
MD_EINZELRUNDUNG NOTRANSL: ALT(Bitte, neuen FB: MD_SINGLE_ROUNDING benutzen)
MD_PURPAR_DETERMINE NOTRANSL: Bestimmung der Rundungsparamter zum Einkauf
MD_RDPR_READ NOTRANSL: Lesen von Rundungsprofilen aus der Tabelle RDPR
MD_RDTX_READ NOTRANSL: Lesen der sprachabhängigen Rundungsprofilkurzteste aus RDTX
MD_RM_INVALID_DECI_PLACE NOTRANSL: Enferne nicht gültige Mengeneinheits-Dezimalstellen
MD_ROUNDING_VALUE NOTRANSL: Führe die Rundung mit Hilfe eines Rundungswerts durch
MD_SIMU_DYN_RUND_PROFIL NOTRANSL: Ein- und Ausgabe-Popups für die Simulation von Rundungsprofilen
MD_SINGLE_ROUNDING NOTRANSL: Mengeneinheitenoptimierung und Rundung auf logist. Einheiten

IMPORTING Parameters details for EXIT_SAPLMDR1_003

I_S_GENERAL - General Input Structure

Data type: MDR1P_S_IN_SINGLE_ROUND
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EXIT_SAPLMDR1_003

CH_S_RESULTS - Rounding Parameters with Rounding Result

Data type: MDR1P_S_OUT_SINGLE_ROUND
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for EXIT_SAPLMDR1_003

CH_T_QT_UNITS - Allowed Unit of Measure

Data type: MDR1P_T_OUT_ALLOWED_QT_UNIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CH_T_ROUND_REASONS - Reasons for Rounding

Data type: MDR1P_T_RUNDUNGSGRUND
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR - Error with Error Message

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLMDR1_003 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_error  TYPE STRING, "   
lv_i_s_general  TYPE MDR1P_S_IN_SINGLE_ROUND, "   
lv_ch_s_results  TYPE MDR1P_S_OUT_SINGLE_ROUND, "   
lt_ch_t_qt_units  TYPE STANDARD TABLE OF MDR1P_T_OUT_ALLOWED_QT_UNIT, "   
lt_ch_t_round_reasons  TYPE STANDARD TABLE OF MDR1P_T_RUNDUNGSGRUND. "   

  CALL FUNCTION 'EXIT_SAPLMDR1_003'  "User Exit for Implementing Customer-Specific Method of Rounding
    EXPORTING
         I_S_GENERAL = lv_i_s_general
    CHANGING
         CH_S_RESULTS = lv_ch_s_results
    TABLES
         CH_T_QT_UNITS = lt_ch_t_qt_units
         CH_T_ROUND_REASONS = lt_ch_t_round_reasons
    EXCEPTIONS
        ERROR = 1
. " EXIT_SAPLMDR1_003




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLMDR1_003

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!