<?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 Module pool programming with Abap Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417089#M820668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody tell me that you can directly call a local class in a module pool. &lt;/P&gt;&lt;P&gt;    Is that possible? &lt;/P&gt;&lt;P&gt;    Can anybody refer me to any kind of information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 10:57:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-21T10:57:59Z</dc:date>
    <item>
      <title>Module pool programming with Abap Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417089#M820668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody tell me that you can directly call a local class in a module pool. &lt;/P&gt;&lt;P&gt;    Is that possible? &lt;/P&gt;&lt;P&gt;    Can anybody refer me to any kind of information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 10:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417089#M820668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T10:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool programming with Abap Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417090#M820669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a function module it`s possible. You do it like when you call the class method from a normal program/report&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD XCLASS-&amp;gt;main&lt;/P&gt;&lt;P&gt;     EXPORTING PTABLE = PTABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417090#M820669</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2008-02-21T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool programming with Abap Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417091#M820670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, thanks for the answer, but not was the one i was waiting for... it wasn't helpful.&lt;/P&gt;&lt;P&gt;But, i've continued searching for answers... and i've found that: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OO Transactions Locate the document in its SAP Library structure

In transaction maintenance (SE93), you can specify a transaction code as an OO transaction.

You either link the transaction code to the Transaction Service of the Structure link ABAP Object Services for persistent objects or to a public method of a global or local class of a program. When calling up a transaction that is linked to an instance method, the system automatically generates an instance of the class in its own internal session.

An example of a link between a transaction code and an instance method of a local class of an unspecified ABAP program:

Example

*&amp;amp;-----------------------------------------------------------*
*&amp;amp; Modulpool DEMO_OO_TRANSACTION *
*&amp;amp; *
*&amp;amp;-----------------------------------------------------------*

program DEMO_OO_TRANSACTION.

class DEMO_CLASS definition.
public section.
methods INSTANCE_METHOD.
endclass.

class DEMO_CLASS implementation.
method INSTANCE_METHOD.
message 'Instance method in local class' type 'I'.
endmethod.
endclass.

The DEMO_OO_TRANSACTION program is a module pool of type M that does not contain any screens or dialog modules. Instead, the program contains the definition of a local class DEMO_CLASS.

The DEMO_OO_METHOD transaction code is linked to this program as follows:

The start object of the transaction is Method of a class (OO transaction).

OO transaction model is not selected.

The Class Name is DEMO_CLASS.

The Method is INSTANCE_METHOD.

Local in program is selected and DEMO_OO_TRANSACTION specified.

When the transaction is called up, the program is loaded, an instance of the class is created, and the method is executed.
Leaving content frame&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what i wanted. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope it would be helpful for anyone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 10:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming-with-abap-objects/m-p/3417091#M820670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T10:11:09Z</dc:date>
    </item>
  </channel>
</rss>

