<?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: Regarding Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602445#M270478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the SPLIT command and split the entry into an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF string&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;10 50 95&amp;gt; AT space INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;now itab contains 10,50,95 in separate rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check the user input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;user input&amp;gt; = 5&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;elseif &amp;lt;user input&amp;gt; = 30&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab = 10 or itab = 50&lt;/P&gt;&lt;P&gt;write : / itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 08:59:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-10T08:59:04Z</dc:date>
    <item>
      <title>Regarding Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602444#M270477</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 have a requirement that in a DB table there are some value like 10 50 95. If the user enter 5 then it should display 10.. If the user enters 30 then it should display 10 and also 50 . if the user enters the value greater than 50then it should return all the 3 values. Can any one help me out in solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602444#M270477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602445#M270478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the SPLIT command and split the entry into an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF string&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;10 50 95&amp;gt; AT space INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;now itab contains 10,50,95 in separate rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check the user input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;user input&amp;gt; = 5&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;elseif &amp;lt;user input&amp;gt; = 30&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab = 10 or itab = 50&lt;/P&gt;&lt;P&gt;write : / itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602445#M270478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602446#M270479</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;u can use offset values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;field&amp;gt; = 5.  (depends on condition)&lt;/P&gt;&lt;P&gt;move &amp;lt;dbtablefield&amp;gt;+0(2) to &amp;lt;field1&amp;gt;.(declare other field)&lt;/P&gt;&lt;P&gt;elseif &amp;lt;field&amp;gt; = 30.&lt;/P&gt;&lt;P&gt;move &amp;lt;dbtablefield&amp;gt;+0(4) to &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;else &amp;lt;feild&amp;gt; &amp;gt;= 50.&lt;/P&gt;&lt;P&gt;move &amp;lt;dbtablefield&amp;gt;+0(6) to &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 09:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602446#M270479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T09:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602447#M270480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One clarrification when you say the DB table has some value like 10 50 95. Are they in separate fields or in a single field with space as the separator ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say either u split the same into a internal table or if they are in separate fields you get in an internal table via select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab --&amp;gt; internal table with the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt; if itab-value &amp;gt; pval.&lt;/P&gt;&lt;P&gt;    write : / itab-value.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt; else. &lt;/P&gt;&lt;P&gt;    write : / itab-value.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should give you the required values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 09:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select/m-p/1602447#M270480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T09:06:19Z</dc:date>
    </item>
  </channel>
</rss>

