SAP ME_CONVERSION_BPRME Function Module for NOTRANSL: Ermittlung von Konditionsumrechnungsfaktoren im RM









ME_CONVERSION_BPRME is a standard me conversion bprme 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: Ermittlung von Konditionsumrechnungsfaktoren im RM 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 me conversion bprme FM, simply by entering the name ME_CONVERSION_BPRME into the relevant SAP transaction such as SE37 or SE38.

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



Function ME_CONVERSION_BPRME 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 'ME_CONVERSION_BPRME'"NOTRANSL: Ermittlung von Konditionsumrechnungsfaktoren im RM
EXPORTING
* I_KUMNE = 0 "
* I_CHARGE = "Batch Number
* I_WERKS = "Plant
* I_KUMZA = 0 "
* I_MATNR = ' ' "
I_MEIN1 = "
I_MEIN2 = "
* I_MEINS = ' ' "
* I_UMREN = 0 "
* I_UMREZ = 0 "
* I_MENGE = "Purchase Order Quantity

IMPORTING
KUMNE = "
KUMZA = "
MENGE = "Purchase Order Quantity

EXCEPTIONS
ERROR_IN_CONVERSION = 1 NO_SUCCESS = 2
.




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_SAPLMEKO_001 Extend Communication Structure KOMK for Pricing
EXIT_SAPLMEKO_002 Extend Communication Structure KOMP for Pricing

IMPORTING Parameters details for ME_CONVERSION_BPRME

I_KUMNE -

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

I_CHARGE - Batch Number

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

I_WERKS - Plant

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

I_KUMZA -

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

I_MATNR -

Data type: EKPO-MATNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MEIN1 -

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

I_MEIN2 -

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

I_MEINS -

Data type: EKPO-LMEIN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UMREN -

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

I_UMREZ -

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

I_MENGE - Purchase Order Quantity

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

EXPORTING Parameters details for ME_CONVERSION_BPRME

KUMNE -

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

KUMZA -

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

MENGE - Purchase Order Quantity

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

EXCEPTIONS details

ERROR_IN_CONVERSION -

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

NO_SUCCESS -

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

Copy and paste ABAP code example for ME_CONVERSION_BPRME 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_kumne  TYPE EKPO-BPUMN, "   
lv_i_kumne  TYPE EKPO-BPUMN, "   0
lv_error_in_conversion  TYPE EKPO, "   
lv_i_charge  TYPE MCHA-CHARG, "   
lv_i_werks  TYPE MARC-WERKS, "   
lv_kumza  TYPE EKPO-BPUMZ, "   
lv_i_kumza  TYPE EKPO-BPUMZ, "   0
lv_no_success  TYPE EKPO, "   
lv_menge  TYPE EKPO-MENGE, "   
lv_i_matnr  TYPE EKPO-MATNR, "   SPACE
lv_i_mein1  TYPE EKPO-MEINS, "   
lv_i_mein2  TYPE EKPO-BPRME, "   
lv_i_meins  TYPE EKPO-LMEIN, "   SPACE
lv_i_umren  TYPE EKPO-UMREN, "   0
lv_i_umrez  TYPE EKPO-UMREZ, "   0
lv_i_menge  TYPE EKPO-MENGE. "   

  CALL FUNCTION 'ME_CONVERSION_BPRME'  "NOTRANSL: Ermittlung von Konditionsumrechnungsfaktoren im RM
    EXPORTING
         I_KUMNE = lv_i_kumne
         I_CHARGE = lv_i_charge
         I_WERKS = lv_i_werks
         I_KUMZA = lv_i_kumza
         I_MATNR = lv_i_matnr
         I_MEIN1 = lv_i_mein1
         I_MEIN2 = lv_i_mein2
         I_MEINS = lv_i_meins
         I_UMREN = lv_i_umren
         I_UMREZ = lv_i_umrez
         I_MENGE = lv_i_menge
    IMPORTING
         KUMNE = lv_kumne
         KUMZA = lv_kumza
         MENGE = lv_menge
    EXCEPTIONS
        ERROR_IN_CONVERSION = 1
        NO_SUCCESS = 2
. " ME_CONVERSION_BPRME




ABAP code using 7.40 inline data declarations to call FM ME_CONVERSION_BPRME

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 BPUMN FROM EKPO INTO @DATA(ld_kumne).
 
"SELECT single BPUMN FROM EKPO INTO @DATA(ld_i_kumne).
 
 
"SELECT single CHARG FROM MCHA INTO @DATA(ld_i_charge).
 
"SELECT single WERKS FROM MARC INTO @DATA(ld_i_werks).
 
"SELECT single BPUMZ FROM EKPO INTO @DATA(ld_kumza).
 
"SELECT single BPUMZ FROM EKPO INTO @DATA(ld_i_kumza).
 
 
"SELECT single MENGE FROM EKPO INTO @DATA(ld_menge).
 
"SELECT single MATNR FROM EKPO INTO @DATA(ld_i_matnr).
DATA(ld_i_matnr) = ' '.
 
"SELECT single MEINS FROM EKPO INTO @DATA(ld_i_mein1).
 
"SELECT single BPRME FROM EKPO INTO @DATA(ld_i_mein2).
 
"SELECT single LMEIN FROM EKPO INTO @DATA(ld_i_meins).
DATA(ld_i_meins) = ' '.
 
"SELECT single UMREN FROM EKPO INTO @DATA(ld_i_umren).
 
"SELECT single UMREZ FROM EKPO INTO @DATA(ld_i_umrez).
 
"SELECT single MENGE FROM EKPO INTO @DATA(ld_i_menge).
 


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!