‎2008 Apr 07 7:23 AM
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.
‎2008 Apr 07 9:43 PM
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
‎2008 Apr 15 8:14 AM
‎2008 Apr 15 8:23 AM
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