<?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 Bapi - Return Information messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815203#M349155</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;Iam using the goods mvt bapi 'BAPI_GOODSMVT_CREATE' for goods reciept. I get a information message  when posting the document directly from migo. But do not get any information message while using the bapi. The return table is empty. Can any tell me how to get the information messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2007 04:21:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-31T04:21:21Z</dc:date>
    <item>
      <title>Bapi - Return Information messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815203#M349155</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;Iam using the goods mvt bapi 'BAPI_GOODSMVT_CREATE' for goods reciept. I get a information message  when posting the document directly from migo. But do not get any information message while using the bapi. The return table is empty. Can any tell me how to get the information messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815203#M349155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi - Return Information messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815204#M349156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For FM 'BAPI_GOODSMVT_CREATE' when there is some error in the BAPI it populates the return table. If it executed successfully the return table is blanck but you get the generated document no in parameter 'materialdocument'. Please check the below code it will give you more idea....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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             = l_goodsmvt_header&lt;/P&gt;&lt;P&gt;        goodsmvt_code               = l_goodsmvt_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        goodsmvt_headret            = l_goodsmvt_headret&lt;/P&gt;&lt;P&gt;        materialdocument            = ch_matdoc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATDOCUMENTYEAR             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        goodsmvt_item               = l_goodsmvt_itemtab&lt;/P&gt;&lt;P&gt;        goodsmvt_serialnumber       = l_goodsmvt_serialnumbertab&lt;/P&gt;&lt;P&gt;        return                      = l_returntab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT l_returntab INTO l_return.&lt;/P&gt;&lt;P&gt;      IF l_return-type = 'E' OR l_return-type = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MESSAGE ID l_return-id  TYPE 'I' NUMBER l_return-number&lt;/P&gt;&lt;P&gt;          WITH l_return-message_v1 l_return-message_v2&lt;/P&gt;&lt;P&gt;          l_return-message_v3 l_return-message_v4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Error -&amp;gt; Raise Action stopped and don't save notification!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RAISE action_stopped.&lt;/P&gt;&lt;P&gt;        EXIT.&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;    MESSAGE s027(zz) WITH ch_matdoc 'document created'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815204#M349156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi - Return Information messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815205#M349157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will return Material Document Number and Year , u  have get it frm import params of that BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; call function 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            goodsmvt_header       = l_gheader&lt;/P&gt;&lt;P&gt;            goodsmvt_code         = '05'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            goodsmvt_headret      = l_goodsmvt_headret&lt;/P&gt;&lt;P&gt;            materialdocument      = l_materialdocument&lt;/P&gt;&lt;P&gt;            matdocumentyear       = l_matdocumentyear&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            goodsmvt_item         = i_gitem&lt;/P&gt;&lt;P&gt;            return                = i_return.&lt;/P&gt;&lt;P&gt; if i_return[] is initial.&lt;/P&gt;&lt;P&gt; commit work and wait.&lt;/P&gt;&lt;P&gt; call function 'DEQUEUE_ALL'.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; write: l_materialdocument.&lt;/P&gt;&lt;P&gt; endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Wed, 31 Jan 2007 04:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815205#M349157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi - Return Information messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815206#M349158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;while doing a goods reciept using migo i get a warning message. Iam able to post. But in bapi, where can i get the same warning message..&lt;/P&gt;&lt;P&gt;is it possible.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815206#M349158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi - Return Information messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815207#M349159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said, you get return messages only if the BAPI fails... that is either E or A type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-information-messages/m-p/1815207#M349159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:51:12Z</dc:date>
    </item>
  </channel>
</rss>

