<?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: substitute function module with OO method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006331#M1805099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ) Create a custom BADI with class and interface.&lt;/P&gt;&lt;P&gt;2) The class whould have the method with similar code as that of FM.&lt;/P&gt;&lt;P&gt;3) Create BADI implementation&lt;/P&gt;&lt;P&gt;4) Create an include in the user EXIT.&lt;/P&gt;&lt;P&gt;5) Inside the include call the BADI by GET BADI and invoke the required method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 11:48:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-29T11:48:46Z</dc:date>
    <item>
      <title>substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006318#M1805086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to substitute a function module with OO-method? If yes are there any examples how this could work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006318#M1805086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T13:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006319#M1805087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please specify if you speak about specific code or if you are searching for an Oo method that replace a useful function.&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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006319#M1805087</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-01-28T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006320#M1805088</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;If there is no class and method which suits your requirement then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create a custom class in se24 and method . you can define your code in method and then you can call class and method in the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006320#M1805088</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2014-01-28T14:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006321#M1805089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to substitute the code in the include EXIT_SAPLRSAP_001 of FM EXIT_SAPLRSAP_001 with a Oo method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006321#M1805089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006322#M1805090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whats the reason you want to do that??? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006322#M1805090</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2014-01-28T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006323#M1805091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you use user-exit, you use not Oo, you have to use FM. &lt;/P&gt;&lt;P&gt;If you want to play with Oo you have to use BADI. You could find your BADI using SE18 transaction and create a new implementation using SE19&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMOD / SMOD -&amp;gt; FM&lt;/P&gt;&lt;P&gt;SE18/SE19 -&amp;gt; Oo &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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006323#M1805091</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-01-28T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006324#M1805092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the realized solution we have problems with transport and if the code is incorrect all extractors can't be loaded. I know there is a possibility to create for every extractor an own function module. But my boss want to have a solution with classes and methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006324#M1805092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006325#M1805093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't generate a class and method and call it in the function module? Why not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006325#M1805093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T15:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006326#M1805094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why ? &lt;/P&gt;&lt;P&gt;if you want to have multi implementation of your code you could create include with FORM inside. and in the include of the function made a PERFORM ... IN PROGRAM ...&amp;nbsp; IF FOUND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you have problem with multi code and multi abapor you will not break your productive system ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it your problem ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006326#M1805094</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-01-28T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006327#M1805095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure you can. In &lt;SPAN style="color: #333333; font-size: 12px;"&gt;EXIT_SAPLRSAP_001 &lt;/SPAN&gt;in its "Z" include you can code any implementation you want. You can create global class and call its methods there without problem &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/536/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CASE &lt;/SPAN&gt;I_DATASOURCE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'Z1'&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zcl_abc=&amp;gt;z1( EXPORTING data_you_need_work_with ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'Z2'&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zcl_abc=&amp;gt;z2( EXPORTING data_you_need_work_with ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;ENDCASE.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not sure if static calls are good for this use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006327#M1805095</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2014-01-28T15:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006328#M1805096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know there is more than one way to skin a cat. And our solution should be with classes and methods. I know this is not the prevalent solution. Are there any technical criteria which speak against this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ella &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006328#M1805096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006329#M1805097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. I have a further question: How could I define the tables of the tab "tables" to the method?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and kind regards&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006329#M1805097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T15:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006330#M1805098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In method you can define it either as Importing, Exporting, Changing or Returning parameter. And TYPE parametr as "table type".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which can be defined more ways:&lt;/P&gt;&lt;P&gt;- in DDIC (SE11) data type "Table type"&lt;/P&gt;&lt;P&gt;- in class itself, there is Types tab in SE24 (direct type entry) or in code of class definition:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TYPES: tt_sometable TYPE TABLE OF structure.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 11:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006330#M1805098</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2014-01-29T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: substitute function module with OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006331#M1805099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ) Create a custom BADI with class and interface.&lt;/P&gt;&lt;P&gt;2) The class whould have the method with similar code as that of FM.&lt;/P&gt;&lt;P&gt;3) Create BADI implementation&lt;/P&gt;&lt;P&gt;4) Create an include in the user EXIT.&lt;/P&gt;&lt;P&gt;5) Inside the include call the BADI by GET BADI and invoke the required method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 11:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-with-oo-method/m-p/10006331#M1805099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-29T11:48:46Z</dc:date>
    </item>
  </channel>
</rss>

