<?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 Query Issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037720#M1700809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a 2 step process in this, first select all the data without that column being populated of any values. In the second step, you need to do following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab-field4 = 'xxxxxx'.&lt;/P&gt;&lt;P&gt;Modify itab from wa_itab transporting field4 where field4 IS INITIAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will update all the fields with the hard coded values. You will not have to loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 14:01:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-31T14:01:08Z</dc:date>
    <item>
      <title>Select Query Issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037716#M1700805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a select query in which i select data from standard table to my internal table, while filling my internal table i want one column in my internal table to be filled though hard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g. if my itab has 5column the 4 column will be filled data from the standard table and the 5th column should have e.g "X" data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advice me how to write a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;shegar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 13:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037716#M1700805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037717#M1700806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop the internal table and modify the table with the required hard coded value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 13:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037717#M1700806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T13:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037718#M1700807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ganti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought there would be something in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 13:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037718#M1700807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037719#M1700808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, OPEN-SQL SELECT statement is not able to fulfill your requirement, so SELECT first data into your internal table and then update the internal table, either with a MODIFY WHERE or a LOOP AT ASSIGNING statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As some database SQL allow the use of constants in the resulting columns, you could then consider using a native sql syntax, but there is not much interest in doing so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 13:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037719#M1700808</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-31T13:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037720#M1700809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a 2 step process in this, first select all the data without that column being populated of any values. In the second step, you need to do following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab-field4 = 'xxxxxx'.&lt;/P&gt;&lt;P&gt;Modify itab from wa_itab transporting field4 where field4 IS INITIAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will update all the fields with the hard coded values. You will not have to loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issues/m-p/9037720#M1700809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T14:01:08Z</dc:date>
    </item>
  </channel>
</rss>

