<?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: How to identify a data reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694484#M1577302</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;You can see the example in [documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3145358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 22:26:41 GMT</pubDate>
    <dc:creator>AlexanderOv</dc:creator>
    <dc:date>2011-02-17T22:26:41Z</dc:date>
    <item>
      <title>How to identify a data reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694482#M1577300</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;Probably a very simple question, but i was not able to find the answer (yet). Hopefully you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data reference, which is a TYPE REF TO data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases the reference can point to a table and in the other cases it points to a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to know how i can identify the DATA reference if it is a table or structure?&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;/Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expample below, how to i know LR_DATATAB is refering to a table and LR_DATASTRUC is refering to a structure?&lt;/P&gt;&lt;P&gt;====example=== &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zpval_test01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES ty_t_t001 TYPE STANDARD TABLE OF t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lt_t001 TYPE STANDARD TABLE OF t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ls_t001 LIKE LINE OF lt_t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lr_datatab TYPE REF TO data.&lt;/P&gt;&lt;P&gt;DATA lr_datastruc TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;   FROM t001&lt;/P&gt;&lt;P&gt;    INTO TABLE lt_t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE lt_t001 INTO ls_t001&lt;/P&gt;&lt;P&gt;  INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA lr_datatab TYPE ty_t_t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET REFERENCE OF lt_t001 INTO lr_datatab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA lr_datastruc TYPE t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET REFERENCE OF ls_t001 INTO lr_datastruc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694482#M1577300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T20:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a data reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694483#M1577301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RTTI classes to identify the type of reference.  For example, using cl_abap_typedescr=&amp;gt;describe_by_data_ref, you would pass either data reference to the call.  The received object is declared generally as TYPE REF TO cl_abap_typedescr, but the reference you get back is either an instance of class CL_ABAP_STRUCTDESCR or CL_ABAP_TABLEDESCR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 22:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694483#M1577301</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-17T22:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a data reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694484#M1577302</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;You can see the example in [documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3145358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 22:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694484#M1577302</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2011-02-17T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a data reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694485#M1577303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD &amp;lt;l_tab&amp;gt; TYPE l_type. does the thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a table TYPE = h and for a structure TYPE = u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 06:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-data-reference/m-p/7694485#M1577303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T06:33:14Z</dc:date>
    </item>
  </channel>
</rss>

