<?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>Question Re: ABAP global class method data access in local class in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460949#M4667405</link>
    <description>&lt;P&gt;It's public.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 13:36:38 GMT</pubDate>
    <dc:creator>former_member761924</dc:creator>
    <dc:date>2021-09-15T13:36:38Z</dc:date>
    <item>
      <title>ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaq-p/12460947</link>
      <description>&lt;P&gt;I'm calling an instance public method of a global class from my local class, an internal table is processed and populated inside this method. How can I access this internal table data from my local class?&lt;/P&gt;
  &lt;P&gt;Ex - data(lo_object) = NEW zcl_xxxx( ).&lt;/P&gt;
  &lt;P&gt;lo_object-&amp;gt;parse_xml( ).&lt;/P&gt;
  &lt;P&gt;In this Parse_xml method an internal table gt_header is populated, I want to access this table data in my local class.&lt;/P&gt;
  &lt;P&gt;Note - this method has no returning parameters.&lt;/P&gt;
  &lt;P&gt;I'm new to ABAP please excuse me if the question is too basic or insensible.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 13:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaq-p/12460947</guid>
      <dc:creator>former_member761924</dc:creator>
      <dc:date>2021-09-15T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460948#M4667404</link>
      <description>&lt;P&gt;the table is private or public ? &lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 13:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460948#M4667404</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-09-15T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460949#M4667405</link>
      <description>&lt;P&gt;It's public.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 13:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460949#M4667405</guid>
      <dc:creator>former_member761924</dc:creator>
      <dc:date>2021-09-15T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460950#M4667406</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;lo_object-&amp;gt;my_beautiful_table &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it does not work ? &lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 13:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460950#M4667406</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-09-15T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460951#M4667407</link>
      <description>&lt;P&gt;There is no difference in accessing a global class from a local class or from elsewhere.&lt;/P&gt;&lt;P&gt;Normally, you use local classes as helper classes in global classes and not vice versa. &lt;/P&gt;&lt;P&gt;If you are new to ABAP Objects, you should get used to it by doing simple exercises, you can find in the Web.&lt;/P&gt;&lt;P&gt;In the ABAP documentation, you find the following introduction: &lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_objects_oview.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_objects_oview.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 15:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460951#M4667407</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2021-09-15T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP global class method data access in local class</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460952#M4667408</link>
      <description>&lt;P&gt;Maybe with this kind of code if the attribute GT_HEADER is public:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(local_copy_of_headers) = lo_object-&amp;gt;gt_header.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or if the attribute is private, maybe there is a public method to return it.&lt;/P&gt;&lt;P&gt;If the attribute is protected, maybe you can create a subclass (INHERITING FROM the global class) which will be able to access the protected attribute, and you can create a public method there to return the attribute.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 19:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-global-class-method-data-access-in-local-class/qaa-p/12460952#M4667408</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-15T19:26:37Z</dc:date>
    </item>
  </channel>
</rss>

