<?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 Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590664#M265840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends when we write &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select single *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to have a data base and the internal table of the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing,&lt;/P&gt;&lt;P&gt;        Select Single *&lt;/P&gt;&lt;P&gt;                From ZZSD0010&lt;/P&gt;&lt;P&gt;                into it_zzsd0010&lt;/P&gt;&lt;P&gt;                Where &lt;/P&gt;&lt;P&gt;                   princ_customer = it_zzsd0010-princ_customer&lt;/P&gt;&lt;P&gt;                   default_sold_2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal table and the data base table are of different structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal Shetty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2006 20:43:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-21T20:43:00Z</dc:date>
    <item>
      <title>Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590664#M265840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends when we write &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select single *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to have a data base and the internal table of the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing,&lt;/P&gt;&lt;P&gt;        Select Single *&lt;/P&gt;&lt;P&gt;                From ZZSD0010&lt;/P&gt;&lt;P&gt;                into it_zzsd0010&lt;/P&gt;&lt;P&gt;                Where &lt;/P&gt;&lt;P&gt;                   princ_customer = it_zzsd0010-princ_customer&lt;/P&gt;&lt;P&gt;                   default_sold_2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal table and the data base table are of different structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal Shetty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 20:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590664#M265840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T20:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590665#M265841</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;  IF the internal table and database structure are of different structure you can use INTO CORRESPONDING FIELDS OF..to move the common field values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You cannot use INTO alone if the database table and internal table structure are different..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The values may not move to the correct fields..&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>Thu, 21 Sep 2006 20:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590665#M265841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590666#M265842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the db table and internal table are of different structure, then u need to write the fields you want to populate  explicitly using corresponding fiels addition in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Single *&lt;/P&gt;&lt;P&gt;From ZZSD0010&lt;/P&gt;&lt;P&gt;into &amp;lt;b&amp;gt;CORRESPONDING FIELDS OF TABLE&amp;lt;/b&amp;gt; it_zzsd0010&lt;/P&gt;&lt;P&gt;Where &lt;/P&gt;&lt;P&gt;princ_customer = it_zzsd0010-princ_customer and&lt;/P&gt;&lt;P&gt;default_sold_2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else if the structure is same then your statement will also work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward for helpful replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 20:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590666#M265842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590667#M265843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thansk for the suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal Shetty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 20:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1590667#M265843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T20:53:17Z</dc:date>
    </item>
  </channel>
</rss>

