Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>BBPIncomingInvoice



Index

BBPIncomingInvoice

BBPIncomingInvoice


No description is available


11-Dec-2005


Methods

Available Methods


  • CancelSingle : Invoice Verification: Reverse Invoice [ BAPI_INCOMINGINVOICE_CANCEL ]
  • CreateFromData : Invoice Verification: Post Invoice [ BAPI_INCOMINGINVOICE_CREATE ]
  • GetDetail : Invoice Verification: Display Invoice [ BAPI_INCOMINGINVOICE_GETDETAIL ]
  • GetList : Invoice Verification: List Invoices [ BAPI_INCOMINGINVOICE_GETLIST ]
  • ParkFromData : Invoice Verification: Park Invoice [ BAPI_INCOMINGINVOICE_PARK ]
  • ReleaseSingle : Invoice Verification: Release Invoice [ BAPI_INCOMINGINVOICE_RELEASE ]
  • SaveFromData : Invoice Verification: Flag Invoice for Background Processing [ BAPI_INCOMINGINVOICE_SAVE ]

11-Dec-2005


CancelSingle

CancelSingle


With this method, you can create a reversal document by entering the original document.

Notes

The system checks the following authorization object with activity 01:

  • M_RECH_WRK Plant Authorization for Entering Invoices

  • Transfer

    You have to pass on to the method the key fields of the invoice(InvoiceDocNumber and FiscalYear) and the reversal reason as importparameters. You have the option of entering the posting date for the reversal.

    Return


    The document number and the document year of the reversal document are returned in the export parameters InvoiceDocNumber and FiscalYear.

    Return messages

    Messages are returned in the parameter Return. This parameter
    documentation contains the return codes and their meanings.

    Further Information

    The methods can only execute their function if no error messages are created in table Return. This is the case if the system was able to process the header data and all items without any errors.


    No transaction control is implemented. That means that the initiatorhas to carry out the 'Commit Work' themself after successfully callingthis method, that is, if no errors are reported to the initiator in the parameter Return.


    11-Dec-2005


    CreateFromData

    CreateFromData


    You can use this method to create and post invoices.

    When passing on the header data, you use the field INVOIC_IND todetermine whether the system posts a credit memo or an invoice. If the field is blank, the system posts a credit memo. If you enter an X, the system posts an invoice.


    If you want to enter an incoming invoice for a returns order, you should leave the INVOICE_IND field blank.

    As in the online transaction, the system updates the purchase orderhistory and stock valuation data in Materials Management. The system creates accounting documents in Accounting.


    Using this method, you can:

  • Enter and post invoices with multiple account assignment
  • Change the account assignment of invoices, add account assignments, and post the invoices
  • Enter invoices for blanket purchase orders
  • Enter and post invoices for purchase orders containing planned delivery costs

  • Enter and post invoices containing unplanned delivery costs
  • Enter and post subsequent debits/credits
  • Use document types with external number assignment
  • Enter and post invoices with withholding tax
  • Enter and post invoice with more than one vendor line and different payment methods and terms of payment

  • Enter and post invoices for returns orders
  • Enter and post invoices for transportation service providers
  • Enter and post invoices for external service purchase orders
  • Post to G/L accounts
  • Post to material accounts
  • Restrictions


    You cannot:

  • Post one-time vendor data
  • The following fields in Financial Accounting are not passed on:

  • POR subscriber number
  • Bank details
  • Payment reference
  • House bank ID
  • Nota Fiscal
  • Notes

    The following authorization object is checked using activity 01:


  • M_RECH_WRK Authorization to create invoices in certain plants
  • Transfer

    You use the structure HeaderData to transfer the invoice header data.

    Tables ItemData and AccountingData contain the invoice item data. The table TaxData
    contains the tax information for the invoice.

    Tables ItemData and AccountingData contain the item data and the incoming invoice.

    The table TaxData contains the tax information on the incoming invoice.


    The table GlAccountData contains data on posting to a G/L account and the table MaterialData contains data on posting to a material account.

    Using table WithTaxData you can transfer withholding tax information.


    Using table VendorItemSplitData you can distribute the grossamount to several vendor line items with different methods of payment and terms of payment.

    Return

    The invoice document number and the fiscal year are returned as key fields for the invoice.


    Return messages

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    The method can only carry out your function if no error messages were
    generated in the "Return" table. This is the case if the header data and all the items were processed successfully.

    Transaction control is not implemented. The calling program thereforehas to execute the 'Commit Work' itself after this method has been
    successfully invoked (i.e. if no errors were reported in the Return parameter).

    Example: Incoming Invoice

    This example shows the header data that you need to enter in table Headerdata and the item data that you need to enter in table Itemdata to post an invoice.


    Purchase order: 10 pieces of material A at 10 USD/piece
    Goods receipt: 10 pieces of material A

    You receive an invoice against this purchase order, with reference topurchase order number 4500007491, order item 10, for a quantity of 10pieces of material A and an amount of 116 USD including 16% sales tax. Enter the following data:


    Table HeaderData

  • INVOICE_IND (Post invoice/credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): 1000
  • GROSS_AMOUNT (Gross amount): 116.00

  • CURRENCY (Currency key): USD
  • CALC_TAX_IND (Calculate tax): X
  • Table ItemData

  • INVOICE_DOC_ITEM (Invoice document item): 00001
  • PO_NUMBER (Purchase order number): 4500007491
  • PO_ITEM (Purchase order item): 00010

  • TAX_CODE (Tax code): VN
  • ITEM_AMOUNT (Item amount): 100
  • QUANTITY (Quantity): 10
  • PO_UNIT (Unit of measure): PC
  • For more information, see the parameter documentation for tables HeaderData and Itemdata.

    Example: Incoming Invoice in Foreign Currency, Goods-Receipt-Based

    Invoice Verification and Tax Information

    This example specifies the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata and the tax information that you need to enter in table
    TaxData to post an invoice in a foreign currency.

    Purchase order: 10 pieces of material A at 10 USD/piece
    First goods receipt: 4 pieces of material A
    Second goods receipt: 6 pieces of material A

    You receive an invoice against this purchase order, with reference to
    purchase order number 4500007505, order item 10, goods receipt document50010095, 2000, item 1. The invoice is for a quantity of 4 pieces ofmaterial A, a gross amount of 46.60 USD and 16% sales tax (6.60 USD). Enter the following data:

    Table HeaderData


  • INVOICE_IND (Post invoice/credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): 1000
  • CURRENCY (Currency key): USD
  • GROSS_AMOUNT (Gross amount): 46.60

  • Table ItemData

  • INVOICE_DOC_ITEM (Invoice document item): 00001
  • PO_NUMBER (Purchase order number): 4500007505
  • PO_ITEM (Purchase order item): 00010
  • REF_DOC (Goods receipt document): 50010095
  • REF_DOC_YEAR (Fiscal year of current period): 2000

  • REF_DOC_ITEM (Goods receipt document item): 1
  • TAX_CODE (Tax code): VN
  • ITEM_AMOUNT (Item amount): 40.00
  • QUANTITY (Quantity): 4
  • PO_UNIT (Unit of measure): PC
  • Table TaxData

  • TAX_CODE (Sales tax code): VN

  • TAX_AMOUNT (Tax amount in document currency): USD 6.60
  • For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.

    Example: Incoming invoice for blanket purchase order


    This invoice shows which header data you need to enter in table HeaderData, which item data you need to enter in table ItemData, and which account assignment data you need to enter in tableAccountingData in order to post an incoming invoice for a blanket purchase order.


    You receive an invoice for the blanket PO 4500015172, PO item 10 for anamount 110 USD incl. sales tax at 10%. You want to distribute theinvoice amount to the cost centers 1200 and 1500. Enter, for example, the following data:

    Table HeaderData


  • INVOICE_IND (Post invoice/credit memo): X
  • DOC_DATE (Document date): 02.19.2001
  • PSTING_DATE (Posting date): 02.21.2001
  • COMP_CODE (Company code): 1000
  • GROSS_AMOUNT (Gross amount): 110
  • CURRENCY (Currency): USD
  • CALC_TAX_IND (Calculate tax): X

  • Table ItemData

  • INVOICE_DOC_ITEM (Item in the invoice document): 00001
  • PO_NUMBER (PO number): 4500015172
  • PO_ITEM (PO item): 00010
  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Item amount): 100
  • Table AccountingData


    1st line: Change account assignment data

  • INVOICE_DOC_ITEM (Document item in invoice document): 0001
  • SERIAL_NO (Serial number for the acc. assignment): 01
  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Amount in document currency): 30

  • GL_ACCOUNT (G/L account number): 890000
  • COSTCENTER (Cost center): 1200
  • 2nd line: Add unplanned account assignment

  • INVOICE_DOC_ITEM (Document item in invoice document): 0001
  • XUNPL (Unplanned acct. assignment from IV): X

  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Amount in document currency): 70
  • GL_ACCOUNT (G/L account number): 890000
  • COSTCENTER (Cost center): 1500
  • In the case of a blanket purchase order, the following fields forquantities and units of measurement must not be filled in the tables ItemData and AccountingData:


  • Quantity (QUANTITY)
  • PO_UNIT (PO unit of measure)
  • PO_UNIT_ISO (PO unit of measure in ISO code)
  • PO_PR_QNT (Quantity in PO price unit of measure)
  • PO_PR_UOM (PO price unit of measure)
  • PO_PR_UOM_ISO (PO price unit of measure in ISO code)

  • For more information, see the parameter documentation for tables HeaderData, ItemData, and AccountingData,or in the SAP Library under Logistics Invoice Verification.

    Example: Change account assignments and add unplanned assignments


    This example shows the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata, and the account assignment information that you needto enter in table AccountingData to change, add, and post
    account assignments for an invoice. If you want to change or addaccount assignments, there must be a non-valuated goods receipt or nogoods receipt in the system. Goods-receipt-based invoice verification is specified.

    Purchase order: 300 pieces of material A at 1 USD/piece
    Goods receipt: 300 pieces of material A


    This purchase order is subject to account assignment. You receive aninvoice for it, refering to purchase order number 4500006846, orderitem 10, goods receipt document 50008849, 2000, item 1. The invoice isfor a quantity of 100 pieces of material A, with a gross invoice amount
    of USD 116.00, including 16% sales tax. You want to change the plannedaccount assignment for the second account assignment item and add an unplanned account assignment. Enter the following data:

    Table HeaderData

  • INVOICE_IND (Post invoice/credit memo): X

  • DOC_DATE (Document date): 08.05.2000
  • PSTNG_DATE (Posting date): 08.08.2000
  • COMP_CODE (Company code): 1000
  • CURRENCY (Currency key): USD
  • GROSS_AMOUNT (Gross amount): 17.40
  • CALC_TAX_IND (Calculate tax automatically): X

  • PMNTTRMS (Terms of payment key): 0001
  • Table ItemData

  • INVOICE_DOC_ITEM (Invoice document item): 00001
  • PO_NUMBER (Purchase order number): 4500006846
  • PO_ITEM (Purchase order item): 00010
  • REF_DOC (Goods receipt document): 500008849

  • REF_DOC_YEAR (Fiscal year of current period): 2000
  • REF_DOC_ITEM (Goods receipt document item): 1
  • TAX_CODE (Tax code): VN
  • ITEM_AMOUNT (Item amount): 100
  • QUANTITY (Quantity): 100
  • PO_UNIT (Unit of measure): PC
  • Table AccountingData


    Row 1: Change second account assignment item

  • INVOICE_DOC_ITEM (Invoice document item): 0001
  • SERIAL_NO (Account assignment serial number): 02
  • TAX_CODE (Tax code): VN
  • ITEM_AMOUNT (Amount in document currency): 10.00

  • QUANTITY (Quantity): 10
  • PO_UNIT (Order unit): PC
  • GL_ACCOUNT (G/L account number): 890000
  • COSTCENTER (Cost center): 1200
  • Row 2: Add unplanned account assignment

  • INVOICE_DOC_ITEM (Invoice document item): 0001

  • XUNPL (Unplanned account assignment in Invoice Verification): X
  • TAX_CODE (Tax code): VN
  • ITEM_AMOUNT (Amount in document currency): 5.00
  • QUANTITY (Quantity): 5
  • PO_UNIT (Order unit): PC
  • GL_ACCOUNT (G/L account number): 890000

  • COSTCENTER (Cost center): 1200
  • For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData, or Logistics Invoice Verification in the SAP Library.

    Example: Invoice with Planned Delivery Costs


    This examples shows the header data that you need to enter in table HeaderData, the item data that you need to enter in table ItemData, and the tax information that you need to enter in tableTaxData to post an invoice containing planned delivery costs.


    Purchase order: 100 pieces of material A at 1 USD/piece
    Goods receipt: 100 pieces of material A

    You receive an invoice for this purchase order refering to purchaseorder number 4500006986, order item 10, for a quantity of 100 pieces ofmaterial A and 136 USD, including 16% sales tax and 20 USD planned delivery costs. Enter the following data:


    Table HeaderData

  • INVOICE_IND (Post invoice/credit memo): X
  • DOC_DATE (Document date): 08.10.2000
  • PSTNG_DATE (Posting date): 08.12.2000
  • COMP_CODE (Company code): 1000
  • CURRENCY (Currency key): USD

  • GROSS_AMOUNT (Gross amount): 136,00
  • Table ItemData

    Row 1: Posting the purchase order item

  • INVOICE_DOC_ITEM (Invoice document item): 00001
  • PO_NUMBER (Purchase order number): 4500006986
  • PO_ITEM (Order item): 00010

  • TAX_CODE (Sales tax code): VN
  • ITEM_AMOUNT (Item amount): 100.00
  • QUANTITY (Quantity): 100
  • PO_UNIT (Unit of measure): PC
  • Row 2: Posting the planned delivery costs

  • INVOICE_DOC_ITEM (Invoice document item): 00002
  • PO_NUMBER (Order number): 4500006986

  • PO_ITEM (Order item): 00010
  • ITEM_AMOUNT (Item amount): 20.00
  • QUANTITY (Quantity): 100
  • PO_UNIT (Unit of measure): PC
  • COND_TYPE (Condition type): FRB1
  • Table TaxData

  • TAX_CODE (Sales tax code): VN

  • TAX_AMOUNT (Tax amount in document currency): 16.00
  • For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.

    Example: Incoming invoice with withholding tax.

    This example shows you what header data you can enter in table
    HeaderData, and what item data and withholding tax information you canenter in table TaxData in order to park an incoming invoice with withholding tax.

    Purchase order: 10 pieces of material A at $10

    Goods receipt: 10 pieces of material A

    You receive an invoice for this delivery with reference to purchase
    order number 4500007505, PO item 10, GR document 50010095 2000, Item 1.The invoice is for a quantity of 10 pieces and a gross amount of 100USD. You have to pay 10% withholding tax for the gross amount. Enter the following data:

    Table HeaderData


  • INVOICE_IND (Invoice/Credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): WT01
  • CURRENCY (Currency key): USD
  • GROSS_AMOUNT (Gross amount): 100 USD

  • Table ItemData

  • INVOICE_DOC_ITEM (Item from invoice document): 00001
  • PO_NUMBER (PO number): 4500007505
  • PO_ITEM (PO item): 00010
  • REF_DOC (GR document): 50010095
  • REF_DOC_YEAR (Fiscal year of the current period): 2000

  • REF_DOC_ITEM (Item in a GR document): 1
  • TAX_CODE (Tax code): V0
  • ITEM_AMOUNT (Item amount): $100
  • QUANTITY (Quantity): 10
  • PO_UNIT (Unit of measure): PC
  • Table WithTaxData

  • SPLIT_KEY (Grouping key for withholding tax split): 0001

  • WI_TAX_TYPE (Code for withholding tax type): R1
  • WI_TAX_CODE (Withholding tax code): 01
  • WI_TAX_BASE (Withholding tax base amount): 100
  • WI_TAX_AMT (Withholding tax amount in doc. currency): 10.00
  • For more information, see the parameter documentation for tables HeaderData, ItemData, and WithTaxData.


    Example: Incoming invoice with amount split.

    This example shows you what header data you need to enter in tableHeaderData, what item data you enter in table ItemData, and whatinformation you can enter in table VendorSplitData in order to create an invoice with an amount split.


    Purchase order: 10 pieces of material A at 10 USD

    Goods receipt: 10 pieces of material A

    You receive an invoice for this purchase order with reference to POnumber 4500007505, PO item 10, GR document 50010095, item 1. Theinvoice is for a quantity of 10 pieces and a gross amount of 100 USD.
    You want to distribute the gross amount to two vendor lines. 40% of thegross amount should be paid immediately by check, and 60% of the grossamount should be paid within 14 days, taking into account a 3% cash discount. Enter the following data:

    Table HeaderData


  • INVOICE_IND (Invoice/Credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): USD
  • GROSS_AMOUNT (Gross amount): 100.00

  • Table ItemData

  • INVOICE_DOC_ITEM (Item from the invoice document): 00001
  • PO_NUMBER (PO number): 4500007505
  • PO_ITEM (PO item): 00010
  • REF_DOC (GR document): 50010095
  • REF_DOC_YEAR (Fiscal year for the current period): 2000

  • REF_DOC_ITEM (Item from a GR document): 1
  • TAX_CODE (Tax code): V0
  • ITEM_AMOUNT (Item amount): 100
  • QUANTITY (Quantity): 10.00
  • PO_UNIT (Unit of measure): PC
  • Table VendorItemSplitData

    1st vendor line


  • SPLIT_KEY (Grouping key for split in the vendor line): 0001
  • SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 40.00
  • PYMT_METH (Payment method): S
  • TAX_CODE (Tax code): V0
  • PMNTTRMS (Payment terms key): 0001

  • 2nd vendor line

  • SPLIT_KEY (Grouping key for split in the vendor line): 0002
  • SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 60.00
  • PYMT_METH (Payment method): U
  • TAX_CODE (Tax code): V0
  • PMNTTRMS (Payment terms key): 0003

  • For more information, see the parameter documentation for tables HeaderData, ItemData, and VendorItemSplitData.

    You recieve an invoice with reference to the order number 4500006846,order item 10. The invoice is for a 100 pieces of material A, with a
    gross amount of 150.80 USD, including 16% value-added tax. The invoiceincludes a G/L account posting of 10 USD to account 400000 in companycode 1 and a material account posting of material MAT01 for 20 USD.

    Enter the following data:

    Table HeaderData


  • INVOICE_IND (post invoice/credit memo): X
  • DOC_DATE (Document date): 05.08.2000
  • PSTNG_DATE (Posting date): 08.08.2000
  • COMP_CODE (Company code): 1000
  • CURRENCY (Currency): USD
  • GROSS_AMOUNT (Gross amount): 150,80

  • CALC_TAX_IND (Calculate tax): X
  • PMNTTRMS (Terms of payment): 0001
  • Table ItemData
  • INVOICE_DOC_ITEM (Invoice document item): 00001
  • PO_NUMBER (Purchase order number): 4500006846
  • PO_ITEM (PO item): 00010

  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (Amount in document currency): 100
  • QUANTITY: 100
  • PO_UNIT (Unit of measure): ST
  • Table GlAccountData

  • INVOICE_DOC_ITEM (Document item in invoice document): 00001

  • GL_ACCOUNT (G/L account): 400000
  • ITEM_AMOUNT (Amount in document currency): 10,00
  • DB_CR_IND (Debit/credit indicator): S
  • COMP_CODE (Company code): 0001
  • TAX_CODE (Tax code): VN
  • COSTCENTER (Cost center): 1
  • Table MaterialData


  • INVOICE_DOC_ITEM (Document item in invoice document): 0001
  • MATERIAL (MATERIAL): MAT01
  • PLANT (Valuation area): 0001
  • DB_CR_INP (Debit/credit indicator): S
  • ITEM_AMOUNT (Amount in document currency): 10,00
  • QUANTITY (Quantity): 1

  • PO_UNIT (PO unit of measure): ST
  • You can find further information in the parameter documentation for tables HeaderData, ItemData, GlAccountData and MaterialData or in the SAP Library under Logistics - Invoice Verification


    Example: Invoice for a purchase order for external services and service-based invoice verification.

    This example shows you which header data to enter in table HeaderData, which item data to enter in table ItemData, and which account assignment data to enter in table AccountingData
    in order to enter and post an incoming invoice.

    You receive an invoice with refeerence to the PO number 4500000191, POitem 10. Two services A and B are invoiced, each with a quantity of aservice unit. Service A has a gross amount of 580 USD incl. 16% tax. Service B has 812 USD incl. 16% tax. Service A has an account
    assignment of 50% to both cost centers 1000 and 2000. Service B also has an account assignment to cost centers 1000 and 3000.

    Enter the following data:

    Table HeaderData

  • INVOICE_IND (Post invoice/credit memo): X

  • DOC_TYPE (Document type): RE
  • DOC_DATE (Document date): 01.10.2002
  • PSTNG_DATE (Posting date): 01.10.2002
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): USD
  • GROSS_AMOUNT (Gross amount): 1392.00
  • CALC_TAX_IND (Calculate tax automatically): X

  • PMNTTRMS (Payment terms key): 0002
  • Table ItemData

    Service A:

  • INVOICE_DOC_ITEM (Item in invoice document): 000001
  • PO_NUMBER (PO number): 4500000191
  • PO_ITEM (PO item): 00010
  • TAX_CODE (Tax code): V1

  • ITEM_AMOUNT (Item amount): 500.00
  • QUANTITY (Quantity): 1
  • PO_UNIT (Unit of measure): LE
  • SHEET_NO (Service entry sheet number): 1000000022
  • SHEET_ITEM (Line number) : 10
  • Service B:

  • INVOICE_DOC_ITEM (Item in invoice document): 000002

  • PO_NUMBER (PO number): 4500000191
  • PO_ITEM (PO item): 00010
  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Item amount): 700.00
  • QUANTITY (Quantity): 1
  • PO_UNIT (Unit of measure): LE
  • SHEET_NO (Service entry sheet number): 1000000022

  • SHEET_ITEM (Line number) : 20
  • Table AccountingData

    First account assignment for service A:

  • INVOICE_DOC_ITEM (Document item in invoice document): 000001
  • SERIAL_NO (Sequential number of the account assignment): 01

  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Amount in document currency): 250.00
  • QUANTITY (Quantity): 0.5
  • PO_UNIT (PO unit of measure): LE
  • GL_ACCOUNT (G/L account number): 400000
  • COSTCENTER (Cost center): 1000

  • Second account assignment for service A:

  • INVOICE_DOC_ITEM (Document item in invoice document): 000001
  • SERIAL_NO (Sequential number of the account assignment): 02
  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Amount in document currency): 250.00

  • QUANTITY (Quantity): 0.5
  • PO_UNIT (PO unit of measure): LE
  • GL_ACCOUNT (G/L account number): 400000
  • COSTCENTER (Cost center): 2000
  • First account assignment for service B:

  • INVOICE_DOC_ITEM (Document item in invoice document): 000002

  • SERIAL_NO (Sequential number of the account assignment): 01
  • TAX_CODE (Tax code): V1
  • ITEM_AMOUNT (Amount in document currency): 350.00
  • QUANTITY (Quantity): 0.5
  • PO_UNIT (PO unit of measure): LE
  • GL_ACCOUNT (G/L account number): 400000

  • COSTCENTER (Cost center): 1000
  • Second account assignment for service B:

  • INVOICE_DOC_ITEM (Document item in invoice document): 000002
  • SERIAL_NO (Sequential number of the account assignment): 03
  • TAX_CODE (Tax code): V1

  • ITEM_AMOUNT (Amount in document currency): 350.00
  • QUANTITY (Quantity): 0.5
  • PO_UNIT (PO unit of measure): LE
  • GL_ACCOUNT (G/L account number): 400000
  • COSTCENTER (Cost center): 3000
  • For more information, see the parameter documentation for the tables HeaderData, ItemData, and AccountingData
    , or see the SAP Library under Logistics Invoice Verification.


    11-Dec-2005


    GetDetail

    GetDetail


    You can use this method to display detail data on an invoice.

    Notes

    The system checks the following authorization with activity 03:

    M_RECH_WRK Authorization for creating invoices in certain plants

    Transfer


    The key fields in the invoice (InvoiceDocNumber and FiscalYear) must be passed on to the method as import parameters.

    Return

    The data for the individual items is exported in tables Itemdata and Accountingdata
    . The table Taxdata contains the tax information in the invoice.

    The invoice header data is returned in the structure Headerdata.

    Table GlAccountData contains data for posting to a G/L account and table MaterialData
    contains data for posting to a material account.

    Information on holding tax is returned with the table WithTaxData.

    Table VendorItemSplitData contains the data if you distributethe gross amount across several vendor lines with varying methods of payment and terms of payment.


    Return messages

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    The method can only execute the function if no error messages have been created in the Return
    table. This is the case if the system was able to process the header data and all items without errors.

    You can find additional information in the parameter documentation on the tables HeaderData, ItemData, GlAccountData, MaterialData, WithTaxData, VendorItemSplitData
    , or in the SAP Library under Logistics - Invoice Verification.


    11-Dec-2005


    GetList

    GetList


    You can use this method to read the header data for all suitable invoices using the selection criteria listed below.

    Notes

    The following authorization object is checked with activity 03:

  • M_RECH_WRK Authorization for entering invoices for certain plants

  • Transfer

    You can use the following criteria to select invoices:

  • Vendor (Structure VendorRa)
  • Posting date (Structure PstngDateRa)
  • Document date (Structure DocDateRa)
  • Entry date (Structure CpuDateRa)

  • External creator (Structure PersonExtRa)
  • Invoice status (Structure StatusRa)
  • Minimal selection criteria can negatively affect system performance.

    Return messages

    Messages are returned in the parameter Return. This parameter
    documentation contains the return codes and their meanings.

    Further Information

    The method can only execute the function if no error messages have been created in the Return table. This is the case if the system was able to process the header data and all items without errors.


    11-Dec-2005


    ParkFromData

    ParkFromData


    You can use this method to park incoming invoices.

    When header data is transferred, you use the field INVOICE_IND todetermine whether the system generates a credit memo or an invoice. If the field remains blank, the system generates a credit memo. If you enter X, the system generates an invoice.


    You use this method if information on posting an invoice document ismissing in the invoice document; the balance can be a value other thanzero. As in the online transaction, the following updates take place,for example informative PO history, advance tax return, index for check
    on duplicate invoices, open vendor items from parked documents, log of document changes.

    You can use this method to

  • Park invoices with multiple account assignment
  • Change and park account assignments for invoices
  • Park invoices for blanket purchase orders (see also the documentation for the function module BAPI_INCOMINGINVOICE_CREATE)

  • Park invoices for purchase orders with planned delivery costs
  • Park invoices with unplanned delivery costs
  • Park subsequent credits and debits
  • Use document types with external number assignment
  • Park invoices with withholding tax

  • Park invoices with several vendor line items and different methods of payment and terms of payment
  • Park invoices with G/L account posting
  • Park invoices with material account posting
  • Restrictions

    You cannot


  • make one-time account postings
  • post invoices for return POs
  • The following FI fields are not transferred:

  • POR subscriber number
  • Bank details
  • Payment reference
  • Short key for house bank account
  • Service indicator

  • Nota Fiscal
  • Notes

    The following authorization object is checked with activity 77:

  • M_RECH_WRK Plant authorization for entering incoming invoices
  • Transfer

    You transfer the header data of the incoming invoice using structure HeaderData.


    The tables ItemData and AccountingData contain the item data of the incoming invoice. Table TaxData contains the tax information for the incoming invoice.

    The table GlAccountData contains data on G/L account posting and and table MaterialData
    contains data on material account posting.

    You can use table WithTaxData to transfer withholding tax information.

    You can use table VendorItemSplitData to distribute the grossamount among several vendor line items with different payment methods and terms of payment.


    Return

    The document number of the invoice document and the fiscal year are returned as key fields of the incoming invoice.

    Message returns

    Messages are returned in the parameter return. The parameter
    documentation shows the return codes and their meanings.

    Further Information

    The method can only carry out your function if no error messages weregenerated in the "Return" table. This is the case if the header data and all the items were processed successfully.


    Transaction control is not implemented. The calling program thereforehas to execute the 'Commit Work' itself after this method has beensuccessfully invoked (i.e. if no errors were reported in the Return parameter).

    Note: If you have parked an invoice using BAPI_INCOMINGINVOICE_PARK, and want to add selections to the parked
    invoice document (MIR4: Change invoice document), you must enter thecurrent selection criteria, such as the PO number, that the invoicedocument refers to, otherwise these references are lost when you make further assignments.

    Example: Incoming Invoice


    This example shows which header data you can park in table HeaderData and which item data you can park in tableItemData.

    Purchase order: 10 pieces of material A at 10 USD
    Goods receipt: 10 pieces of material A

    For this purchase order, you receive an incoming invoice with reference
    to PO number 4500007491, PO item 10, for a quantity of 10 pieces ofmaterial A and an amount of 116 USD incl. 16% tax. You enter the following data:

    HeaderData table

  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 20.05.2000

  • PSTNG_DATE (posting date): 23.05.2000
  • COMP_CODE (company code): 1000
  • GROSS_AMOUNT (gross amount): 116.00
  • CURRENCY (currency key): USD
  • CALC_TAX_IND (calculate tax): X
  • ItemData table

  • INVOICE_DOC_ITEM (item of the invoice document): 00001

  • PO_NUMBER (PO number): 4500007491
  • PO_ITEM (PO item): 00010
  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (item amount): 100
  • QUANTITY (quantity): 10
  • PO_UNIT (unit of measure): PC
  • For further information, see the parameter documentation for tables HeaderData and ItemData.


    Example: Incoming invoice with foreign currency, GR-based invoice verification, and tax information

    This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData
    to be able to park an incoming invoice in a foreign currency.

    Purchase order: 10 pieces of material A at 10 USD
    Goods receipt 1: 4 pieces of material A
    Goods receipt 2: 6 pieces of material A

    For this purchase order, you receive an incoming invoice with reference
    to PO number 4500007505, PO item 10, goods receipt document 50010095,2000, item 1. A quantity of 4 pieces of material A and a gross amountof 46.60 USD and 16% tax (6.60 USD) is invoiced. You enter the following data:

    HeaderData table


  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 20.05.2000
  • PSTNG_DATE (posting date): 23.05.2000
  • COMP_CODE (company code): 1000
  • CURRENCY (currency key): USD
  • GROSS_AMOUNT (gross amount): 46.60
  • ItemData table


  • INVOICE_DOC_ITEM (item of invoice document): 00001
  • PO_NUMBER (PO number): 4500007505
  • PO_ITEM (PO item): 00010
  • REF_DOC (goods receipt document): 50010095
  • REF_DOC_YEAR (fiscal year of current period): 2000
  • REF_DOC_ITEM (item of GR document): 1

  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (item amount): 40.00
  • QUANTITY (quantity): 4
  • PO_UNIT (unit of measure): PC
  • TaxData table

  • TAX_CODE (sales tax code): VN
  • TAX_AMOUNT (tax amount in document currency): 6.60

  • For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.

    Example: Change existing account assignments and add new ones

    This example shows which header data you enter in table HeaderData, which item data you enter in table
    ItemData
    and which account assignment data you enter in table AccountingData to be able to change account assignments for an incoming invoice. To be able to change account assignments, anon-valuated goods receipt or no goods receipt must exist. GR-based invoice verification takes place.


    Purchase order: 300 pieces of material A at 1.00 USD
    Goods receipt: 300 pieces of material A

    For this PO with multiple account assignment, you receive an incominginvoice with reference to PO number 4500006846, PO item 10, goodsreceipt document 50008849, 2000, item. A quantity of 100 pieces of
    material A and a gross amount of 116.00 USD incl. 16% tax is invoiced.You want to change the planned account assignment for the secondaccount assignment item and add an unplanned account assignment. You enter the following data:

    HeaderData table


  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 05.08.2000
  • PSTNG_DATE (posting date): 08.08.2000
  • COMP_CODE (company code): 1000
  • CURRENCY (currency key): USD
  • GROSS_AMOUNT (gross amount): 17,40
  • CALC_TAX_IND (calculate tax automatically): X

  • PMNTTRMS (terms of payment key): 0001
  • ItemData table

  • INVOICE_DOC_ITEM (invoice document item): 00001
  • PO_NUMBER (PO number): 4500006846
  • PO_ITEM (PO item): 00010
  • REF_DOC (goods receipt document): 500008849

  • REF_DOC_YEAR (fiscal year of current period): 2000
  • REF_DOC_ITEM (item of goods receipt document): 1
  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (item amount): 100
  • QUANTITY (quantity): 100
  • PO_UNIT (unit of measure): PC

  • AccountingData table

    Line 1: Change second account assignment item

  • INVOICE_DOC_ITEM (Document item in invoice document): 0001
  • SERIAL_NO (sequence number for account assignment): 02
  • TAX_CODE (tax code): VN

  • ITEM_AMOUNT (amount in document currency): 10.00
  • QUANTITY (quantity): 10
  • PO_UNIT (order unit): PC
  • GL_ACCOUNT (number of G/L account): 890000
  • COSTCENTER (cost center): 1200
  • Line 2: Add unplanned account assignment


  • INVOICE_DOC_ITEM (document item in invoice document): 0001
  • XUNPL (unplanned account assignment from invoice verification): X
  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (amount in document currency): 5.00
  • QUANTITY (quantity): 5

  • PO_UNIT (order unit): PC
  • GL_ACCOUNT (number of G/L account): 890000
  • COSTCENTER (cost center): 1200
  • For further information, see the parameter documentation for tables HeaderData, ItemData and AccountingDataor the Logistics Invoice Verification section of the SAP Library.


    Example: Incoming invoice with planned delivery costs

    This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData
    to be able to generate incoming invoices with planned delivery costs.

    Purchase order: 100 pieces of material A at 1.00 USD
    Goods receipt: 100 pieces of material A

    For this purchase order, you receive an incoming invoice with referenceto PO number 4500006986, PO item 10, for a quantity of 100 pieces of
    material A and an amount of 136.00 USD incl. 16% tax and 20.00 planned delivery costs. You enter the following data:

    HeaderData table

  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 10.08.2000
  • PSTNG_DATE (posting date): 12.08.2000

  • COMP_CODE (company code): 1000
  • CURRENCY (currency key): USD
  • GROSS_AMOUNT (gross amount): 136.00
  • ItemData table

    Line 1: Enter PO item

  • INVOICE_DOC_ITEM (item of invoice document): 00001
  • PO_NUMBER (PO number): 4500006986

  • PO_ITEM (PO item): 00010
  • TAX_CODE (sales tax code): VN
  • ITEM_AMOUNT (item amount): 100.00
  • QUANTITY (quantity): 100
  • PO_UNIT (unit of measure): PC
  • Line 2: Enter planned delivery costs

  • INVOICE_DOC_ITEM (item of invoice document): 00002

  • PO_NUMBER (PO number): 4500006986
  • PO_ITEM (PO item): 00010
  • ITEM_AMOUNT (item amount): 20.00
  • QUANTITY (quantity): 100
  • PO_UNIT (unit of measure): PC
  • COND_TYPE (condition type): FRB1
  • TaxData table


  • TAX_CODE (sales tax code): VN
  • TAX_AMOUNT (tax amount in document currency): 16.00
  • For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.

    Example: Incoming invoice with withholding tax


    This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which withholding tax information you enter in table WithTaxData to be able to park an incoming invoice with withholding tax.


    Purchase order: 10 pieces of material A at 10.00 USD

    Goods receipt: 10 pieces of material A

    For this purchase order, you receive an incoming invoice with referenceto PO number 4500007505, PO item 10, goods receipt document 50010095,2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USD
    is invoiced. For the gross amount, you must pay 10% withholding tax. You enter the following data:

    HeaderData table

  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 20.05.2000
  • PSTNG_DATE (posting date): 23.05.2000

  • COMP_CODE (company code): WT01
  • CURRENCY (currency key): USD
  • GROSS_AMOUNT (gross amount): 100.00
  • ItemData table

  • INVOICE_DOC_ITEM (item of invoice document): 00001
  • PO_NUMBER (PO number): 4500007505

  • PO_ITEM (PO item): 00010
  • REF_DOC (goods receipt document): 50010095
  • REF_DOC_YEAR (fiscal year of the current period): 2000
  • REF_DOC_ITEM (item of a goods receipt document): 1
  • TAX_CODE (tax code): V0
  • ITEM_AMOUNT (item amount): 100.00

  • QUANTITY (quantity): 10.00
  • PO_UNIT (unit of measure): PC
  • WithTaxData table

  • SPLIT_KEY (grouping key for splitting withholding tax): 0001
  • WI_TAX_TYPE (indicator for withholding tax type): R1
  • WI_TAX_CODE (withholding tax code): 01

  • WI_TAX_BASE (withholding tax base amount): 100
  • WI_TAX_AMT (withholding tax amount in document currency): 10.00
  • For further information, see the parameter documentation for tables HeaderData, ItemData andWithTaxData.


    Example: Incoming invoice with amount split

    This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which information you enter in VendorItemSplitData
    to generate an incoming invoice with amount split.

    Purchase order: 10 pieces of material A at 10.00 USD

    Goods receipt: 10 pieces of material A

    For this purchase order, you receive an incoming invoice with referenceto PO number 4500007505, PO item 10, goods receipt document 50010095,
    2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USDis invoiced. You want to split the gross amount among two vendor lineitems. 40% of the gross amount is to be paid immediately by check, and60% of the gross amount is to be paid within 14 days, taking advantage of a 3% discount. You enter the following data:


    HeaderData table

  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 20.05.2000
  • PSTNG_DATE (posting date): 23.05.2000
  • COMP_CODE (company code): 0001
  • CURRENCY (currency key): USD
  • GROSS_AMOUNT (gross amount): 100.00

  • ItemData table

  • INVOICE_DOC_ITEM (item of invoice document): 00001
  • PO_NUMBER (PO number): 4500007505
  • PO_ITEM (PO item): 00010
  • REF_DOC (goods receipt document): 50010095
  • REF_DOC_YEAR (fiscal year of current period): 2000

  • REF_DOC_ITEM (item of a goods receipt document): 1
  • TAX_CODE (tax code): V0
  • ITEM_AMOUNT (item amount): 100.00
  • QUANTITY (quantity): 10.00
  • PO_UNIT (unit of measure): PC
  • VendorItemSplitData table

    Vendor line 1


  • SPLIT_KEY (grouping key for splitting vendor line): 0001
  • SPLIT_AMOUNT(partial invoice amount in document currency): 40.00
  • PYMT_METH (payment method): S
  • TAX_CODE (sales tax code): V0
  • PMNTTRMS (terms of payment key): 0001

  • Vendor line 2

  • SPLIT_KEY (grouping key for splitting vendor line): 0002
  • SPLIT_AMOUNT (partial invoice amount in document currency): 60.00
  • PYMT_METH (payment method): U
  • TAX_CODE (sales tax code): V0
  • PMNTTRMS (terms of payment key): 0003

  • For further information, see the parameter documentation for tables HeaderData, ItemData and VendorItemSplitData.

    Example: Incoming invoice with G/L and material account posting

    This example shows which header data you enter in the table HeaderData, which item data you enter in the table
    ItemData, what G/L account information you enter in the table GlAccountData, and what material account information you enter in the table MateralData to park an incoming invoice.

    You receive an invoice with reference to PO number 4500006846, PO item
    10. A quantity of 100 pieces and a gross amount of 150.80 USD including16% value added tax is invoiced. This includes a G/L account posting of10.00 USD to account 400000 in company code 1 and a material account posting for material MAT01 to a total of 20.00 USD.


    You enter the following data:

    Table HeaderData

  • INVOICE_IND (invoice/credit memo): X
  • DOC_DATE (document date): 05.08.2000
  • PSTNG_DATE (posting date): 08.08.2000
  • COMP_CODE (company code): 1000
  • CURRENCY (currency key): USD

  • GROSS_AMOUNT (gross amount): 150,80
  • CALC_TAX_IND (calculate tax automatically): X
  • PMNTTRMS (terms of payment key): 0001
  • Table ItemData

  • INVOICE_DOC_ITEM (item of invoice document): 00001
  • PO_NUMBER (PO number): 4500006846

  • PO_ITEM (PO item): 00010
  • TAX_CODE (tax code): VN
  • ITEM_AMOUNT (item amount): 100
  • QUANTITY (quantity): 100
  • PO_UNIT (unit of measure): ST
  • Table GlAccountData

  • INVOICE_DOC_ITEM (item in invoice document): 00001

  • GL_ACCOUNT (G/L account): 400000
  • ITEM_AMOUNT (item amount): 10,00
  • DB_CR_IND (debit/credit indicator): S
  • COMP_CODE (company account): 0001
  • TAX_CODE (tax code): VN
  • COSTCENTER (cost center): 1
  • Table MaterialData


  • INVOICE_DOC_ITEM (invoice document item): 0001
  • MATERIAL (MATERIAL): MAT01
  • PLANT (valuation key): 0001
  • DB_CR_INP (debit/credit indicator): S
  • ITEM_AMOUNT (item amount): 10,00
  • QUANTITY (MENGE_D): 1
  • PO_UNIT (unit of measure): ST

  • TAX_CODE (tax code): VN
  • You can find further information in the parameter documentation for tables HeaderData, ItemData, GlAccountData and MaterialData


    11-Dec-2005


    ReleaseSingle

    ReleaseSingle


    You can use this method to release blocked invoices.

    Notes

    The system checks the following authorization object with activity 02:

    M_RECH_EKG

    You must convert invoices posted using Logistics Invoice Verification in releases earlier than 4.6A using report
    RM08RBKPBLOCKED
    .

    Transfer

    You must pass on to the method the key fields of the invoice(InvoiceDocNumber and FiscalYear) as import parameters. You can choosewhether the system moves the cash discount days when paying the invoice.


    Return messages

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    The method can only execute the function if no error messages have been created in the Return
    table. This is the case if the system was able to process the header data and all the items without any errors.

    No transaction control is implemented. That means that the initiatorhas to carry out the 'Commit Work' after successfully calling thismethod if no errors are reported to the initiator in the parameter Return.


    11-Dec-2005


    SaveFromData

    SaveFromData


    For invoice verification in the background, you only enter certaindocument header data such as invoice amount, currency, and tax information. You also assign the incoming invoice to a document or avendor. The system saves both the data and the assignment. The system
    creates an invoice that is now scheduled for verification in the background. The data can be transferred using either EDI or XML.

    Using this method you can

  • Enter invoices for blanket purchase orders
  • Create invoices for deliveries with planned delivery costs

  • Use document types with external number ranges
  • Enter invoices with withholding tax
  • Enter invoices with several vendor lines and different payment methods and terms of payment
  • Enter invoices for returns items
  • The invoice will be verified in the background at a later point.
    Invoice verification in the background is executed using the programRMBAG00. Your system administrator defines the jobs that triggerinvoice verification in the background. During this process, the system creates the item list using the saved assignments.


    Limitations

    You cannot

  • Post CpD data
  • Make assignments to transportation service agents
  • The following fields are not transmitted to Financial Accounting:

  • POR subscriber number

  • Bank details
  • Payment reference
  • ID for house bank
  • Service indicator
  • Nota fiscal
  • Notes

    Authorization check

    The system checks whether the user has authorization to perform transaction MIRA.


    Copy

    You copy the header data from the invoice using the structures Headerdata and AdditionalHeaderData. The assignment is copied using the structure RefDocCategory and the tables SelectPo,
    SelectDelivery
    , SelectBillLading, SelectService, and SelectPlant. You copy the tax data using tables TaxData and WithTaxData.

    Return

    The document number of the invoice document and the fiscal year are returned as key fields in the incoming invoice.


    Confirmations

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    The method can only carry out your function if no error messages were
    generated in the "Return" table. This is the case if the header data and all the items were processed successfully.

    Transaction control is not implemented. The calling program thereforehas to execute the 'Commit Work' itself after this method has been
    successfully invoked (i.e. if no errors were reported in the Return parameter).

    The following are examples carried out using different assignments and field entries.

    ---------

    Example: Assignment to purchase order

    If your invoice references a purchasing document or a scheduling
    agreement, and you want to enter goods items, then you must fill the following fields:

    Table RefDocCategory: REF_DOC_CATEGORY (Ref. document cat.): 1

    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X

  • DOC_DATE (Document number in document): 11.05.00
  • PSTNG_DATE (Posting date in document : 11.06.00
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR
  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X

  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S
  • SEL_GOODS (Indicator: Goods invoice/Service): X
  • Table SelectPo: PO_NUMBER (Document number of the purchasing document): 4500000679

    For more information, see the parameter documentation for tablesRefDocCategory, HeaderData,
    AdditionalHeaderData
    and SelectPo.

    ---------

    Example: Assignment to delivery note

    If your invoice references an external delivery note, and you want to enter goods items, then you must fill the following fields:

    Table RefDocCategory: REF_DOC_CATEGORY (Ref. document cat.): 2


    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X
  • DOC_DATE (Document date in document): 11.05.00
  • PSTNG_DATE (Posting date in document): 11.06.00
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR

  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S
  • SEL_GOODS (Indicator: Goods invoice/Service): X
  • SEL_ VENDOR (Number of the selection vendor): SPENCER

  • Table SelectDelivery: DELIVERY_NOTE (Number of the external delivery note): 11/00-256

    For more information, see the parameter documentation for the tablesRefDocCategory, HeaderData, AdditionalHeaderData and SelectDelivery.


    --------

    Example: Assignment to bill of lading

    If your invoice references a bill of lading, and you want to enterinvoices for delivery costs, you must fill the following fields:

    Table RefDocCategory: REF_DOC_CATEGORY (Ref. document cat.): 3


    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X
  • DOC_DATE (Document date in document): 11.05.00
  • PSTNG_DATE (Posting date in document): 11.06.00
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR

  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X
  • ASSIGN_RETURN (Indicator: Returns assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S
  • RETURN_POSTING (Posting logic for returns items (Invoice=S/Credit memo=H): H

  • SEL_DELIV_COSTS (Indicator: Planned delivery costs)
  • SEL_ VENDOR (Number of the selection vendor): Spencer
  • Table SelectBillLading: BILL_OF_LADING (Number of the external bill of lading): FR00-265

    For more information, see the parameter documentation for the tablesRefDocCategory, HeaderData,
    AdditionalHeaderData
    and SelectBillLading.

    ---------

    Example: Assignment to a service entry sheet

    If your invoice references a service entry sheet and you want to entergoods items or services, then you must fill the following fields:


    Table RefDocCategory: REF_DOC_CATEGORY (Ref. document cat.): 4

    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X
  • DOC_DATE (Document date in document): 11.05.00
  • PSTNG_DATE (Posting date in document): 11.06.00

  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR
  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X
  • ASSIGN_RETURN (Indicator: Returns assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S

  • RETURN_POSTING (Posting logic for returns items (Invoice=S/Credit memo=H): H
  • SEL_GOODS (Indicator: Goods invoice/Service)
  • SEL_ VENDOR (Number of the selection vendor): SPENCER
  • Table SelectService: SHEET_NO (Number of the service entry sheet): 1000000245


    For more information, see the parameter documentation for the tablesRefDocCategory, HeaderData, AdditionalHeaderData, and SelectService.

    ---------

    Example: Assignment to vendor

    If your invoice refereces a vendor, and you want to enter goods items or services, then you must fill the following fields:


    Table RefDocCategory: REF_DOC_CATEGORY (Ref. document cat.): 5

    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X
  • DOC_DATE (Document date in document): 11.05.00
  • PSTNG_DATE (Posting date in document): 11.06.00

  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR
  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X
  • ASSIGN_RETURN (Indicator: Returns assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S

  • RETURN_POSTING (Posting logic for returns items (Invoice=S/Credit memo=H): H
  • SEL_GOODS (Indicator: Goods invoice/Service)
  • SEL_ VENDOR (Number of the selection vendor): SPENCER
  • For more information, see the parameter documentation for the tables:RefDocCategory, HeaderData and
    AdditionalHeaderData
    .

    ---------

    Example: Invoice with planned delivery costs

    If your invoice references a vendor, and you want to enter ONLYdelivery costs incurred in the period from 1 November 2000 through 15November 2000, then enter the following values. The system should not take into account delivery costs for return items.


    Table RefDocCategory: REF_DOC_CATEGORY (ref. document cat.): 5

    Table HeaderData

  • INVOICE_IND (Invoice=X/Credit memo=blank): X
  • DOC_DATE (Document date in document): 11.05.00
  • PSTNG_DATE (Posting date in document): 11.06.00

  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): EUR
  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment)
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S

  • SEL_DELIV_COSTS (Indicator: Planned delivery costs)
  • SEL_ VENDOR (Number of the selection vendor): SPENCER
  • DELIV_DATE_FROM (Delivery date): 11.01.00
  • DELIV_DATE_TO (Delivery date): 11.15.00
  • For more information, see the parameter documentation for the tables:RefDocCategory, HeaderData and
    AdditionalHeaderData
    .

    -------

    Example: Invoice with withholding tax

    This example shows you which header data you can enter in the tablesHeaderData and AdditionalHeaderData, as well as which withholding taxdata you can enter in table WithTaxData in order to create an invoice with withholding tax that references a purchase order.


    You receive an invoice for this purchase order with reference to the POnumber 4500000679. The vendor has billed for a quantity of 10 piecesand a gross amount of 100 USD. You have to pay 10% withholding tax on the gross amount. Enter the following data:


    Table HeaderData

  • INVOICE_IND (Invoice/Credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): WT01
  • CURRENCY (Currency code): USD
  • GROSS_AMOUNT (Gross amount): 100.00

  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery item assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S
  • SEL_GOODS (Indicator: Goods invoice/Service): X
  • Tabelle SelectPo: PO_NUMBER (Document number of the purchasing document): 4500000679


    Table WithTaxData

  • SPLIT_KEY (Grouping key for splitting the withholding tax): 0001
  • WI_TAX_TYPE (Indicator for withholding tax type): 01
  • WI_TAX_CODE (Withholding tax indicator): 01
  • WI_TAX_BASE (Withholding tax base amount): 100

  • WI_TAX_AMT (Withholding tax amount in document currency): 10.00
  • For more information, see the parameter documentation for the tables: HeaderData, AddtionalHeaderData, SelectPo and WithTaxData.

    ---------

    Example: Invoice with amount split


    This example shows you the header data you can enter in table HeaderData and AdditionalHeaderData, and which information you canenter in table VendorItemSplitData in order to create an invoice with amount split.

    You receive an invoice for this purchase order with reference to the PO
    number 4500000697. The vendor has billed a quantity of 10 pieces and agross amount of 100 USD. You want to distribute the gross amount to twovendor lines. 40% of the gross amount should be paid immediately bycheck, and the remaining 60% of the gross amount should be paid in accordance with the 3% cash discount within 14 days. Enter the
    following data:

    Table HeaderData

  • INVOICE_IND (Invoice/Credit memo): X
  • DOC_DATE (Document date): 05.20.2000
  • PSTNG_DATE (Posting date): 05.23.2000
  • COMP_CODE (Company code): 0001
  • CURRENCY (Currency key): USD

  • GROSS_AMOUNT (Gross amount): 100.00
  • Table AdditionalHeaderData

  • ASSIGN_DELIV (Indicator: Delivery items assignment): X
  • ASSIGN_RETURN (Indicator: Returns assignment): X
  • DELIV_POSTING (Posting logic for delivery items (Invoice=S/Credit memo=H): S

  • RETURN_POSTING (Posting logic for returns items (Invoice=S/Credit memo=H): H
  • SEL_GOODS (Indicator: Goods invoice/Service)
  • SEL_DELIV_COSTS (Indicator: Planned delivery costs)
  • Table SelectPo: PO_NUMBER (Document number of the purchasing document:4500000697


    Table VendorItemSplitData

    1st vendor line

  • SPLIT_KEY (Grouping key for split in the vendor line): 0001
  • SPLIT_AMOUNT(Partial invoice gross amount in document currency): 40.00
  • PYMT_METH (Payment method): S

  • TAX_CODE (Tax code): V0
  • PMNTTRMS (Terms of payment key): 0001
  • 2nd vendor line

  • SPLIT_KEY (Grouping key for split in the vendor line): 0002
  • SPLIT_AMOUNT(Gross invoice amount in document currency): 60.00

  • PYMT_METH (Payment method): U
  • TAX_CODE (Tax code): V0
  • PMNTTRMS (Terms of payment key): 0003
  • For more information, see the parameter documentation for the tables HeaderData, <DS:FU.BAPI_INCOMINGINVOICE_SAVE ADDITIONALHEADERDATA>AddtionalHeaderData, SelectPo, and VendorItemSplitData.



    11-Dec-2005