Application Development 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: 

BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Kudos
494

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.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos
297

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

2 REPLIES 2

former_member181962
Active Contributor
0 Kudos
298

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

0 Kudos
297

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.