Skip to Content
0
Former Member
Aug 31, 2007 at 02:40 PM

BAPI_INCOMINGINVOICE_CREATE

923 Views

I used this BAPI to create inv. I want to create two invoice items for one PO item,and it looks right because I found this example in the documentation of the BAPI itself:

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 table TaxData to post an invoice containing planned delivery costs.

Purchase order: 100 pc of material A @ $1.00/pc

Goods receipt: 100 pc of material A

You receive an invoice for this purchase order referencing PO number 4500006986, PO item 10, for a quantity of 100 pieces of material A and $136.00, including 16% VAT and $20.00 planned delivery costs. Enter the following data:

HeaderData table

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

ItemData table

Line 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 (Tax code): VN

ITEM_AMOUNT (Item amount): 100.00

QUANTITY (Quantity): 100

PO_UNIT (Unit of measure): PC

Line 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

TaxData table

TAX_CODE (Tax code): VN

TAX_AMOUNT (Tax amount in document currency): 16.00

But when I do like this ,it give me an 'E' type message: The same PO item are used more than once.

eeeeeeeeeeeeeeeeeeeeeee !!-_- who can tell me why? thx~~~