2006 Mar 21 10:45 AM
Hi,
I have to do MIRO posting for Standard PO (Type NB) and corresponding Credit PO (Type NE) using BAPI_INCOMINGINVOICE_CREATE.
I am getting some errors while trying to do so.
If anybody has attempted this before, kindly let me know which fields we need to populate.
Thanks in advance.
Regards,
Shubha.
2006 Mar 21 10:57 AM
Hi Shubha,
You can see the Bapi FMs documentation for some examples in the documentation itself.
Like:
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/piece
Goods receipt: 10 pieces of material A
You receive an invoice against this purchase order, with reference to purchase order number 4500007491, order item 10, for a quantity of 10 pieces of material A and an amount of $116, 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
If you can tell us what error are you exactly getting, then people may find it easier to help you.
Regards,
Ravi
2006 Mar 21 10:57 AM
Hi Shubha,
You can see the Bapi FMs documentation for some examples in the documentation itself.
Like:
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/piece
Goods receipt: 10 pieces of material A
You receive an invoice against this purchase order, with reference to purchase order number 4500007491, order item 10, for a quantity of 10 pieces of material A and an amount of $116, 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
If you can tell us what error are you exactly getting, then people may find it easier to help you.
Regards,
Ravi
2006 Mar 22 1:59 AM
Hi Ravi,
Thanks for your reply.
I had a look at the FM documentation earlier too but I did not find this particular scenario there. (Invoice Verification for Standard PO & Credit PO).
The error I am getting is 'Account assignment for entry sheet missing.
But when I check Entry sheet for Std PO, Acct assignment is already there.
Is there a possibility that this particular case of posting is not supported by BAPI?
Regards,
Shubha.