Skip to Content
0

BAPI_INCOMINGINVOICE_CREATE

Mar 23 at 08:07 AM

96

avatar image

When I am creating an Invoice in MIRO i am not facing any issues. But for the same data, when I am using the BAPI, it is throwing the error : No sufficient record found in control table for <ccode>/<bus_place>/GKK, 21.03.2018. This is related to purchase, not sales. Any solution?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Jürgen L Mar 23 at 08:35 AM
1

Please see OSS note 2405801 - FAQ on Goods and Services Tax (GST)

especially Q&A 24 in the general section,

Share
10 |10000 characters needed characters left characters exceeded
Mohamed Niyas. R May 08 at 11:57 AM
1

Hi,

These are the mandatory input fields to be passed into the BAPI to create Invoice number.
*HEADER VALUES
  WA_BAPI_INCINV_CREATE_HEADER-INVOICE_IND      ='X'.
  WA_BAPI_INCINV_CREATE_HEADER-DOC_DATE         = Document Date 
  WA_BAPI_INCINV_CREATE_HEADER-COMP_CODE        = Company Code
  WA_BAPI_INCINV_CREATE_HEADER-CURRENCY         =Currency
  WA_BAPI_INCINV_CREATE_HEADER-CALC_TAX_IND     ='X'.
*ITEM VALUES
 WA_BAPI_INCINV_CREATE_HEADER-PSTNG_DATE        = Posting Date
 WA_BAPI_INCINV_CREATE_HEADER-REF_DOC_NO        = Reference
 WA_BAPI_INCINV_CREATE_ITEM-INVOICE_DOC_ITEM    ='0001'
 WA_BAPI_INCINV_CREATE_ITEM-PO_NUMBER           = Purchasing Doc.
 WA_BAPI_INCINV_CREATE_ITEM-PO_ITEM             = Item
 WA_BAPI_INCINV_CREATE_ITEM-REF_DOC             = Material Doc.
 WA_BAPI_INCINV_CREATE_ITEM-REF_DOC_YEAR        = Mat. Doc. Year
 WA_BAPI_INCINV_CREATE_ITEM-REF_DOC_IT          ='00001'.
 WA_BAPI_INCINV_CREATE_ITEM-TAX_CODE            = Tax code
 WA_BAPI_INCINV_CREATE_ITEM-ITEM_AMOUNT         = Amount
 WA_BAPI_INCINV_CREATE_ITEM-PO_UNIT             = Order Unit
 WA_BAPI_INCINV_CREATE_ITEM-QUANTITY            = PO Quantity
 WA_BAPI_INCINV_CREATE_HEADER-GROSS_AMOUNT      = Gross Amount.

CALLFUNCTION'BAPI_INCOMINGINVOICE_CREATE'

EXPORTING
     HEADERDATA                = WA_BAPI_INCINV_CREATE_HEADER
*    ADDRESSDATA               = IMPORTING
     INVOICEDOCNUMBER          = WA_INVOICEDOCNUMBER
*    FISCALYEAR                = TABLES
     ITEMDATA                  = IT_BAPI_INCINV_CREATE_ITEM[]
*    ACCOUNTINGDATA            =
*    GLACCOUNTDATA             =
*    MATERIALDATA              =
*    TAXDATA                   =
*    WITHTAXDATA               =
*    VENDORITEMSPLITDATA       = 
     RETURN                    = IT_RETURN2[]
*    EXTENSIONIN               =
*    TM_ITEMDATA               =.

CALLFUNCTION'BAPI_TRANSACTION_COMMIT'
EXPORTING
     WAIT          ='X'
*  IMPORTING
*    RETURN        =.
Hope this helped you.
Regards
Niyas
Share
10 |10000 characters needed characters left characters exceeded
Kali Charan Mar 23 at 08:15 AM
0

Exact answer I may not give, the Error may depend upon various things, In bapi may be some fields are having valid values, but you were given some wrong values. But You need to debug it, Best way to find the solution is, I mean what causes of the error is, If you get bapi error message, definitely it is having error no, So, in se91 try to check message number and class, then find where this no is used by using where used list in se91. put the break point then run the bapi in some other sessions, you may get the error , break point will be highlighted.then find the causes.

Share
10 |10000 characters needed characters left characters exceeded
Ian Wong
Apr 06 at 07:39 AM
0

Dear Shyamala,

Please check SAP KBA 2503575 for possible solution if your error is Indian localization specific and update if it helps.

Best Regards,

ian

Share
10 |10000 characters needed characters left characters exceeded
Shyamala Ramakrishnan Jun 04 at 08:22 AM
0

Hello everyone,

This issue was resolved. Turns out that an ODN configuration had to be disabled.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

What is that in detail? This would not really enable me to know where I have to check in case I had the same issue.

How did you get to this solution? And why worked it in normal transaction and not with the BAPI if the customizing was wrong?

2