BAPI for Non PO Invoice posting?

Hi Experts,
   I am posting invoices using BAPI_INCOMINGINVOICE_CREATE. These invoices have POs associated with the Item Details. This is working fine for me.
   I want to post invoices that DO NOT have a PO. Can someone please point me to a BAPI that is similar to BAPI_INCOMINGINVOICE_CREATE in functionality but does not require a PO?
Thanks,
- Vik.

I too was looking for a BAPI for non PO invoice posting.  I found that the above counsel did not work for me.  Instead of creating a buyside invoice, it just created a journal entry.  What DID work for me was BAPI_ACC_INVOICE_RECEIPT_POST.
Below, I am pasteing the subroutines that I created for its calling.  In it, for my purposes, only the invoice amount is parameter driven.  My needs allowed all other BAPI parameters to stay the same.
I hope that this helps someone.
Donald Nigro
FORM create_buyside_invoice USING value(invoice_amt) TYPE p.
  DATA:
    gd_documentheader  LIKE bapiache03,
    it_accountpayable  LIKE bapiacap03 OCCURS 0 WITH HEADER LINE,
    it_accountgl       LIKE bapiacgl03 OCCURS 0 WITH HEADER LINE,
    it_accounttax      LIKE bapiactx01 OCCURS 0 WITH HEADER LINE,
    it_currencyamount  LIKE bapiaccr01 OCCURS 0 WITH HEADER LINE,
    it_return          LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
  DATA:
  wa_obj_key(20)  TYPE c.
fill header
  gd_documentheader-username   =  sy-uname.
  gd_documentheader-header_txt = 'E-Payables Invoice'.
  gd_documentheader-comp_code  = 'EAUS'.
  gd_documentheader-doc_date   =  sy-datum.
  gd_documentheader-pstng_date =  sy-datum.
  gd_documentheader-doc_type   = 'KR'.
  CONCATENATE 'BOA' sy-datum sy-uzeit(4)
               INTO gd_documentheader-ref_doc_no.
fill AP (line 1)
  it_accountpayable-itemno_acc = 1.
  IF sy-sysid(3) = 'DEV'.
    it_accountpayable-vendor_no  = '0600013370'.
  ELSE.
    it_accountpayable-vendor_no  = '0600009022'.
  ENDIF.
  APPEND it_accountpayable.
fill GL (line 2)
  it_accountgl-itemno_acc      =  2.
  it_accountgl-gl_account      = '0001112227'.
  it_accountgl-comp_code       = 'EAUS'.
  it_accountgl-pstng_date      =  sy-datum.
  it_accountgl-fisc_year       =  sy-datum(4).
  it_accountgl-fis_period      =  sy-datum+4(2).
  it_accountgl-bus_area        = '0100'.
  APPEND it_accountgl.
fill currency ammounts for lines 1 & 2
  it_currencyamount-currency    = 'USD'.
  it_currencyamount-itemno_acc  = 1.
  it_currencyamount-amt_doccur  = invoice_amt * -100.
  APPEND it_currencyamount.
  it_currencyamount-itemno_acc  = 2.
  it_currencyamount-amt_doccur  = invoice_amt *  100..
  APPEND it_currencyamount.
  CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK'
       EXPORTING
            documentheader = gd_documentheader
       TABLES
            accountpayable = it_accountpayable
            accountgl      = it_accountgl
            accounttax     = it_accounttax
            currencyamount = it_currencyamount
            return         = it_return.
  PERFORM invoice_error_check TABLES it_return.
  CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
       EXPORTING
            documentheader = gd_documentheader
       IMPORTING
            obj_key        = wa_obj_key
       TABLES
            accountpayable = it_accountpayable
            accountgl      = it_accountgl
            accounttax     = it_accounttax
            currencyamount = it_currencyamount
            return         = it_return.
  PERFORM invoice_error_check TABLES it_return.
  COMMIT WORK.
  WRITE: / 'ePayables Bank of America'.
  WRITE: / '  Invoice Document Number:',
              wa_obj_key(10).
ENDFORM.
     Form  invoice_error_check
FORM invoice_error_check TABLES it_return STRUCTURE bapiret2.
  DATA:
  bapi_success(5) TYPE c VALUE 'false'.
  LOOP AT it_return.
    IF it_return-type = 'S' AND bapi_success = 'false'.
      bapi_success = 'true'.
    ENDIF.
  ENDLOOP.
  IF bapi_success = 'false'.
    WRITE: / 'Unable to post a buyside invoice with',
             'BAPI_ACC_INVOICE_RECEIPT_POST'.
    LOOP AT it_return.
      WRITE: / 'Message Type:   ', it_return-type,
             / 'Message Class:  ', it_return-id,
             / 'Message Number: ', it_return-number,
             / 'Message:        ', (80) it_return-message.
    ENDLOOP.
    ROLLBACK WORK.
    STOP.
  ENDIF.
ENDFORM.

Similar Messages

  • BAPI for MIRO Incoming Invoice

    Hi All,
    I want BAPI for MIRO Posting ie for Incoming Invoice.
    .here MIRO is being done with Delivery Note number
    Following are the necessary entries for MIRO Posting
    Invoice date
    Reference
    Amount
    Calculate Tax
    Tax amount
    Delivery Note
    Vednor
    Business Area
    Please suggest me suitable BAPI for MIRO Incoming Invoice Posting with sample code.
    immediately.Please give some sample code for my reference.
    Rewards will be given.
    Regards.
    Ulhas

    Hi,
    BAPI for Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_CREATE
    The method can only carry out your function if no error messages were
    generated in the Return table. This is the case if the header data and
    all the items were processed successfully.
    Transaction control is not implemented. The calling program therefore
    has to execute the Commit Work itself after this method has been
    successfully called (in other words, if no errors were reported in the
    Return parameter).

  • Transaction Code for non-PO invoices

    Hello all,
    Is there any transaction code to generate a report of all non PO transactions posted in FY??
    We want to pull a report on a monthly/quarterly/basis to identify as to how many non PO transactions are posted for a period.
    We need a report to pull these non PO transactions.
    Thank you in advance,
    Regards,
    Manjunath

    Hi,
       Go to SE16 - enter the table BKPF. Now, in selection, enter the document type (that is document type, like KR, used for non PO invoices) and execute with date range. Here, system will show the list, with transaction code, user, date etc.
        If required, create an SQVI query with BKPF table, so that you can take the list directly.
        Another option would be FBL1N transaction. Here, go to dynamic selection and add the reconcilation account in the selection. Maintain all your vendor reconcillation accounts as "not equal to" and execute with date range.
    Regards,
    AKPT
    Message was edited by: AKPT MM

  • How to post an Idoc (INVOICE02) for non-po Invoice (MIRO transaction)

    Hi,
    I want to Post an Idoc for non-po vendor Invoice through MIRO transaction. I want to use INVOICE02 basic type. In the line item we need to enter G/L account , Cost center and line item amount. But I am not able to enter the same in the INVOICE02 Idoc. It will be nice if you please let me know how to post non-po Idoc through MIRO transaction.
    Thanks
    Rama
    Edited by: Rama Sengupta on Nov 25, 2009 3:57 PM

    Hi Raja,
    Check this out.
    Inbound IDocs are triggered by either external systems (edi, wms etc) or can be triggered by inhouse applications in SAP to post a application document.
    1. EDI_DATA_INCOMING can create a IDoc from a file on the OS layer. It just needs a IDoc flat file containing control and data records, it will create an Idoc from it if the control record successfully matches a inbound partner profile parameters.
    2. IDOC_INBOUND_ASYNCHRONOUS can be triggered by external/internal programs to creae IDoc withing SAP, whereas IDOC_INBOUND_SYNCHRONOUS can be used by inhouse SAP programs to create inbound Idoc.
    3. WE19 can create and post an existing inbound Idoc to application
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Non-po invoice posting using IDOC into LIV module

    Hi,
    does anyone know if idoc interface is available for posting non-po invoice as an LIV invoice into MM module. what  I found that I can post the idoc to FI module directly using message code - FI.
    Thanks.

    Hi
      I Got your name from this site.I would be very thankful if you can help me here.I am designing a EDI based invoice LIV.Is it possible to post some charges which are without PO reference but are coming in Vendor Invoices.Is it possible to post these kind of charges with EDI message INOIC01 or we have to post through FI posting.If possible through EDI in which segment of IDOC we will enter these charges with amt.Also is it possible to post credit memo also with EDI
    Thanks
    Sanjeev

  • BAPI for clearing vendor invoice

    Dear SAP Guru's,
                                 I need to make clearing of the invoice made for particular vendors on daily basis, i have tried to look in the forum but i find regarding the posting of vendor invoice but ---
    My requirement is to schedule a z-program which will automatically clear the vendor invoice. i am looking for any relevant BAPI that can be used for the said purpose.
    Thanks in advance,
    Rahul

    Hi Rahul,
    Hey did you get any BAPI to clear vendor invoice.
    Regards
    Neeraj Sharma

  • BAPI -for Creating EXCISE INVOICE AT DEPOT  tcode 'J1IG

    Hi All,
    Is there any  BAPI for Excise Invoice Creation at depot Tcode is J1IG
    Thanks,
    Satishreddy

    Hi,
    Please try this Function Module
    J_1I4A_CREATE_EXCISE_INVOICE
    Hope it helps.
    Regards
    Hiren K.Chitalia

  • BAPI for Capture excise invoice

    Dear Friends
      I wish to is there any BAPI available for capture excise invoice (tcode:- J1iex).
    please tell. I will apreciate your help.
    Regadrs
    Naeem

    hi
      pravin
          both the bapis are part of the Jiex tcode's program and their works fine.. may be you are not giving the all the values required over there.. in my case i have to work with the BDC... as i am also failed to implement it.
    Regads
    Naeem]

  • Non PO invoice posting in ECC from SRM

    Hi,
      We are creating non-PO invoice in SRM and upon approval, its posting in ECC as a material document, but the problem is that it is created without any line items. All the header information is passing fine only line item info is missing and it is going to parking status. There are no errors in IDOC transmission.
    Thanks,
    Sreedhar

    Freinds,
      Any thoughts on this?
    Thanks,
    Sreedhar

  • Downpayment clearing for opentext automatic invoice posting

    Hello everyone. My client is using OpenText VIM ( Vendor Invoice Management ) for incoming invoices. VIM automatically triggers FB60 (in case of PO invoice) & MIRO ( In case of PO invoice ). The invoice posting happens automatically in the background which doesn't allow automatic vendor downpayment clearing against these invoices ( done my a 'down payment clearing' push button in normal circumstances in MIRO when posting the invoice manually ). My client doesnt want to use F-54 for downpayment clearing after MIRO. Many of your clients now-a-days would be using automatic invoice posting , how are you guys managing the automatic downpayment process. I would really appreciate any kind of help. Thanks in advance

    IN A090 metioned the account under down payment clearing account field.

  • BAPI for vendor credit memo posting by FB65

    Hi guys,
    I need a BAPI to post vendor credit note by FB65.
    I am trying BAPI_ACC_DOCUMENT_POST, but I cannot find the fields to fill with the information we input at FB65 Payment tab, such as: Inv. Ref (document, year and item ).
    Could anybody help me?
    Cheers,
    Karla.

    HI ,
    Please Find below the relevant code to Fill the Fields while calling the BAPI for FB65
    step1.
    First of all fill the wa_bapiheader.
    *header data
        wa_bapiheader-username = sy-uname.
        wa_bapiheader-comp_code = wa_final-bukrs.
        wa_bapiheader-doc_date = sy-datum.
        wa_bapiheader-pstng_date = sy-datum.
        wa_bapiheader-doc_type = c_blart.
        wa_bapiheader-ref_doc_no = 'GROWPAY'.   "Can be the refrence text
        w_waers = wa_final-waers.
    Step2.
    Fill this internal table. i_currencyamount  and i_accountgl.
    i_final will be the Internal table conating all the Relevant data for Posting the Document.
    Loop at  i_final into wa_final.
    ADD 1 TO w_acc_lno.
        wa_accountgl-itemno_acc = w_acc_lno.        
        wa_accountgl-gl_account = wa_final-saknr.    "G/L Account
        wa_accountgl-plant = wa_final-werks.             " Plant
        wa_accountgl-costcenter = wa_final-kostl.       " Cost Center
        wa_accountgl-cond_type = wa_final-knumv.    "From EKKO for the Purchase Order
        wa_accountgl-po_number = wa_final-ebeln.    " Purchase Order no
        wa_accountgl-po_item = wa_final-ebelp.         " Line item in PO
        APPEND wa_accountgl TO i_accountgl.
        CLEAR : wa_accountgl.
        wa_currencyamount-itemno_acc = w_acc_lno.
        wa_currencyamount-currency = wa_final-waers.
        wa_currencyamount-amt_doccur = wa_final-kbetr.
        w_sum = w_sum + wa_final-kbetr.
        APPEND wa_currencyamount TO i_currencyamount.     " G/L line item
        CLEAR : wa_currencyamount.
    *item  data
          wa_accountpayable-itemno_acc = 1.
          wa_accountpayable-vendor_no = wa_final-lifnr.
          APPEND wa_accountpayable TO i_accountpayable.
    *Amount for the vendor line item.
          CLEAR : wa_currencyamount.
          wa_currencyamount-itemno_acc = 1.
          wa_currencyamount-currency = w_waers.
          wa_currencyamount-amt_doccur = 0 - w_sum.
          INSERT  wa_currencyamount INTO i_currencyamount INDEX 1.
    Step 3.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
              EXPORTING
                documentheader = wa_bapiheader
              TABLES
                accountgl           = i_accountgl
                currencyamount = i_currencyamount
                accountpayable = i_accountpayable
                return                 = i_result_out.
    i_result_out will conatin the messages returned by the BAPI.
        based on i_resuklt_out that is if the posting is Successful....call commit
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                     Wait = X.
    Endloop.
    I hope the above code may solve your problem....Thanks
    Regards ,
    Sonu Krishna.
    Edited by: Sonu Krishna PV on Aug 6, 2009 11:03 AM

  • Create a  BAPI for T-Code FBV0(Post Parking Document)

    Hello Experts,
    I need to create a BAPI for the T-code FBV0(Post Parking Document). Please help me with a sample code.
    Thanks,
    Suma

    Hello There.
    I would like to suggest my opinion,
    To know the Function module for a particular Transaction,
    1. Table TSTC gives the Program name for a particular transaction.
    There are includes which contain (say) "Global data" and "Function modules".
    2. To get BAPI function modules, Transaction BAPI is the most powerfull solution for any module.
    One more thing, to be kept in mind while creating a BAPI is to create a function module and make it RFC enabled.
    BAPIs are nothing but RFC enabled function modules.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Require BAPI for creating outgoing Invoice (Accounts Payable).

    Hi Friends,
       As per our requirement, we need to create an outgoing Invoice (ie., Accounts payable). Is there any BAPI available to create outgoing invoice?
    Thanks in advance,
    Sai.

    BAPI_ACC_DOCUMENT_POST try with this.
    see for sample code in this thread : What is exact BAPI for FB01 transaction......
    Reward points if useful
    Madhavi

  • Bapi for f-28 while posting with Pmnt advice no

    Hi friends,
                       Is it possible to upload data using bapi BAPI_ACC_DOCUMENT_POST  with payment advice number,
    or is any other bapi exits for it or i hav to use bdc for it.
    Binoy R

    Hello max,
    thanks for your valuable response.
    But as this BAPI can not be used what next can be done?
    Actually i want to create interface between SAP system and Non-SAP system which is using IBIS software.
    Interface is to be done in such way that IBIS report output should get posted directly in SAP system via F-28 on daily basis.
    Report of IBIS contains payments made by customers in a day.
    So definitely there are some open items in SAP that need to clear after posting for particular customer.
    Shall I go for 'Z' BAPI ? or is there any other technique for interface between two?
    Please suggest.
    Thank You.

  • Nota Fiscal Return for Non PO invoice

    Hi
    I am trying to create a Credit Memo thru MIRO for a non PO original inovice. How ever I am getting this error that NF number is not unique.
    This means that this vendor has already a inovice document with the same NF number. I am not getting this error for any other credit memos where original invoice is a PO related.
    Example:
    Original Inovice ( non PO related ) : NF number is 1123
    Credit Memo with same NF number is not created.
    Where and what needs to be changed ?
    Raj

    any clue on this ?
    Raj

Maybe you are looking for

  • Stacking layers top-to-tail to create a long banner print of software code in Photoshop

    I have lots of software code (in tSQL, html, JavaScript, XAML, and C#) that I need to print in a long scroll. The scroll will be no more than 440mm wide and as long as it needs to be (though the roll of paper is 45 m long so I’ll need to make sure it

  • Image in a JSP

    Hi all, I need to clear something in my mind, obvioulsy I am missing the whole picture. When I write an html page, I can have an image stored somewhere in my C drive, and then with the "img" tag, I can ask my browser to display it. When I want to do

  • Using SYSDATE in a PreparedStatement

    I feel sure this must have done already, but .... I need to use a PreparedStatement to insert rows. The table has a DATE column and I want to use the SYSDATE value. I've tried using setString("SYSDATE") and setObject("SYSDATE") but I'm getting ORA-01

  • Need Programming Help - Changing Algorithm for PhotoShop's Oil Paint Plug-In Filter

    The existing PhotoShop Oil Paint filter only works well when applied to relatively small image sizes of around 500kb. I need to apply these effects to relatively large image sizes of around 100mb. I do not have a background in programming, but to my

  • How to Uninstall Version Cue CS4?

    Although I have Version Cue CS4 switched off, I would like to remove it completely since I think my Mac is having startup issues and I want to remove any potential source I can. (Unfortuately CS4 has always been the greatest source of stability issue