<?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: Select data from a structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817913#M659041</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 structure will not have any data..It is a just a template..You need to select the data from the database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 22:01:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-02T22:01:59Z</dc:date>
    <item>
      <title>Select data from a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817912#M659040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am new to ABAP programming. I tried to create a function module and I would like to get some data from a structure but not from a table. Is it possible for me to do that using SQL statements in the 'source code'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 21:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817912#M659040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T21:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817913#M659041</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 structure will not have any data..It is a just a template..You need to select the data from the database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 22:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817913#M659041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T22:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817914#M659042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Structure doesnt hold any data. It just has the fields in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to find the corresponding Table to find the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 22:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817914#M659042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817915#M659043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The structure will only have data if it has been loaded elsewhere, such as if the structure was populated by a function call or BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you will have to load data into the structure using SQL Select or by calling the approriate function call/method/BAPI etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the structure already has data, you access that data by referencing the structure name and the component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_field = struct-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will load the value of the component field "field1" in structure "struct" into a separate work field "w_field".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how you refer to components of a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure_name-component_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consequently, you should not use a dash "-" in the name of a field or structure.  If you need to separate words in the name use an underscore "_".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do attempt to use the dash "-" in the name of a field or structure in a Unicode program, you will get a warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 22:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-a-structure/m-p/2817915#M659043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T22:45:21Z</dc:date>
    </item>
  </channel>
</rss>

