<?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 CP in select option for multiple value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710190#M32731</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am facing issue in CP for multiple value in select option.&lt;/P&gt;
  &lt;P&gt;my requirement is to fetch al the values between low and high parameter in selection screen with CP.&lt;/P&gt;
  &lt;P&gt;Please see the below code.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;BR /&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189353-verhy.jpeg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189354-nd0aa.jpeg" /&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189356-mp85s.jpeg" /&gt;&lt;/P&gt;
  &lt;P&gt;But I am not getting all the values between low and high but value for low and high only,&lt;/P&gt;
  &lt;P&gt;Please help to get it forward.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 03:25:45 GMT</pubDate>
    <dc:creator>Suryaji26</dc:creator>
    <dc:date>2018-08-09T03:25:45Z</dc:date>
    <item>
      <title>CP in select option for multiple value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710190#M32731</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am facing issue in CP for multiple value in select option.&lt;/P&gt;
  &lt;P&gt;my requirement is to fetch al the values between low and high parameter in selection screen with CP.&lt;/P&gt;
  &lt;P&gt;Please see the below code.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;BR /&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189353-verhy.jpeg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189354-nd0aa.jpeg" /&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/189356-mp85s.jpeg" /&gt;&lt;/P&gt;
  &lt;P&gt;But I am not getting all the values between low and high but value for low and high only,&lt;/P&gt;
  &lt;P&gt;Please help to get it forward.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 03:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710190#M32731</guid>
      <dc:creator>Suryaji26</dc:creator>
      <dc:date>2018-08-09T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: CP in select option for multiple value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710191#M32732</link>
      <description>&lt;P&gt;Run in debug and examine the contents of your select option, read the ABAP help on select options, and IN as used in a select statement.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 05:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710191#M32732</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-08-09T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: CP in select option for multiple value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710192#M32733</link>
      <description>&lt;P&gt;Thanks Matthew,&lt;/P&gt;
  &lt;P&gt;Yes I am preety good in select options and gone through the available material,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;but unfortunately here we have to use CP with BT as here we are giving both low and high in selection.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 07:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710192#M32733</guid>
      <dc:creator>Suryaji26</dc:creator>
      <dc:date>2018-08-09T07:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: CP in select option for multiple value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710193#M32734</link>
      <description>&lt;P&gt;"Yes I am preety good in select options "&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; Well, then you should be able to derive the logical conditions that are defined in your ranges table (as described in the documentation for IN). From that, the result should be clear. The table lines that you add in the ELSE branch do not make too much sense. They are two single conditions. Also note, that the RHS is concatenated from LOW and HIGH in both conditions. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;"but unfortunately here we have to use CP with BT"&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;And that's the problem. You cannot easily mix such different kinds of concepts, at least not in one go.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;CP is for string processing. It does a &lt;STRONG&gt;pattern matching&lt;/STRONG&gt;. In SELECT it is translated to LIKE.&lt;/LI&gt; 
   &lt;LI&gt;BT is a &lt;STRONG&gt;size comparison&lt;/STRONG&gt;. same as &amp;lt; or &amp;gt; or &amp;lt;= or &amp;gt;=. It compares values and is only recommended for numerical values. For character strings, it compares the size of the platform dependent internal representation. &lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; So hold on, think about what you want to achieve and about the technical background and from that you might derive a solution for your task.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;PS: Use SQL trace in debugger or ST05 to see the conditions derived from the ranges table.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp-in-select-option-for-multiple-value/m-p/710193#M32734</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-08-09T16:35:55Z</dc:date>
    </item>
  </channel>
</rss>

