<?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_save errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027582#M415825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond. I think you are right to suggest OSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe what is happening is that the BAPI calls the function module "me_read_header_invoice" which checks the purchase order. One of the checks this function makes is whether the PO is complete (In the procedure bestellkopf_lesen line 94) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ekko-memory ne space.&lt;/P&gt;&lt;P&gt;    PERFORM ENTSPERREN_EKKO USING H-EBELN.&lt;/P&gt;&lt;P&gt;    MESSAGE E045(MEPO) WITH EKKO-EBELN      "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;                 RAISING PARKED_DOCUMENT.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you look at the functin call this exception  PARKED_DOCUMENT is not checked. (in the include: LMRM_BAPIF0W).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ME_READ_HEADER_INVOICE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              display      = 'X'&lt;/P&gt;&lt;P&gt;              ebeln        = s_selectpo-po_number&lt;/P&gt;&lt;P&gt;              re_kursf     = i_rbkpv-kursf&lt;/P&gt;&lt;P&gt;              re_waers     = i_rbkpv-waers&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              iekko        = s_ekko&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found    = 1&lt;/P&gt;&lt;P&gt;              wrong_type   = 2&lt;/P&gt;&lt;P&gt;              not_activ    = 3&lt;/P&gt;&lt;P&gt;              not_released = 4.    "&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line 32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this I suggest the following standard SAP code change is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ME_READ_HEADER_INVOICE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              display      = 'X'&lt;/P&gt;&lt;P&gt;              ebeln        = s_selectpo-po_number&lt;/P&gt;&lt;P&gt;              re_kursf     = i_rbkpv-kursf&lt;/P&gt;&lt;P&gt;              re_waers     = i_rbkpv-waers&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              iekko        = s_ekko&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found    = 1&lt;/P&gt;&lt;P&gt;              wrong_type   = 2&lt;/P&gt;&lt;P&gt;              not_activ    = 3&lt;/P&gt;&lt;P&gt;              not_released = 4    "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line 32 fullstop removed&lt;/P&gt;&lt;P&gt;              others       = 5.   "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line inserted &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this sound like I am on the right track?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Mar 2007 08:26:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-25T08:26:53Z</dc:date>
    <item>
      <title>bapi_incominginvoice_save errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027580#M415823</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;I am using bapi_incominginvoice_save to create a logistical invoice (similar to transaction MIRA). In my program, after BAPI execution I check the contents of the 'RETURN' parameter for any problems that may have occurred. However, I have found that certain 'E' messages do not get passed to the BAPI's 'RETURN' parameter but instead result in the end the program. As a result the subsequent statements in the calling program are not executed. Is there some configuration that needs to be setup to ensure all messages are passed to the RETURN parameter rather than executed at runtime?&lt;/P&gt;&lt;P&gt;An example of one such message is: purchase order incomplete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestions are very much appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2007 08:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027580#M415823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-24T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_incominginvoice_save errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027581#M415824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these abort come from standard SAP code, look for a note or send an OSS message.&lt;/P&gt;&lt;P&gt;IF they come from client developpement, BADI for example, maybe theses need some corrections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at OSS &amp;lt;a href="https://service.sap.com/sap/support/notes/771655"&amp;gt;Note 771655 - BAPI invoice verification: no posting&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2007 09:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027581#M415824</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-03-24T09:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_incominginvoice_save errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027582#M415825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond. I think you are right to suggest OSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe what is happening is that the BAPI calls the function module "me_read_header_invoice" which checks the purchase order. One of the checks this function makes is whether the PO is complete (In the procedure bestellkopf_lesen line 94) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ekko-memory ne space.&lt;/P&gt;&lt;P&gt;    PERFORM ENTSPERREN_EKKO USING H-EBELN.&lt;/P&gt;&lt;P&gt;    MESSAGE E045(MEPO) WITH EKKO-EBELN      "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;                 RAISING PARKED_DOCUMENT.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you look at the functin call this exception  PARKED_DOCUMENT is not checked. (in the include: LMRM_BAPIF0W).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ME_READ_HEADER_INVOICE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              display      = 'X'&lt;/P&gt;&lt;P&gt;              ebeln        = s_selectpo-po_number&lt;/P&gt;&lt;P&gt;              re_kursf     = i_rbkpv-kursf&lt;/P&gt;&lt;P&gt;              re_waers     = i_rbkpv-waers&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              iekko        = s_ekko&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found    = 1&lt;/P&gt;&lt;P&gt;              wrong_type   = 2&lt;/P&gt;&lt;P&gt;              not_activ    = 3&lt;/P&gt;&lt;P&gt;              not_released = 4.    "&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line 32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this I suggest the following standard SAP code change is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ME_READ_HEADER_INVOICE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              display      = 'X'&lt;/P&gt;&lt;P&gt;              ebeln        = s_selectpo-po_number&lt;/P&gt;&lt;P&gt;              re_kursf     = i_rbkpv-kursf&lt;/P&gt;&lt;P&gt;              re_waers     = i_rbkpv-waers&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              iekko        = s_ekko&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found    = 1&lt;/P&gt;&lt;P&gt;              wrong_type   = 2&lt;/P&gt;&lt;P&gt;              not_activ    = 3&lt;/P&gt;&lt;P&gt;              not_released = 4    "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line 32 fullstop removed&lt;/P&gt;&lt;P&gt;              others       = 5.   "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Line inserted &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this sound like I am on the right track?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2007 08:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-incominginvoice-save-errors/m-p/2027582#M415825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-25T08:26:53Z</dc:date>
    </item>
  </channel>
</rss>

