Skip to Content

BAPI_INCOMINGINVOICE_CREATE

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Mar 23 at 08:35 AM

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

    especially Q&A 24 in the general section,

    Add comment
    10|10000 characters needed characters exceeded

  • May 08 at 11:57 AM

    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
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 23 at 08:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06 at 07:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 04 at 08:22 AM

    Hello everyone,

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

    Add comment
    10|10000 characters needed 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?