ERS Invoices via BAPI

When a Purchase Order is marked as ERS relevant (self billing or self invoice), is it possible to post the incoming invoice using BAPI_INCOMINGINVOICE_CREATE? If so, how.
I notice when I post an invoice with the BAPI on such a PO document, an invoice is created but the ERS relevant table EKRS is not updated. This means the system stil thinks the purchase order was not invoiced, because when I run tcode MRRL, another invoice is posted by the standard application on the PO document.

Thank you.
But I could not understand the note fully.
It says PLN_PCKG and PLN_LINE of ENTRYSHEET SERVICES should correspond exactly to ESLL-PACKNO and ESLL-INTROW
But ESLL-PACKNOand ESLL-INTROW will be created after service entry creation.
1.Which number I should put in PLN_PCKG and PLN_LINe of ENTRYSHEET SERVICES?
2. Also suppose XI got 10 for creating different service entries in one file.
Now for each entry if PCKG_NO in ENTRYSHEETSERVICES is 1and SUBPCKG_NO is 2 ,then wil it create any problem?
Means for 10 entries should I need to give PCKG_NO 1, 2,3 etc
Please advice.

Similar Messages

  • Archiving incoming invoice via BAPI

    I have a scenario were we receive incoming invoice as a formatted text-file with a corresponding pdf image of the invoice. The concept is to first create an archived document reference of the PDF (via a BAPI call) and then send the archive-doc-id with the INVOIC01 Idoc and link these so that the PDF appears as an attachment in the MM invoice in transaction MIR4. The middleware used is MS BizTalk.
    The problem is that the BAPI seems to require a dialog user to post the PDF, and returns the message "RFC partner does not allow to start any program" (CMS057).
    Does anyone have experience with this?
    The BAPI coding:
    function z_bapi_archivobject_createfile .
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(I_ARCHIV_ID) TYPE  BAPITOAV0-ARCHIV_ID
    *"     VALUE(I_DOCUMENT_TYPE) TYPE  BAPIARCPAR-DOC_TYPE
    *"     VALUE(I_FILEPATH) TYPE  SAPB-SAPPFAD
    *"  EXPORTING
    *"     VALUE(E_ARCHIV_DOC_ID) TYPE  TOAV0-ARC_DOC_ID
    *"     VALUE(E_BAPIRETURN) TYPE  BAPIRET2
      call function 'ARCHIVOBJECT_CREATE_FILE'
        exporting
          archiv_id                = i_archiv_id
          document_type            = i_document_type
          path                     = i_filepath
        importing
          archiv_doc_id            = e_archiv_doc_id
        exceptions
          error_archiv             = 1
          error_communicationtable = 2
          error_upload             = 3
          error_kernel             = 4
          others                   = 99.
      if sy-subrc <> 0.
        call function 'BALW_BAPIRETURN_GET2'
          exporting
            type   = sy-msgty
            cl     = sy-msgid
            number = sy-msgno
            par1   = sy-msgv1
            par2   = sy-msgv2
            par3   = sy-msgv3
            par4   = sy-msgv4
          importing
            return = e_bapireturn.
      endif.
    endfunction.

    Hi,
    You can  check whether the invoice has been processed via FM. IDOC_INPUT_BBP_IV in R3 system.
    If the invoice has been processed via FM IDOC_INPUT_BBP_IV, then you can check which user-exits can be used for duplicate invoice check within FG BBPI.
    In standard BAPI processes system can't support the functionality for
    duplicate invoice check. Thanking you

  • Double generation of ERS Invoices

    hi all,
    Oracle Applications 11.5.9
    After running of Pay on Receipt Auto invoice and Payables Open Interface. Two ERS invoices of same amount against the same receipt number are generated in AP with different numbers.
    Regards
    Shekhar

    Shekhar,
    We've also encountered this problem in 11.5.9.
    When running Pay on Receipt Auto Invoice make certain it is the only one running. When more than one of these programs are executing at the same time duplicates are created. At minimum, one will reject and must be removed from the Payables Open Interface reject report manually via the Oracle Gateway form.
    The solution, per Oracle support, is to make the Pay on Receipt Auto Invoice program incompatible with itself. While I don't understand that request, when presented to a DBA, they understood what to do to make certain the routine could not concurrent with itself. Since this change, no problems have occurred.
    See metalink note 268878.1.
    Regards,
    Rich

  • Cancellation of ERS invoice and GR

    Hi gurus,
    I am trying to cancel good receipt via MBST, but getting error M7021 (Deficit of PU IR quantity). This is caused because there is an invoice booked via MRRL for this PO/GR. When trying to cancel this invoice via MR8M there is message issued (M8414), saying that this is ERS invoice and cancelation can not be processed. Proposal is to cancel good reciept first, but as stated above, this is not possible because of error.
    We are going around a circle, can you please advise how to solve this problem.
    Thanks!

    Hi,
    As a procedure,
    First step,Cancelling the ERS invoice.
    Second step,Cancelling the Goods receipt.
    Without cancelling the ERS invoice,system wont let you to cancel the Goods receipt.
    Since your are getting error message on First step,Change the Message attribute From
    Error to Warning message (M8414) -->Logistics Invoice Verification -->Define Attributes of system messages.
    Then system will let you to cancel the ERS invoice and cancell the Goods receipt.

  • BW report to replicate an ERS Invoice

    Hello,
    We currently send our ERS Invoices to our suppliers via email. We would like to shut off the ERS email invoices and give them access to a BW report with similar information.
    1) Does anyone know of a BW report that matches the data in the ERS Invoice?
    2) How can I turn off the ERS Invoice email?
    Thanks,
    Matt

    I was not sure if there was a standard BW report to do this but it appears we will be training our suppliers to log into our portal and get the information on their own.
    Thanks,
    Matt

  • How to reverse an ERS invoice?

    Hi all,
    I need some advice as to what is the proper way of reversing an ERS invoice. Example. I have a purchase order which the invoice was generated via ERS. Later we realized that the GR we have done was incorrect. Invoice has been issued for that GR. The FI went ahead to create a credit memo via MIRO and then the warehouse people have reverse the GR.
    Is this the correct way? I did testing. When I tried to reverse the GR without cancelling the invoice, I will receive an error message that says Deficit of PU IR quantity 1.000 CRT.
    Then I tried cancelling the invoice via MR8M but the system Igives me a meesage saying nvoice doc. 5105614721/2008 was created via evaluated receipt settlement
    I read through some forums and some have advised that we can set the indicator at this setting SPRO-> Materials Management -> Inventory Management and Physical Inventory -> Goods Receipt -> For GR-Based IV, Reversal of GR Despite Invoice. I am not able to set this indicator as the client's environment will not allow me to do so.
    Appreciate any advice.

    Hi,
    MR8M will not work.
    The other way to do this would be to reverse the GR manually (mvt 162) and then run MRRL again to post an invoice cancellation document that can be sent to the vendor. For this to work though, the 'Rev GR despite IR' flag needs to be set for mvt 162 in OMBZ (config). Also before setting this flag, you need to ensure that this does not affect other non-ERS returns using mvt 162.
    Reference. stated in Help.sap.com
    Credit memos can also be created using ERS: if an invoice has already been posted for a goods receipt and goods have since been returned, the system automatically generates a credit memo for the returned quantity during the next ERS run.
    reg,
    Ashok

  • Single ERS Invoice for multiple POs with different GS and same IP

    Dear All,
    I have a Requirement as per the below scenario:
    We need to have single invoice created using ERS (MRRL) functionality in the below scenario:
    Two POs created with different Partner function GS (goods supplier) and same IP (Invoice party partner function).
    Ex:
    GS IP PO GR ERS
    vendor1 10001 4500001 500001 Yes ( GR-IV-Yes, GR done- Yes, same payment terms - 001)
    vendor2 10001 4500002 500002 Yes ( GR-IV-Yes, GR done- Yes, same payment terms - 001)
    When I run ERS for last 1 week (GR) and select the option (Doc selection – per IP or other criteria like GRs posted in last one week) , system should create 1 invoice document. Standard SAP posts 2 documents for each GS.
    I have tried using 2 user exits for MRRL, but none of them work for this functionality.
    Thanks,

    Hi,
    Go for  MIRO without MRRL.
    Instead ERS, you can post single  Invoice(MIRO) for multiple POs  for one vendor.
    OR
    Check with Technical consultant and go for development to have single ERS output for multiple ERS invoice documents for single vendor.
    Regards,
    Biju K

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

  • Create Support Message via BAPI with additional partners

    Hi all,
    i need to create a support message (slfn) via  bapi / function module. The basic creation is no problem with BAPI_NOTIFICATION_CREATE.
    But i need to set additional partner(functions) like "approved by" in the support message. With this bapi i can only set the processor and creator of the message.
    How can i add additional partners via BAPI call?
    Any help would be much appreciated.
    Daniel

    Hi Daniel,
    i do not think there is a standard functionality for this.
    you can use function module CRM_DNO_UPDATE_PARTNER to set partner functions to a message. You will have to build your own RFC enabled function module around this, though.
    Then you can use it to add your partners after the message was created.
    Regards,
    Christoph

  • Cancelling ERS invoice of Freight GR

    Hello all,
    I know there already exist some threads about this topic, but I couldn find any with the connection to the freight solution (freight costs).
    MR8M
    Due to Message No. M8414; I'm not allowed to book an invoice cancellation in MR8M for an ERS invoice. Reason is
    If you want invoice creation to take place completely using ERS, then you must cancel the goods receipt and not the invoice document. ERS will then create the relevant cancellation invoice document for the canceled goods movement. When the goods receipt is entered again, ERS creates the invoice document according to the goods receipt quantity and the conditions from the purchasing document that are valid at that time.
    This method is the only means of guaranteeing that the messages that may be created during ERS are also issued.
    This is clear for me, so I want to book the cancellation of GR in MIGO
    Here the error message is: Transaction code MBST (=> use transaction ML81 / ML85) not defined
    So I want to take ML81 or ML85
    But here I do not have any chance to change, delete or cancel the GR.
    I also checked transaction OMBZ.For GR-Based IV, Reversal of GR Despite Invoice for movement type 102.
    Where can I finally start cancelling this process?
    Hope anybody can help me,
    kind regards Barbara

    Hi,
    Please refer below link in this regard. Thanking you.
    cancellation of ERS invoice and GR

  • Problem in sales order change via BAPI

    We are in AFS system and we try to reduce a quantity in sales order via BAPI.
    We recive back an error 8w 280. We are not able to find wich is and where is a problem.
    Does anyone have experince on that problem/error message
    Thanks in advance
    Andrea

    Hi Andrea,
    Since BAPI invloves more programming stuff, I adivce you to post this thread in the ABAP forums also.
    Regards,
    Senthilkumar SD

  • How to give all input parameter in creation of po via bapi

    sir plez tell clear process of create po via bapi, i have done upto "BAPI_PO_CREATIVE1, then what to do, plez stepwise explain
    thank Q

    Dear Baskhar,
    After BAPI_PO_CREATE1, you have to run BAPI_TRANSACTION_COMMIT to post
    the data.
    For example, from SE37:
    You can goto menubar: Function Module
    Test-> Test sequence,
    Fill in BAPI_PO_CREATE1 then follow by BAPI_TRANSACTION_COMMIT .
    Best Regards,
    Ian Wong

  • Handling unit creation in existing shipment via BAPI or IDOC

    Dear all,
    Dose any one tried and succeed packing deliveries items in an existing shipment in the shipment level via BAPI or IDOC.
    I tried to use IDOC massage type SHPADV. The problem was that it's creates a new shipment with the same deliveries and pack their items, although I entered the existing shipment number.
    With regards to "BAPI_SHIPMENT_CHANGE", it is seems like this BAPI is not an option. It is update the shipment in any shipment field but not creating HU in shipment level.
    Dose there any solution via those options or there is any other solution.
    Thanks in advance,
    Itai

    I tried simulating this LSMW (message type-  PREQCR1, Baisc type -PREQCR101) and it is working fine. I used creation indicator = R in item segment - E1BPMEREQITEM and have not updated value for this field in Header. So try without any value for CREATE_IND in HEADER and just pass R in item.
    yogesh

  • Is there any easy way to send free invoice via email without my credit info

    Is there any easy way to send free invoice via email without my credit info?

    Depends upon what you mean by 'it failed'. If it's that you are getting a message to contact iTunes Support then no, you will have to contact them (the 48 hours should be the maximum time that it takes for them to reply).

  • Document and PS Project - create a link via BAPI?

    Hi everybody,
    follow problem: I have a document and a project. How can I create a link between both via BAPI?
    Means: create a real exsitens document in a project with ...
    FB's. What is to do?
    Thanks for help.
    Regards Thomas

    Hi,
    one sol. might be ta <b>OAOH</b> with BUS-object 2001
    another <b>OAOR</b>. pls search the corresponding fm's in that transactions
    Andreas

Maybe you are looking for

  • Plsql webservices deploy error in weblogic.... Can anybody help me.. Urgent

    Could any body look into this exception.... I am stuggling with this for the last one week........ I have generated the webservices from PLSql procedure, deployed and tested in oc4j which is successfull running and I can access the webservice too....

  • Problem in Copying Pricing Condition Type

    Hi All, This problem is regarding copying pricing condition type in Sales Order. The problem is given below with an example - Qty of Material A - 10 PC. Condi Type   Amount  Currency   Per  UOM  Condition value  Currency ZP06             100        

  • Nokia 3500 classic - .rms files created with junk ...

    I have purchased a Nokia 3500 classic in July 2008. I am using 1GB memory card and installing applications on it. Recently I found that though my memory card's capacity is 1GB, the space utilised was shown as 3.4GB. I was stunned. Then I opened the m

  • Media encoder aspect ratio problem

    I'm trying to do a simple  quicktime export with the media encoder.My source file is AVI 720x480 widescreen 1.2 and I'm exporting to Quicktime 720x480 widesreen 1.2. What I get is a vertically stretched video. When I export to "Square Pixels" It has

  • Samsung SCX 4729 scanner's software crash

    Hello folks ! Since I upgraded to 10.10, which is BTW really nice, I encounter numerous crashes with the Samsung scan soft, let's say it crashes almost every time after scanning documents and just before retrieving the data from the scanner to the Ma