<?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 select 3 fields using a select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153550#M118181</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;Use the following satetments..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_field1 type dbtab-field1,&lt;/P&gt;&lt;P&gt;      w_field2 type dbtab-field2,&lt;/P&gt;&lt;P&gt;      w_field3 type dbtab-field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 field3 from dbtab&lt;/P&gt;&lt;P&gt;              into (w_field1,w_field2,w_field3)&lt;/P&gt;&lt;P&gt;              where (your conditions).&lt;/P&gt;&lt;P&gt;endselect.&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jan 2006 13:02:32 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-01-14T13:02:32Z</dc:date>
    <item>
      <title>how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153549#M118180</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 need to select 6 fields into some global variable, &lt;/P&gt;&lt;P&gt;what is the syntax for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 12:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153549#M118180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-14T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153550#M118181</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;Use the following satetments..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_field1 type dbtab-field1,&lt;/P&gt;&lt;P&gt;      w_field2 type dbtab-field2,&lt;/P&gt;&lt;P&gt;      w_field3 type dbtab-field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 field3 from dbtab&lt;/P&gt;&lt;P&gt;              into (w_field1,w_field2,w_field3)&lt;/P&gt;&lt;P&gt;              where (your conditions).&lt;/P&gt;&lt;P&gt;endselect.&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 13:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153550#M118181</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-14T13:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153551#M118182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       fld1 type ztab-fld1,&lt;/P&gt;&lt;P&gt;       fld2 type ztab-fld2,&lt;/P&gt;&lt;P&gt;       fld3 type ztab-fld3,&lt;/P&gt;&lt;P&gt;       fld4 type ztab-fld4,&lt;/P&gt;&lt;P&gt;       fld5 type ztab-fld5,&lt;/P&gt;&lt;P&gt;       fld6 type ztab-fld6,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :workarea like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single fld1&lt;/P&gt;&lt;P&gt;       fld2&lt;/P&gt;&lt;P&gt;       fld3&lt;/P&gt;&lt;P&gt;       fld4 &lt;/P&gt;&lt;P&gt;       fld5&lt;/P&gt;&lt;P&gt;       fld6&lt;/P&gt;&lt;P&gt;       from ztab&lt;/P&gt;&lt;P&gt;       into workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE workarea-fld1 workarea-fld2 workarea-fld3 workarea-fld4 workarea-fld5 workarea-fld6 into global variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls award points and close if ur problem is solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: chandrasekhar jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 13:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153551#M118182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-14T13:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153552#M118183</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;&lt;/P&gt;&lt;P&gt;SELECT SINGLE bukrs butxt INTO (t001-bukrs, t001-butxt)&lt;/P&gt;&lt;P&gt;FROM t001&lt;/P&gt;&lt;P&gt;WHERE bukrs = '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 13:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153552#M118183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-14T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153553#M118184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at demo programs&lt;/P&gt;&lt;P&gt;DEMO_SELECT_SINGLE&lt;/P&gt;&lt;P&gt;DEMO_SELECT_SINGLE_FIELDS&lt;/P&gt;&lt;P&gt;DEMO_SELECT_SOME_COLUMNS&lt;/P&gt;&lt;P&gt;DEMO_SELECT_ALL_COLUMNS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 14:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153553#M118184</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2006-01-14T14:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to select 3 fields using a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153554#M118185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt; You can select to the global variables or you can select into the table &amp;amp; move then accordingly.&lt;/P&gt;&lt;P&gt;select value1 value2 value3 value4 value5 value6&lt;/P&gt;&lt;P&gt;  from &amp;lt;dbtab&amp;gt;&lt;/P&gt;&lt;P&gt;  into ( dbtab-value1, dbtab-value2, dbtab-value3, dbtab-value4, dbtab-value5, dbtab-value6 )&lt;/P&gt;&lt;P&gt; where ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OR&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;declare the fields as the database table fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select value1 value2 value3 value4 value5 value6&lt;/P&gt;&lt;P&gt;  from &amp;lt;dbtab&amp;gt;&lt;/P&gt;&lt;P&gt;  into ( v_value1, v_value2, v_value3, v_value4, v_value5, v_value6 )&lt;/P&gt;&lt;P&gt; where ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2006 16:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-3-fields-using-a-select-statement/m-p/1153554#M118185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-14T16:51:52Z</dc:date>
    </item>
  </channel>
</rss>

