<?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: OO approach for bapi return in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052345#M1352545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have class &lt;STRONG&gt;CL_RECA_MESSAGE_LIST&lt;/STRONG&gt; available in your system then have a look at its many useful methods, e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ADD 
ADD_SYMSG
ADD_FROM_BAPI
GET_LIST_AS_BAPIRET&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Aug 2009 10:11:02 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-08-02T10:11:02Z</dc:date>
    <item>
      <title>OO approach for bapi return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052344#M1352544</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 the FM BALW_BAPIRETURN_GET2 and i want to know if there OO approach that emulate &lt;/P&gt;&lt;P&gt;this issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            type   = 'E'&lt;/P&gt;&lt;P&gt;            cl     = if_consnts=&amp;gt;gc_m_cl&lt;/P&gt;&lt;P&gt;            number = 25&lt;/P&gt;&lt;P&gt;            par1   = lv_msg&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            return = ls_return.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2009 07:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052344#M1352544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-02T07:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: OO approach for bapi return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052345#M1352545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have class &lt;STRONG&gt;CL_RECA_MESSAGE_LIST&lt;/STRONG&gt; available in your system then have a look at its many useful methods, e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ADD 
ADD_SYMSG
ADD_FROM_BAPI
GET_LIST_AS_BAPIRET&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2009 10:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052345#M1352545</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-02T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: OO approach for bapi return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052346#M1352546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont find this class in my system .&lt;/P&gt;&lt;P&gt;i check in SE24.&lt;/P&gt;&lt;P&gt;Any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2009 10:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052346#M1352546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-02T10:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: OO approach for bapi return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052347#M1352547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It really depends on what you're trying to achieve. &lt;/P&gt;&lt;P&gt;In older releases I used a class similar to CL_RECA_MESSAGE_LIST that I built myself, to collect messages for logging purposes. I wouldn't call that an "OO approach" per se, although it uses OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An important detail, however, that has nothing to do with OO: if you pass the message details (especially message class and number) to a method as literals, the where-used analysis on the message (from SE91) will not find this spot. So I found it useful to do more or less as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA l_msgtext TYPE string.
MESSAGE ID if_consnts=&amp;gt;gc_m_cl TYPE 'E' NUMBER '25'
  WITH lv_msg
  INTO l_msgtext.

CALL FUNCTION 'BALW_BAPIRETURN_GET2'
  EXPORTING
    type   = sy-msgty
    cl     = sy-msgid
    number = sy-msgno
    par1   = sy-msgv1
  IMPORTING
    return = ls_return. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you do it like this, the where-used analysis will find the spot. And if you replace the function BALW_BAPIRETURN_GET2 with something of your liking or you leave it as-is, that's up to you. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 14:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-approach-for-bapi-return/m-p/6052347#M1352547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-03T14:00:59Z</dc:date>
    </item>
  </channel>
</rss>

