SAP MM_ARRANG_BONUSBASIS_PURCH_ORD Function Module for NOTRANSL: Bonusbasis (wertmaessig) aus Einkaufsbelegposition bestimmen









MM_ARRANG_BONUSBASIS_PURCH_ORD is a standard mm arrang bonusbasis purch ord 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: Bonusbasis (wertmaessig) aus Einkaufsbelegposition bestimmen 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 bonusbasis purch ord FM, simply by entering the name MM_ARRANG_BONUSBASIS_PURCH_ORD into the relevant SAP transaction such as SE37 or SE38.

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



Function MM_ARRANG_BONUSBASIS_PURCH_ORD 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_BONUSBASIS_PURCH_ORD'"NOTRANSL: Bonusbasis (wertmaessig) aus Einkaufsbelegposition bestimmen
EXPORTING
I_EKKO = "Purchasing Document: Header
I_EKPO = "Purchasing Document: Item
I_MCEKBE = "Purchase Order History
* I_CONDITION_RECORD = "Condition Record
* I_LFA1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_LFM1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_T001 = "Company Code (Optional)
* I_T001W = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_SUPKZ = '2' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
E_KOMP_BONBA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_KOMP_RUWRT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_KOMP_WAERS = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
T_KOMV = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_ERROR_MESSAGES = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
ERROR_KOMK_KOMP_FILL = 1 ERROR_CALC_RULE = 2
.



IMPORTING Parameters details for MM_ARRANG_BONUSBASIS_PURCH_ORD

I_EKKO - Purchasing Document: Header

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

I_EKPO - Purchasing Document: Item

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

I_MCEKBE - Purchase Order History

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

I_CONDITION_RECORD - Condition Record

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

I_LFA1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_LFM1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_T001 - Company Code (Optional)

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

I_T001W - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_SUPKZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCEKKOB-SUPKZ
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MM_ARRANG_BONUSBASIS_PURCH_ORD

E_KOMP_BONBA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_KOMP_RUWRT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_KOMP_WAERS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for MM_ARRANG_BONUSBASIS_PURCH_ORD

T_KOMV - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_ERROR_MESSAGES - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

ERROR_KOMK_KOMP_FILL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_CALC_RULE - 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 MM_ARRANG_BONUSBASIS_PURCH_ORD 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_i_ekko  TYPE EKKO, "   
lt_t_komv  TYPE STANDARD TABLE OF KOMV, "   
lv_e_komp_bonba  TYPE KOMP-BONBA, "   
lv_error_komk_komp_fill  TYPE KOMP, "   
lv_i_ekpo  TYPE EKPO, "   
lv_e_komp_ruwrt  TYPE KOMV-KWERT, "   
lv_error_calc_rule  TYPE KOMV, "   
lt_t_error_messages  TYPE STANDARD TABLE OF ARRANG_ERR, "   
lv_i_mcekbe  TYPE MCEKBE, "   
lv_e_komp_waers  TYPE MCKONA-WAERS, "   
lv_i_condition_record  TYPE KONP, "   
lv_i_lfa1  TYPE LFA1, "   
lv_i_lfm1  TYPE LFM1, "   
lv_i_t001  TYPE T001, "   
lv_i_t001w  TYPE T001W, "   
lv_i_supkz  TYPE MCEKKOB-SUPKZ. "   '2'

  CALL FUNCTION 'MM_ARRANG_BONUSBASIS_PURCH_ORD'  "NOTRANSL: Bonusbasis (wertmaessig) aus Einkaufsbelegposition bestimmen
    EXPORTING
         I_EKKO = lv_i_ekko
         I_EKPO = lv_i_ekpo
         I_MCEKBE = lv_i_mcekbe
         I_CONDITION_RECORD = lv_i_condition_record
         I_LFA1 = lv_i_lfa1
         I_LFM1 = lv_i_lfm1
         I_T001 = lv_i_t001
         I_T001W = lv_i_t001w
         I_SUPKZ = lv_i_supkz
    IMPORTING
         E_KOMP_BONBA = lv_e_komp_bonba
         E_KOMP_RUWRT = lv_e_komp_ruwrt
         E_KOMP_WAERS = lv_e_komp_waers
    TABLES
         T_KOMV = lt_t_komv
         T_ERROR_MESSAGES = lt_t_error_messages
    EXCEPTIONS
        ERROR_KOMK_KOMP_FILL = 1
        ERROR_CALC_RULE = 2
. " MM_ARRANG_BONUSBASIS_PURCH_ORD




ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_BONUSBASIS_PURCH_ORD

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 BONBA FROM KOMP INTO @DATA(ld_e_komp_bonba).
 
 
 
"SELECT single KWERT FROM KOMV INTO @DATA(ld_e_komp_ruwrt).
 
 
 
 
"SELECT single WAERS FROM MCKONA INTO @DATA(ld_e_komp_waers).
 
 
 
 
 
 
"SELECT single SUPKZ FROM MCEKKOB INTO @DATA(ld_i_supkz).
DATA(ld_i_supkz) = '2'.
 


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!