SAP ME_PRICING_CONTRACT Function Module for NOTRANSL: Preisermittlung beim Kontrakt
ME_PRICING_CONTRACT is a standard me pricing contract 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: Preisermittlung beim Kontrakt 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 pricing contract FM, simply by entering the name ME_PRICING_CONTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEPR
Program Name: SAPLMEPR
Main Program: SAPLMEPR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ME_PRICING_CONTRACT 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_PRICING_CONTRACT'"NOTRANSL: Preisermittlung beim Kontrakt.
EXPORTING
* BEZUGS = ' ' "
* ZTERM = ' ' "
* I_SICUO = "
* INPREISSIM = ' ' "Input for Price Simulation in Purchasing
* DIALOG = ' ' "
* EFFEKTIV = ' ' "
KOPF = "
* MATERIAL = ' ' "
* ONLY_CONTRACT = ' ' "
POSITION = "
* SIMULATION = ' ' "
* SKONTO = ' ' "
IMPORTING
PREISK = "
PREISP = "
TABLES
* ELEMENTE = "Price Elements for Product Costing
IMPORTING Parameters details for ME_PRICING_CONTRACT
BEZUGS -
Data type: RM06I-PSBEZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ZTERM -
Data type: LFM1-ZTERMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SICUO -
Data type: EKPO-CUOBJOptional: Yes
Call by Reference: No ( called with pass by value option)
INPREISSIM - Input for Price Simulation in Purchasing
Data type: MEPRIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EFFEKTIV -
Data type: RM06I-PSEFFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOPF -
Data type: EKKOOptional: No
Call by Reference: No ( called with pass by value option)
MATERIAL -
Data type: MT06EDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_CONTRACT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POSITION -
Data type: EKPOOptional: No
Call by Reference: No ( called with pass by value option)
SIMULATION -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SKONTO -
Data type: RM06I-PSSKODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ME_PRICING_CONTRACT
PREISK -
Data type: KOMKOptional: No
Call by Reference: No ( called with pass by value option)
PREISP -
Data type: KOMPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ME_PRICING_CONTRACT
ELEMENTE - Price Elements for Product Costing
Data type: MEPRTABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ME_PRICING_CONTRACT 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_bezugs | TYPE RM06I-PSBEZ, " SPACE | |||
| lv_preisk | TYPE KOMK, " | |||
| lt_elemente | TYPE STANDARD TABLE OF MEPRTAB, " | |||
| lv_zterm | TYPE LFM1-ZTERM, " SPACE | |||
| lv_i_sicuo | TYPE EKPO-CUOBJ, " | |||
| lv_inpreissim | TYPE MEPRI, " SPACE | |||
| lv_dialog | TYPE MEPRI, " SPACE | |||
| lv_preisp | TYPE KOMP, " | |||
| lv_effektiv | TYPE RM06I-PSEFF, " SPACE | |||
| lv_kopf | TYPE EKKO, " | |||
| lv_material | TYPE MT06E, " SPACE | |||
| lv_only_contract | TYPE MT06E, " SPACE | |||
| lv_position | TYPE EKPO, " | |||
| lv_simulation | TYPE EKPO, " SPACE | |||
| lv_skonto | TYPE RM06I-PSSKO. " SPACE |
|   CALL FUNCTION 'ME_PRICING_CONTRACT' "NOTRANSL: Preisermittlung beim Kontrakt |
| EXPORTING | ||
| BEZUGS | = lv_bezugs | |
| ZTERM | = lv_zterm | |
| I_SICUO | = lv_i_sicuo | |
| INPREISSIM | = lv_inpreissim | |
| DIALOG | = lv_dialog | |
| EFFEKTIV | = lv_effektiv | |
| KOPF | = lv_kopf | |
| MATERIAL | = lv_material | |
| ONLY_CONTRACT | = lv_only_contract | |
| POSITION | = lv_position | |
| SIMULATION | = lv_simulation | |
| SKONTO | = lv_skonto | |
| IMPORTING | ||
| PREISK | = lv_preisk | |
| PREISP | = lv_preisp | |
| TABLES | ||
| ELEMENTE | = lt_elemente | |
| . " ME_PRICING_CONTRACT | ||
ABAP code using 7.40 inline data declarations to call FM ME_PRICING_CONTRACT
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 PSBEZ FROM RM06I INTO @DATA(ld_bezugs). | ||||
| DATA(ld_bezugs) | = ' '. | |||
| "SELECT single ZTERM FROM LFM1 INTO @DATA(ld_zterm). | ||||
| DATA(ld_zterm) | = ' '. | |||
| "SELECT single CUOBJ FROM EKPO INTO @DATA(ld_i_sicuo). | ||||
| DATA(ld_inpreissim) | = ' '. | |||
| DATA(ld_dialog) | = ' '. | |||
| "SELECT single PSEFF FROM RM06I INTO @DATA(ld_effektiv). | ||||
| DATA(ld_effektiv) | = ' '. | |||
| DATA(ld_material) | = ' '. | |||
| DATA(ld_only_contract) | = ' '. | |||
| DATA(ld_simulation) | = ' '. | |||
| "SELECT single PSSKO FROM RM06I INTO @DATA(ld_skonto). | ||||
| DATA(ld_skonto) | = ' '. | |||
Search for further information about these or an SAP related objects