<?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: local class inside abap report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546006#M1428843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local classes are like "private attributes" of your report which cannot be accessed from outside the report.&lt;/P&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>Wed, 30 Dec 2009 04:28:11 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-12-30T04:28:11Z</dc:date>
    <item>
      <title>local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546004#M1428841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i access the classes inside abap report that i have been created from outside the report? if yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the differences between the classes i have been created by T-code (SE24)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 11:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546004#M1428841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T11:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546005#M1428842</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; The class which you create from the SE24 is global class. This you can use in any report. &lt;/P&gt;&lt;P&gt; For that you just need to declare one object for that class in your report and call the methods of this class via object by using PATTERN button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 11:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546005#M1428842</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-12-29T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546006#M1428843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local classes are like "private attributes" of your report which cannot be accessed from outside the report.&lt;/P&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>Wed, 30 Dec 2009 04:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546006#M1428843</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-12-30T04:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546007#M1428844</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;Classes created  inside abap report are local and these cannot be accessed outside the report and Classes created using Tcode SE24 are Global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears your doubt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 04:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546007#M1428844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-30T04:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546008#M1428845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think simply saying &lt;STRONG&gt;local&lt;/STRONG&gt; and &lt;STRONG&gt;global&lt;/STRONG&gt; is enough to describe how the class is threated &lt;STRONG&gt;inside&lt;/STRONG&gt; and &lt;STRONG&gt;outside&lt;/STRONG&gt; the report.&lt;/P&gt;&lt;P&gt;Everything which is local (i.e in a report) stays local for it, so as Uwe said is kind of "private" data for this report. Conversely, global stuff stay visible accross entire system, so for all the reports too. &lt;/P&gt;&lt;P&gt;An example of global definition are all types created in ABAP Dictionary. They are visible in all the programs in the system. &lt;/P&gt;&lt;P&gt;The same applies to global classes (which you create using se24). They are just a &lt;EM&gt;global type&lt;/EM&gt; of objects which can be created locally in the report. You do the same i.e with table types. First you define strcutre/table type in the Dictionary, then in report you create a &lt;EM&gt;data object&lt;/EM&gt; which is typed with the above. So strcutre/table type stays global, while data object you created in program is only visible at that place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one handy tool in se24 which allows to derive &lt;EM&gt;global classes&lt;/EM&gt; from &lt;EM&gt;local one&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;I described it in [An easy way to create global class hierarchies|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13402] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 17:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546008#M1428845</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-12-30T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546009#M1428846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although I do not want to encourage this kind of local class usage, I have to disagree: Using local classes from other programs is possible using the &lt;STRONG&gt;absolute typename&lt;/STRONG&gt; of the local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program A defines a local class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Z_REPORT_A.
  CLASS LCL_LOCAL_CLASS DEFINTION.
    PUBLIC SECTION.
      CLASS-METHODS say_foo.
  ENDCLASS.
  CLASS LCL_LOCAL_CLASS IMPLEMENTATION.
    METHOD say_foo.
      WRITE 'Foo from program Z_REPORT_A'.
    ENDMETHOD.
  ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program B can use this class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Z_REPORT_B.
  START-OF-SELECTION.
    CALL METHOD ('\PROGRAM=Z_REPORT_A\CLASS=LCL_LOCAL_CLASS')=&amp;gt;('SAY_FOO').
            " --&amp;gt; writes 'Foo from program Z_REPORT_A'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2010 12:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546009#M1428846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-03T12:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546010#M1428847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... you can also use dynamic assign. I will not explain here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a far better way. Not from my preferred transaction SE80, no. Now you have to use SE24. From the start screen use menu Object type -&amp;gt; Import -&amp;gt; local classes in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the program name, if required 'explode includes'. Mark the local class name(s) found, give it the global name(s). Then click the import button at the bottom of the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try to activate you may face errors because in programs local classes methods you can use programs global data. This will not work here and will cause errors using the local class methods externally because the global data are not set and may create havoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2010 23:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546010#M1428847</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-09T23:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546011#M1428848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a somwhat similar vein to David's example, you can also associate a transaction code (via se93) with an arbitrary method of a local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 12:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546011#M1428848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: local class inside abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546012#M1428849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 06:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-class-inside-abap-report/m-p/6546012#M1428849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T06:51:17Z</dc:date>
    </item>
  </channel>
</rss>

