<?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: Access using field symbols : Different data type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822386#M1315207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The object type that you are importing is impotant to be known. Later you can import or export to the cluster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2009 08:52:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-02T08:52:29Z</dc:date>
    <item>
      <title>Access using field symbols : Different data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822384#M1315205</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;I am trying to access data from a cluster. The type of data being retrieved is different. Therefore i use a field symbol to create the type and then import the data. Now the data retrived has got different structures and sometimes they are even deep structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to access a particular value from all these different structures (Object_id). Sometimes it is just located at the firsty level&lt;/P&gt;&lt;P&gt;&amp;lt;Filed_symbol&amp;gt;-&amp;gt;object_id.&lt;/P&gt;&lt;P&gt;Sometimes the data is available as &amp;lt;Field_symbol&amp;gt;-&amp;gt;structure-&amp;gt;Object_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i retrieve the data(Object_id) from such structures irrespective of the type of data being fetched from IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rishav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 08:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822384#M1315205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-18T08:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access using field symbols : Different data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822385#M1315206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
type-pools: abap.

data: r_struct type ref to cl_abap_structdescr.
data: it_components type abap_component_tab with header line.
data: component_addr type string.

field-symbols: &amp;lt;component&amp;gt; type any,   "component name i.e. OBJECT_ID
                     &amp;lt;component_adrr&amp;gt; type any.   "component absolute address i.e STRUCTURE-COMPONENT-OBJECT_ID

r_struct ?= cl_abap_typdescr=&amp;gt;DESCRIBE_BY_DATA( &amp;lt;field_symbol&amp;gt; ).  "get strcutre
it_components = r_struct-&amp;gt;GET_COMPONENTS( ).       "get its components

loop at it_components.
   concatenate &amp;lt;field_symbol&amp;gt; it_components-name into component_addr   
                                                  separated by '-'.   "STRUCTURE-COMPONENT-OBJECT_ID
   assign component_addr to &amp;lt;component&amp;gt;. 
   &amp;lt;component&amp;gt; =  ...."give value here 
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 08:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822385#M1315206</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-18T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access using field symbols : Different data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822386#M1315207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The object type that you are importing is impotant to be known. Later you can import or export to the cluster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 08:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-using-field-symbols-different-data-type/m-p/5822386#M1315207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-02T08:52:29Z</dc:date>
    </item>
  </channel>
</rss>

