<?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 Error handling while calling BAPI ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062443#M971050</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 am calling 'BAPI_GOODSMVT_CREATE'  from a program to create goods receipt with purchase order. Eventhough i am successfully creating the Goods Receipt , i am unable to display the error messages if Goods Receipt is not created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on displaying the error messages by specifying procedure and coding  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamshi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 03:26:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T03:26:00Z</dc:date>
    <item>
      <title>Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062443#M971050</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 am calling 'BAPI_GOODSMVT_CREATE'  from a program to create goods receipt with purchase order. Eventhough i am successfully creating the Goods Receipt , i am unable to display the error messages if Goods Receipt is not created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on displaying the error messages by specifying procedure and coding  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamshi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 03:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062443#M971050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T03:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062444#M971051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error and Success messages are returned in interface Table "RETURN" of FM ..BAPI_GOODSMVT_CREATE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can loop on this table and write "MESSAGE" variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Kokane on Jul 9, 2008 9:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 03:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062444#M971051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T03:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062445#M971052</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;CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    goodsmvt_header             =&lt;/P&gt;&lt;P&gt;    goodsmvt_code               =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GOODSMVT_HEADRET            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALDOCUMENT            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATDOCUMENTYEAR             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           tables&lt;/P&gt;&lt;P&gt;           goodsmvt_item               =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GOODSMVT_SERIALNUMBER       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           return                      =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In return table you will get all the errors which thrown by this BAPI. you can go in debug mode and check for the error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sowmya Sahadevan on Jul 9, 2008 5:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 03:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062445#M971052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T03:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062446#M971053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil and sowmya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too know that error messages are in RETURN table . I passed IT_RETURN table to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But i don't how to retrieve error messages from this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please provide sample code to display error records from RETURN table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamshi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 03:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062446#M971053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T03:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062447#M971054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Messages is formatted in MTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : MTEXT(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not t_return is initial.&lt;/P&gt;&lt;P&gt;    message id     t_return-id&lt;/P&gt;&lt;P&gt;            type   t_return-type&lt;/P&gt;&lt;P&gt;            number t_return-number&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;INTO mtext&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            with   t_return-message_v1&lt;/P&gt;&lt;P&gt;                   t_return-message_v2&lt;/P&gt;&lt;P&gt;                   t_return-message_v3&lt;/P&gt;&lt;P&gt;                   t_return-message_v4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;write : mtext&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 03:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062447#M971054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T03:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062448#M971055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Thanks for the reply and it is very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i got the procedure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamshi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062448#M971055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while calling BAPI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062449#M971056</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;. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;DATA: LT_RETUTN TYPE TABLE OF BAPIRET2.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; goodsmvt_header = &lt;/P&gt;&lt;P&gt; goodsmvt_code =&lt;/P&gt;&lt;P&gt; TESTRUN = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt; GOODSMVT_HEADRET = &lt;/P&gt;&lt;P&gt; MATERIALDOCUMENT = &lt;/P&gt;&lt;P&gt; MATDOCUMENTYEAR = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt; goodsmvt_item =&lt;/P&gt;&lt;P&gt; GOODSMVT_SERIALNUMBER = &lt;/P&gt;&lt;P&gt; return = lt_return.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ASSIGN OTHER PARAMETERS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get the message details in the lt_return internal table. Kindly refer the structure BAPIRET2 for the field details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, this will help you. Kindly reply if you need more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward, if it is useful ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-calling-bapi/m-p/4062449#M971056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:21:45Z</dc:date>
    </item>
  </channel>
</rss>

