Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Likes
2,009

Hi All,

We are using IDOC_INPUT_INVOIC_MRM, inbound IDOC to create invoice(MIRO).But it is not created for planned delivery costs .so we need to create for that also.Invoice will create while triggering the ouput type RD04.I found BAPI_INCOMINGINVOICE_CREATE to create planned delivery costs.Instead of trigger IDOC,how to trigger this BAPI?

Please suggest.

Thanks and Regards,

Krishna.

3 REPLIES 3
Read only

jaideepsharma
Active Contributor
0 Likes
1,128

You can call the bapi in source system and populate the data as shown in example below:

Example: Incoming 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 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

<REMOVED BY MODERATOR>

Edited by: jaideep sharma on Apr 8, 2008 2:15 AM

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 4:48 PM

Read only

Former Member
0 Likes
1,128

Thanks.

Read only

0 Likes
1,128

Hello,

If you want to use IDoc, you can create a specific EDI function which will call BAPI_INCOMINGINVOICE_CREATE and set up EDI to use your function for invoices with planned delivery costs

Jean-Michel