SAP ME_READ_COND_INVOICE Function Module for NOTRANSL: Bezugsnebenkosten für Rechnungsprüfung (Liste)









ME_READ_COND_INVOICE is a standard me read cond invoice 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: Bezugsnebenkosten für Rechnungsprüfung (Liste) 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 read cond invoice FM, simply by entering the name ME_READ_COND_INVOICE into the relevant SAP transaction such as SE37 or SE38.

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



Function ME_READ_COND_INVOICE 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_READ_COND_INVOICE'"NOTRANSL: Bezugsnebenkosten für Rechnungsprüfung (Liste)
EXPORTING
* I_BUDAT = "Posting date
* I_EKKI = 'X' "
* I_BUBIS = "
* RE_WWERT = "
* XEK08B_FLAG = "
* I_BELNR = "
* I_BUZEI = "
* I_READ_KRUEK = ' ' "
* I_DISPLAY = ' ' "Display only
* I_EKBE_KEY = "Structure for Accessing a Document in Table EKBE
* PARKED_INV_KEY = "Document Header Incoming Invoice - Key Fields
* I_EBELN = ' ' "Purchasing document
* I_EBELP = '00000' "Purchase document item
* I_FRBNR = ' ' "Bill of lading
I_LIFNR = "Vendor
* I_XBLNR = ' ' "External document number
* RE_KURSF = "Exchange Rate
* RE_WAERS = "Invoice currency
* I_RESWK = ' ' "

TABLES
* XEK08BN = "Table of delivery costs records
* XEK08BN_CURR = "
* XEK08BN_ITEM = "Deliv.Costs for Invoice Verif.(Totals Recs for MultAcctAsgt)

EXCEPTIONS
ENQUEUE_FAILED = 1
.




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_SAPLEINR_001 Calculation of Default GR Quantity and Over-/Underdelivery Tolerance
EXIT_SAPLEINR_002 Adopt Batch Numbers from Shipping Notification When Posting Goods Receipt
EXIT_SAPLEINR_003 Adjustm. of Qty. and Date for Price Determination, GR Against Sched. Agmt.
EXIT_SAPLEINR_004 Determine Earliest Delivery Date, GR Check (PO Only)
EXIT_SAPLEINR_400 Exit for IS-Oil re-pricing at MM Invoice Verification

IMPORTING Parameters details for ME_READ_COND_INVOICE

I_BUDAT - Posting date

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

I_EKKI -

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

I_BUBIS -

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

RE_WWERT -

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

XEK08B_FLAG -

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

I_BELNR -

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

I_BUZEI -

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

I_READ_KRUEK -

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

I_DISPLAY - Display only

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

I_EKBE_KEY - Structure for Accessing a Document in Table EKBE

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

PARKED_INV_KEY - Document Header Incoming Invoice - Key Fields

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

I_EBELN - Purchasing document

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

I_EBELP - Purchase document item

Data type: EK08B-EBELP
Default: '00000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FRBNR - Bill of lading

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

I_LIFNR - Vendor

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

I_XBLNR - External document number

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

RE_KURSF - Exchange Rate

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

RE_WAERS - Invoice currency

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

I_RESWK -

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

TABLES Parameters details for ME_READ_COND_INVOICE

XEK08BN - Table of delivery costs records

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

XEK08BN_CURR -

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

XEK08BN_ITEM - Deliv.Costs for Invoice Verif.(Totals Recs for MultAcctAsgt)

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

EXCEPTIONS details

ENQUEUE_FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ME_READ_COND_INVOICE 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_budat  TYPE EKBE-BUDAT, "   
lt_xek08bn  TYPE STANDARD TABLE OF EK08BN, "   
lv_enqueue_failed  TYPE EK08BN, "   
lv_i_ekki  TYPE EK08BN, "   'X'
lv_i_bubis  TYPE BKPF-BUDAT, "   
lv_re_wwert  TYPE BKPF-WWERT, "   
lv_xek08b_flag  TYPE BKPF, "   
lv_i_belnr  TYPE EKBZ-BELNR, "   
lv_i_buzei  TYPE EKBZ-BUZEI, "   
lv_i_read_kruek  TYPE BOOLE-BOOLE, "   SPACE
lv_i_display  TYPE BOOLE, "   SPACE
lv_i_ekbe_key  TYPE EKBE_KEY_DOCUMENT, "   
lv_parked_inv_key  TYPE RBKP_KEY, "   
lv_i_ebeln  TYPE EK08B-EBELN, "   SPACE
lt_xek08bn_curr  TYPE STANDARD TABLE OF MMCR_XEK08BN, "   
lv_i_ebelp  TYPE EK08B-EBELP, "   '00000'
lt_xek08bn_item  TYPE STANDARD TABLE OF EK08BN_ITEM, "   
lv_i_frbnr  TYPE EK08B-FRBNR, "   SPACE
lv_i_lifnr  TYPE LFA1-LIFNR, "   
lv_i_xblnr  TYPE EK08B-XBLNR, "   SPACE
lv_re_kursf  TYPE BKPF-KURSF, "   
lv_re_waers  TYPE BKPF-WAERS, "   
lv_i_reswk  TYPE EKKO-RESWK. "   SPACE

  CALL FUNCTION 'ME_READ_COND_INVOICE'  "NOTRANSL: Bezugsnebenkosten für Rechnungsprüfung (Liste)
    EXPORTING
         I_BUDAT = lv_i_budat
         I_EKKI = lv_i_ekki
         I_BUBIS = lv_i_bubis
         RE_WWERT = lv_re_wwert
         XEK08B_FLAG = lv_xek08b_flag
         I_BELNR = lv_i_belnr
         I_BUZEI = lv_i_buzei
         I_READ_KRUEK = lv_i_read_kruek
         I_DISPLAY = lv_i_display
         I_EKBE_KEY = lv_i_ekbe_key
         PARKED_INV_KEY = lv_parked_inv_key
         I_EBELN = lv_i_ebeln
         I_EBELP = lv_i_ebelp
         I_FRBNR = lv_i_frbnr
         I_LIFNR = lv_i_lifnr
         I_XBLNR = lv_i_xblnr
         RE_KURSF = lv_re_kursf
         RE_WAERS = lv_re_waers
         I_RESWK = lv_i_reswk
    TABLES
         XEK08BN = lt_xek08bn
         XEK08BN_CURR = lt_xek08bn_curr
         XEK08BN_ITEM = lt_xek08bn_item
    EXCEPTIONS
        ENQUEUE_FAILED = 1
. " ME_READ_COND_INVOICE




ABAP code using 7.40 inline data declarations to call FM ME_READ_COND_INVOICE

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 BUDAT FROM EKBE INTO @DATA(ld_i_budat).
 
 
 
DATA(ld_i_ekki) = 'X'.
 
"SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_bubis).
 
"SELECT single WWERT FROM BKPF INTO @DATA(ld_re_wwert).
 
 
"SELECT single BELNR FROM EKBZ INTO @DATA(ld_i_belnr).
 
"SELECT single BUZEI FROM EKBZ INTO @DATA(ld_i_buzei).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_read_kruek).
DATA(ld_i_read_kruek) = ' '.
 
DATA(ld_i_display) = ' '.
 
 
 
"SELECT single EBELN FROM EK08B INTO @DATA(ld_i_ebeln).
DATA(ld_i_ebeln) = ' '.
 
 
"SELECT single EBELP FROM EK08B INTO @DATA(ld_i_ebelp).
DATA(ld_i_ebelp) = '00000'.
 
 
"SELECT single FRBNR FROM EK08B INTO @DATA(ld_i_frbnr).
DATA(ld_i_frbnr) = ' '.
 
"SELECT single LIFNR FROM LFA1 INTO @DATA(ld_i_lifnr).
 
"SELECT single XBLNR FROM EK08B INTO @DATA(ld_i_xblnr).
DATA(ld_i_xblnr) = ' '.
 
"SELECT single KURSF FROM BKPF INTO @DATA(ld_re_kursf).
 
"SELECT single WAERS FROM BKPF INTO @DATA(ld_re_waers).
 
"SELECT single RESWK FROM EKKO INTO @DATA(ld_i_reswk).
DATA(ld_i_reswk) = ' '.
 


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!