<?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: Reading data from structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436594#M208085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thushara,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Structure contains Fields.Does not contain any data .At runtime only it contains data .It is like Header or Work area .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;If you are populating ADDR1_DATA from STR_SUPPL1 and STR_SUPPL2 at runtime use as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move-corresponding: &lt;/P&gt;&lt;P&gt;STR_SUPPL1 to ADDR1_DATA,&lt;/P&gt;&lt;P&gt;STR_SUPPL2 to ADDR1_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 06:44:28 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2006-06-28T06:44:28Z</dc:date>
    <item>
      <title>Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436590#M208081</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;Can anyone tell me how to read data from a structure? I want to read STR_SUPPL1 and STR_SUPPL2 from structure ADDR1_DATA. It is not the way i read data from a table rght?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with a code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Thushara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436590#M208081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436591#M208082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first thing you wont be having any data in the strucutre which is mentioned. &lt;/P&gt;&lt;P&gt;If you wish to retrive the data of the fields that you have menitoend you can find them in the table ADRC and using the addrnumber from your master data (customer, vendor or user) u can retrive the data&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436591#M208082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436592#M208083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thushara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Structured types describe the structure and functions of any structured data objects, that is of data structures with components of any type.&lt;/P&gt;&lt;P&gt;A component can be a field with an elementary type or can itself be a structure. A table can also be used as a component in a structure.&lt;/P&gt;&lt;P&gt;A database table always has a structure and is therefore implicitly a structured type. However, the fields of a database table can only have an elementary type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all u have to declare an internal table of type ADDR1_DATA and then add the rows to that internal table. And then try to read the data from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type table of addr1_data with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-str_suppl1 = 'THIS IS A TEST PROGRAM'.&lt;/P&gt;&lt;P&gt;itab-str_suppl2 = 'THIS IS A TEST1 PROGRAM'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; write : / itab-str_suppl1, itab-str_suppl2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got my point. &lt;/P&gt;&lt;P&gt;If found helpful, please do reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436592#M208083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436593#M208084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through these links&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/files.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/files.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://72.14.235.104/search?q=cache:_PlsGTs5V3kJ:www-rcf.usc.edu/~anthonyb/itp320/ABAP.ppt" target="test_blank"&gt;http://72.14.235.104/search?q=cache:_PlsGTs5V3kJ:www-rcf.usc.edu/~anthonyb/itp320/ABAP.ppt&lt;/A&gt;&lt;EM&gt;READ&lt;/EM&gt;DATA&lt;EM&gt;FROM&lt;/EM&gt;A&lt;EM&gt;STRUCTURE&lt;/EM&gt;,+ABAP&amp;amp;hl=en&amp;amp;gl=in&amp;amp;ct=clnk&amp;amp;cd=27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436593#M208084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436594#M208085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thushara,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Structure contains Fields.Does not contain any data .At runtime only it contains data .It is like Header or Work area .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;If you are populating ADDR1_DATA from STR_SUPPL1 and STR_SUPPL2 at runtime use as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move-corresponding: &lt;/P&gt;&lt;P&gt;STR_SUPPL1 to ADDR1_DATA,&lt;/P&gt;&lt;P&gt;STR_SUPPL2 to ADDR1_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 06:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436594#M208085</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2006-06-28T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436595#M208086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Structure contains no data and hence you can not read the data from structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to read the data from underlying transperant tables. In your case, the table is ADRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from ADRC into WA_ADRC where ADRNR = KNA1-ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 06:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-structures/m-p/1436595#M208086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T06:53:33Z</dc:date>
    </item>
  </channel>
</rss>

