<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI_INCOMINGINVOICE_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761525#M1116461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;check whether u have clear/refreshed the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
      EXPORTING
        headerdata       = is_header
      IMPORTING
        invoicedocnumber = is_output1-docno
        fiscalyear       = w_gjahr
      TABLES
        itemdata         = it_itemdata
        glaccountdata    = it_glaccountdata
        withtaxdata      = it_withtaxdata
        return           = it_return.

    IF is_output1-docno IS NOT INITIAL.

      CLEAR is_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    endif.

CLEAR is_header.
CLEAR w_item_no.
CLEAR w_tot_servtx.
CLEAR w_tot_ecess.
REFRESH it_itemdata.
REFRESH it_withtaxdata.
REFRESH it_glaccountdata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Padmashree RamMaghenthar on Nov 18, 2008 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2008 05:35:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-18T05:35:42Z</dc:date>
    <item>
      <title>BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761523#M1116459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , Gurus , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a prorgam that uses a bapi : BAPI_INCOMINGINVOICE_CREATE . Now ,this is being run in a loop for the same PO but different service entry sheets . THe problem occurs after the first pass. The BAPI is internally calling a function module : ME_READ_HISTORY_HEADER which maintaines a history internal table. On the first pass this table is empty , so the selection from ekbe and other tables work and the service entry sheet is validated against the PO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the second pass however , the history internal table within the function module ME_READ_HISTORY_HEADER is still storing the old values , and it does not allow to retrieve the new SES , as a result the PO and SES do not match and there is an error. How can I solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 19:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761523#M1116459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T19:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761524#M1116460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Pls let me know, what is the error message you are getting in the return table&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 05:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761524#M1116460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T05:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761525#M1116461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;check whether u have clear/refreshed the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
      EXPORTING
        headerdata       = is_header
      IMPORTING
        invoicedocnumber = is_output1-docno
        fiscalyear       = w_gjahr
      TABLES
        itemdata         = it_itemdata
        glaccountdata    = it_glaccountdata
        withtaxdata      = it_withtaxdata
        return           = it_return.

    IF is_output1-docno IS NOT INITIAL.

      CLEAR is_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    endif.

CLEAR is_header.
CLEAR w_item_no.
CLEAR w_tot_servtx.
CLEAR w_tot_ecess.
REFRESH it_itemdata.
REFRESH it_withtaxdata.
REFRESH it_glaccountdata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Padmashree RamMaghenthar on Nov 18, 2008 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 05:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761525#M1116461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T05:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761526#M1116462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls refer to OSS note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 383895 - BAPI_INCOMINGINVOICE_CREATE: Error M8607&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may give some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls take opinion from SAP / Basis before implementing the note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 05:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761526#M1116462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T05:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761527#M1116463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I get the following error message :&lt;/P&gt;&lt;P&gt;SE 22 (Entry sheet &amp;amp; does not belong to purchase order &amp;amp; &amp;amp;). So its a mesmatch between PO and entry sheet , because the entry sheet created after the first pass is not present the history internal table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 16:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761527#M1116463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INCOMINGINVOICE_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761528#M1116464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing exactly the same error because of the same cause. We transfer the shipment cost document for each freight invoice and this creates a new SES for the same PO. If run all the freight invoice IDOCs all at once, first IDOC gets posted successfully and all others fails with the Entry Sheet does not match the PO error. Were you able to solve it? It would be great if you could share us the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, the freight invoice IDOC FM is a custom one calling the BAPI_INCOMINGINVOICE_CREATE  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2012 12:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-create/m-p/4761528#M1116464</guid>
      <dc:creator>venkatachalam_raj</dc:creator>
      <dc:date>2012-01-28T12:41:35Z</dc:date>
    </item>
  </channel>
</rss>

