<?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 error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875772#M675019</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 think there might be some problem with ur data whch u r passing...as far as i concerned the bapi should return messages in the return table..also when u r getting those messages on screen,as unlike BDC bapi don't navigate through screens...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 11:01:29 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-10-05T11:01:29Z</dc:date>
    <item>
      <title>BAPI error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875768#M675015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using a standard BAPI to post documents. i'm calling the BAPI in loop for multiple postings. &lt;/P&gt;&lt;P&gt;The problem is that in some cases, the BAPI is not returning the error mesage in return table and it directly throws it in the screen while the program is in execution. So due to this, the execution is terminated and the remaining data are not posted. &lt;/P&gt;&lt;P&gt;So i would like to know is there any way to catch the direct error messages and display it at the end of program execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 07:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875768#M675015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875769#M675016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check if the addition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR_MESSAGE = &amp;lt;some number&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can help you in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read ABAP documentation for the key word 'ERROR_MESSAGE' you will know how you to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 09:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875769#M675016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875770#M675017</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;try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after calling bapi say like this..&lt;/P&gt;&lt;P&gt;it will return the return structure ryt.&lt;/P&gt;&lt;P&gt;so do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1&lt;/P&gt;&lt;P&gt;call bapi.&lt;/P&gt;&lt;P&gt;if not it_return[] is initial.&lt;/P&gt;&lt;P&gt;read table it_return with key type = 'E'.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;call the FM 'FORMAT_MESSAGE'.&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;            id   = it_return -id&lt;/P&gt;&lt;P&gt;            lang = sy-langu&lt;/P&gt;&lt;P&gt;            no   = it_return -msgnr&lt;/P&gt;&lt;P&gt;            v1   = it_return -message_v1&lt;/P&gt;&lt;P&gt;            v2   = it_return -message_v2&lt;/P&gt;&lt;P&gt;            v3   = it_return -message_v3&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            msg  = lv_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now append this error message to some internal table say&lt;/P&gt;&lt;P&gt;move:lv_msg to itab_error-msg.&lt;/P&gt;&lt;P&gt;append itab_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u r error messages with be thre in the internal table itab_error and finally u can display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 09:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875770#M675017</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-05T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875771#M675018</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 would like to describe the problem in detail. i already handled the return messages from the BAPI. but i get some errors which are not returned through return table and directly thrown in the screen. So please help if you have already explored such a kind of problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 10:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875771#M675018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875772#M675019</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 think there might be some problem with ur data whch u r passing...as far as i concerned the bapi should return messages in the return table..also when u r getting those messages on screen,as unlike BDC bapi don't navigate through screens...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 11:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error-message/m-p/2875772#M675019</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-05T11:01:29Z</dc:date>
    </item>
  </channel>
</rss>

