SAP Tables

BAPI_ACC_INVOICE_RECEIPT_CHECK SAP Function module - Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)




BAPI_ACC_INVOICE_RECEIPT_CHECKis a standard SAP function module available within R/3 SAPsystems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import/export parameters, exceptions etc as well as any documentation contributions specific to the object. See here to view full function module documentation and code listing, simply by entering the name BAPI_ACC_INVOICE_RECEIPT_CHECK into the relevant SAP transaction such as SE37 or SE80.

Contribute (Add Comments)
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_ACC_INVOICE_RECEIPT_CHECK or its description.


Pattern for FM BAPI_ACC_INVOICE_RECEIPT_CHECK - BAPI ACC INVOICE RECEIPT CHECK
Associated Function Group: ACC4
Released Date: 17.09.1997
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK' "Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
  EXPORTING
    documentheader =            " bapiache03    Document Header
  TABLES
    accountpayable =            " bapiacap03    Vendor Line Items
    accountgl =                 " bapiacgl03    G/L Account Line Items
    accounttax =                " bapiactx01    Tax Line Items
*   currencyamount =            " bapiaccr01    Line Item Currency Fields
*   purchaseorder =             " bapiacpo00    Purchase Order Line Items
*   purchaseamount =            " bapiaccrpo    Purchase Order Currency Fields
    return =                    " bapiret2      Return Parameter
*   criteria =                  " bapiackecr    CO-PA Characteristics
*   valuefield =                " bapiackeva    CO-PA Value Components
*   extension1 =                " bapiextc      Table for Customer Enhancement
    .  "  BAPI_ACC_INVOICE_RECEIPT_CHECK

ABAP code example for Function Module BAPI_ACC_INVOICE_RECEIPT_CHECK

The ABAP code below is a full code listing to execute function module BAPI_ACC_INVOICE_RECEIPT_CHECK including all data declarations. The code uses the latest in-line data declaration syntax but I have included an abap code snipet at the end to show how declarations would look using the original method of declaring data variables up front. 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).
DATA:
it_accountpayable   TYPE STANDARD TABLE OF BAPIACAP03,"tables param
wa_accountpayable LIKE LINE OF it_accountpayable  ,
it_accountgl   TYPE STANDARD TABLE OF BAPIACGL03,"tables param
wa_accountgl LIKE LINE OF it_accountgl  ,
it_accounttax   TYPE STANDARD TABLE OF BAPIACTX01,"tables param
wa_accounttax LIKE LINE OF it_accounttax  ,
it_currencyamount   TYPE STANDARD TABLE OF BAPIACCR01,"tables param
wa_currencyamount LIKE LINE OF it_currencyamount  ,
it_purchaseorder   TYPE STANDARD TABLE OF BAPIACPO00,"tables param
wa_purchaseorder LIKE LINE OF it_purchaseorder  ,
it_purchaseamount   TYPE STANDARD TABLE OF BAPIACCRPO,"tables param
wa_purchaseamount LIKE LINE OF it_purchaseamount  ,
it_return   TYPE STANDARD TABLE OF BAPIRET2,"tables param
wa_return LIKE LINE OF it_return  ,
it_criteria   TYPE STANDARD TABLE OF BAPIACKECR,"tables param
wa_criteria LIKE LINE OF it_criteria  ,
it_valuefield   TYPE STANDARD TABLE OF BAPIACKEVA,"tables param
wa_valuefield LIKE LINE OF it_valuefield  ,
it_extension1   TYPE STANDARD TABLE OF BAPIEXTC,"tables param
wa_extension1 LIKE LINE OF it_extension1  .

DATA(ld_documentheader) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_accountpayable to it_accountpayable.

"populate fields of struture and append to itab
append wa_accountgl to it_accountgl.

"populate fields of struture and append to itab
append wa_accounttax to it_accounttax.

"populate fields of struture and append to itab
append wa_currencyamount to it_currencyamount.

"populate fields of struture and append to itab
append wa_purchaseorder to it_purchaseorder.

"populate fields of struture and append to itab
append wa_purchaseamount to it_purchaseamount.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_criteria to it_criteria.

"populate fields of struture and append to itab
append wa_valuefield to it_valuefield.

"populate fields of struture and append to itab
append wa_extension1 to it_extension1.. CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK' EXPORTING documentheader = ld_documentheader TABLES accountpayable = it_accountpayable accountgl = it_accountgl accounttax = it_accounttax * currencyamount = it_currencyamount * purchaseorder = it_purchaseorder * purchaseamount = it_purchaseamount return = it_return * criteria = it_criteria * valuefield = it_valuefield * extension1 = it_extension1 . " BAPI_ACC_INVOICE_RECEIPT_CHECK
IF SY-SUBRC EQ 0.   "All OK ENDIF.

ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
ld_documentheader TYPE BAPIACHE03 ,
it_accountpayable TYPE STANDARD TABLE OF BAPIACAP03 ,
wa_accountpayable LIKE LINE OF it_accountpayable,
it_accountgl TYPE STANDARD TABLE OF BAPIACGL03 ,
wa_accountgl LIKE LINE OF it_accountgl,
it_accounttax TYPE STANDARD TABLE OF BAPIACTX01 ,
wa_accounttax LIKE LINE OF it_accounttax,
it_currencyamount TYPE STANDARD TABLE OF BAPIACCR01 ,
wa_currencyamount LIKE LINE OF it_currencyamount,
it_purchaseorder TYPE STANDARD TABLE OF BAPIACPO00 ,
wa_purchaseorder LIKE LINE OF it_purchaseorder,
it_purchaseamount TYPE STANDARD TABLE OF BAPIACCRPO ,
wa_purchaseamount LIKE LINE OF it_purchaseamount,
it_return TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return LIKE LINE OF it_return,
it_criteria TYPE STANDARD TABLE OF BAPIACKECR ,
wa_criteria LIKE LINE OF it_criteria,
it_valuefield TYPE STANDARD TABLE OF BAPIACKEVA ,
wa_valuefield LIKE LINE OF it_valuefield,
it_extension1 TYPE STANDARD TABLE OF BAPIEXTC ,
wa_extension1 LIKE LINE OF it_extension1.

ld_documentheader = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_accountpayable to it_accountpayable.

"populate fields of struture and append to itab
append wa_accountgl to it_accountgl.

"populate fields of struture and append to itab
append wa_accounttax to it_accounttax.

"populate fields of struture and append to itab
append wa_currencyamount to it_currencyamount.

"populate fields of struture and append to itab
append wa_purchaseorder to it_purchaseorder.

"populate fields of struture and append to itab
append wa_purchaseamount to it_purchaseamount.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_criteria to it_criteria.

"populate fields of struture and append to itab
append wa_valuefield to it_valuefield.

"populate fields of struture and append to itab
append wa_extension1 to it_extension1..

SAP Documentation for FM BAPI_ACC_INVOICE_RECEIPT_CHECK


Accounting can use logistics system data resulting from invoice receipts. ...See here for full SAP fm documentation