SAP MM_ARRANG_QUANTITY_CONVERSION Function Module for NOTRANSL: Mengeneinheitenumrechnung über Infosatz, Materialstamm, Dimensio
MM_ARRANG_QUANTITY_CONVERSION is a standard mm arrang quantity conversion 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: Mengeneinheitenumrechnung über Infosatz, Materialstamm, Dimensio 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 mm arrang quantity conversion FM, simply by entering the name MM_ARRANG_QUANTITY_CONVERSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: WN05
Program Name: SAPLWN05
Main Program: SAPLWN05
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MM_ARRANG_QUANTITY_CONVERSION 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 'MM_ARRANG_QUANTITY_CONVERSION'"NOTRANSL: Mengeneinheitenumrechnung über Infosatz, Materialstamm, Dimensio.
EXPORTING
* I_VARIABLE_KEY = "
* I_CHARGE = "Batch Number
* I_WERKS = "Plant
* I_LIFNR = "
* I_INFNR = "
* I_MATNR = "
* I_EXTENDED_CONV = "
* I_QUANTITIES = "
I_SOURCE_VALUE = "
I_SOURCE_UNIT = "
I_TARGET_UNIT = "
IMPORTING
E_TARGET_VALUE = "
E_KUMZA = "
E_KUMNE = "Conversion Factor Denominator
E_LAST_ERR_MSG = "
EXCEPTIONS
INVALID_CONDITION_TABLE = 1 QUANTITY_CONVERSION = 2 INVALID_INPUT_DATA = 3
IMPORTING Parameters details for MM_ARRANG_QUANTITY_CONVERSION
I_VARIABLE_KEY -
Data type: VAKEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHARGE - Batch Number
Data type: CHARG_DOptional: Yes
Call by Reference: Yes
I_WERKS - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: Yes
I_LIFNR -
Data type: MCEKKO-LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_INFNR -
Data type: MCEKPO-INFNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR -
Data type: MCEKPO-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXTENDED_CONV -
Data type: KONP-KRECHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QUANTITIES -
Data type: RWM07Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SOURCE_VALUE -
Data type: POptional: No
Call by Reference: No ( called with pass by value option)
I_SOURCE_UNIT -
Data type: MARA-MEINSOptional: No
Call by Reference: No ( called with pass by value option)
I_TARGET_UNIT -
Data type: MARA-MEINSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MM_ARRANG_QUANTITY_CONVERSION
E_TARGET_VALUE -
Data type: POptional: No
Call by Reference: No ( called with pass by value option)
E_KUMZA -
Data type: KOMV-KUMZAOptional: No
Call by Reference: No ( called with pass by value option)
E_KUMNE - Conversion Factor Denominator
Data type: KOMV-KUMNEOptional: No
Call by Reference: No ( called with pass by value option)
E_LAST_ERR_MSG -
Data type: ARRANG_ERROptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_CONDITION_TABLE - Condition table not defined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
QUANTITY_CONVERSION - Conversion not possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_INPUT_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MM_ARRANG_QUANTITY_CONVERSION 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_target_value | TYPE P, " | |||
| lv_i_variable_key | TYPE VAKE, " | |||
| lv_invalid_condition_table | TYPE VAKE, " | |||
| lv_i_charge | TYPE CHARG_D, " | |||
| lv_i_werks | TYPE WERKS_D, " | |||
| lv_e_kumza | TYPE KOMV-KUMZA, " | |||
| lv_i_lifnr | TYPE MCEKKO-LIFNR, " | |||
| lv_quantity_conversion | TYPE MCEKKO, " | |||
| lv_e_kumne | TYPE KOMV-KUMNE, " | |||
| lv_i_infnr | TYPE MCEKPO-INFNR, " | |||
| lv_invalid_input_data | TYPE MCEKPO, " | |||
| lv_i_matnr | TYPE MCEKPO-MATNR, " | |||
| lv_e_last_err_msg | TYPE ARRANG_ERR, " | |||
| lv_i_extended_conv | TYPE KONP-KRECH, " | |||
| lv_i_quantities | TYPE RWM07, " | |||
| lv_i_source_value | TYPE P, " | |||
| lv_i_source_unit | TYPE MARA-MEINS, " | |||
| lv_i_target_unit | TYPE MARA-MEINS. " |
|   CALL FUNCTION 'MM_ARRANG_QUANTITY_CONVERSION' "NOTRANSL: Mengeneinheitenumrechnung über Infosatz, Materialstamm, Dimensio |
| EXPORTING | ||
| I_VARIABLE_KEY | = lv_i_variable_key | |
| I_CHARGE | = lv_i_charge | |
| I_WERKS | = lv_i_werks | |
| I_LIFNR | = lv_i_lifnr | |
| I_INFNR | = lv_i_infnr | |
| I_MATNR | = lv_i_matnr | |
| I_EXTENDED_CONV | = lv_i_extended_conv | |
| I_QUANTITIES | = lv_i_quantities | |
| I_SOURCE_VALUE | = lv_i_source_value | |
| I_SOURCE_UNIT | = lv_i_source_unit | |
| I_TARGET_UNIT | = lv_i_target_unit | |
| IMPORTING | ||
| E_TARGET_VALUE | = lv_e_target_value | |
| E_KUMZA | = lv_e_kumza | |
| E_KUMNE | = lv_e_kumne | |
| E_LAST_ERR_MSG | = lv_e_last_err_msg | |
| EXCEPTIONS | ||
| INVALID_CONDITION_TABLE = 1 | ||
| QUANTITY_CONVERSION = 2 | ||
| INVALID_INPUT_DATA = 3 | ||
| . " MM_ARRANG_QUANTITY_CONVERSION | ||
ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_QUANTITY_CONVERSION
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 KUMZA FROM KOMV INTO @DATA(ld_e_kumza). | ||||
| "SELECT single LIFNR FROM MCEKKO INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single KUMNE FROM KOMV INTO @DATA(ld_e_kumne). | ||||
| "SELECT single INFNR FROM MCEKPO INTO @DATA(ld_i_infnr). | ||||
| "SELECT single MATNR FROM MCEKPO INTO @DATA(ld_i_matnr). | ||||
| "SELECT single KRECH FROM KONP INTO @DATA(ld_i_extended_conv). | ||||
| "SELECT single MEINS FROM MARA INTO @DATA(ld_i_source_unit). | ||||
| "SELECT single MEINS FROM MARA INTO @DATA(ld_i_target_unit). | ||||
Search for further information about these or an SAP related objects