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 error

sanjeev_mishra_15aug
Active Participant
0 Likes
2,108

Hi Experts,

I need to create a debit note for Vendor to GL i.e. Credit Note for Vendor to GL. For this I am using the BAPI_INCOMINGINVOICE_CREATE. Following are the parameters I have passed to it.

But can't get document posted.

Please suggest.

Header Data:

DOC_TYPE= 46

DOC_DATE= 28.06.2016

PSTNG_DATE= 28.06.2016

REF_DOC_NO = 5000206089 (MIGO NO)

COMP_CODE = 2000

CURRENCY= INR

GROSS_AMOUNT= 15

PMNTTRMS = V000

BLINE_DATE= 28.06.2016

HEADER_TXT= 242600074810

BUS_AREA = 2104

ITEM_DATA

INVOICE_DOC_ITEM = 000001

PO_NUMBER = 2426000748

PO_ITEM = 0010

REF_DOC = 5000206089 (MIGO)

REF_DOC_YEAR = 2016

REF_DOC_IT = 0001

DE_CRE_IND = S

TAX_CODE = V0

ITEM_AMOUNT = 15.0000

QUANTITY = 5.000

PO_UNIT = MT

ITEM_TEXT= HGHGH

MATERIALDATA

INVOICE_DOC_ITEM = 000002

MATERIAL = VD20001001

VAL_AREA = 2104

DB_CR_IND = H

ITEM_AMOUNT = 15.0000

QUANTITY = 5.000

BASE_UOM = MT

TAX_CODE = V0 (NO TAX)

On running this Bapi after filling up the above values, I get the following output in the return table:

E M8                   080 Reversal quantity greater than quantity invoiced to date

Please suggest me to overcome this issue.

Thanks

Sanjeev

1 ACCEPTED SOLUTION
Read only

Chintu6august
Contributor
0 Likes
1,532

Hi,

Quantity of credit memo should be less than or equal to the invoiced quantity, if you will pass greater than invoice quantity it return error message.


thanks!

2 REPLIES 2
Read only

Chintu6august
Contributor
0 Likes
1,533

Hi,

Quantity of credit memo should be less than or equal to the invoiced quantity, if you will pass greater than invoice quantity it return error message.


thanks!

Read only

0 Likes
1,532

Thanks Chintu for your reply,

But in fact I need to bypass this error and to create Debit note anyhow while creating Usage Decision using Tcode QA11. That also using BADI. I am using MB_Document_Badi here.

So kindly suggest me to bypass this error.

Thanks.