<?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: Message not returning  in BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871472#M1477202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; FORM RETURN_BAPI_MESSAGE  USING    VALUE(P_MESSAGE) LIKE MESSAGE&lt;/P&gt;&lt;P&gt;&amp;gt;                           CHANGING P_RETURN LIKE BAPIRETURN.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;  CHECK NOT MESSAGE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check not p_message is initial or CHECK NOT MESSAGE IS INITIAL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 09:27:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-06T09:27:22Z</dc:date>
    <item>
      <title>Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871471#M1477201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Can i use BAPIRETURN for return parameter (export) in BAPI function module?.&lt;/P&gt;&lt;P&gt;I am not receiving either Success or Error message.&lt;/P&gt;&lt;P&gt;Please see the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 DATA: L_WERKS TYPE WERKS_D.
    SELECT SINGLE WERKS FROM T001W INTO L_WERKS WHERE WERKS EQ BAPI_IMPORT_MC-PLANT.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      CLEAR MESSAGE.
      MESSAGE-MSGTY = 'E'.
      MESSAGE-MSGID = 'ZMS'.
      MESSAGE-MSGNO = '001'.
      MESSAGE-MSGV1 = BAPI_IMPORT_MC-PLANT.

      PERFORM RETURN_BAPI_MESSAGE USING MESSAGE CHANGING RETURN.
      IF 1 = 2.
        MESSAGE E001(ZMS).
      ENDIF.
      CHECK RETURN IS INITIAL.
* remaining code.
ENDIF.

FORM RETURN_BAPI_MESSAGE  USING    VALUE(P_MESSAGE) LIKE MESSAGE
                          CHANGING P_RETURN LIKE BAPIRETURN.

 CHECK NOT MESSAGE IS INITIAL.

  CALL FUNCTION 'BALW_BAPIRETURN_GET'
    EXPORTING
      TYPE       = P_MESSAGE-MSGTY
      CL         = P_MESSAGE-MSGID
      NUMBER     = P_MESSAGE-MSGNO
      PAR1       = P_MESSAGE-MSGV1
      PAR2       = P_MESSAGE-MSGV2
      PAR3       = P_MESSAGE-MSGV3
      PAR4       = P_MESSAGE-MSGV4
    IMPORTING
      BAPIRETURN = P_RETURN
    EXCEPTIONS
      OTHERS     = 1.


ENDFORM.                    " RETURN_BAPI_MESSAGE

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871471#M1477201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871472#M1477202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; FORM RETURN_BAPI_MESSAGE  USING    VALUE(P_MESSAGE) LIKE MESSAGE&lt;/P&gt;&lt;P&gt;&amp;gt;                           CHANGING P_RETURN LIKE BAPIRETURN.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;  CHECK NOT MESSAGE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check not p_message is initial or CHECK NOT MESSAGE IS INITIAL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871472#M1477202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871473#M1477203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CHECK NOT P_MESSAGE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871473#M1477203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871474#M1477204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;debug the prog whether the FM: BALW_BAPIRETURN_GET is exicuted or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871474#M1477204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871475#M1477205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,It is executing.but not returning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871475#M1477205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Message not returning  in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871476#M1477206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Earlier Message class created with three characters,now i had created it again with only two characters.Now it is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 10:13:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-not-returning-in-bapi/m-p/6871476#M1477206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T10:13:01Z</dc:date>
    </item>
  </channel>
</rss>

