<?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: issue with Select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546167#M20526</link>
    <description>&lt;P&gt;the field values are dynamically populated on selection screen , they are not fixed, so in runtime my query should compare first 2 characters of ableinh with SELECT-OPTION field value.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;NK &lt;/P&gt;</description>
    <pubDate>Sun, 24 Dec 2017 01:57:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-12-24T01:57:18Z</dc:date>
    <item>
      <title>issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546165#M20524</link>
      <description>&lt;P&gt;Hi in the below query i need the match 'ableinh ' with one select option parameter..&lt;/P&gt;
  &lt;P&gt;in select option field iam passing '01' or '02' or '03' or etc..&lt;/P&gt;
  &lt;P&gt;the value of 'ableinh' is '0112' or '01345' or '0287' or '03455' or etc.&lt;/P&gt;
  &lt;P&gt;i know LIKE work for single value , here i need to fetch multiple records..&lt;/P&gt;
  &lt;P&gt;SELECT anlage bis tariftyp ableinh FROM eanlh&lt;BR /&gt;INTO TABLE lt_eanlh WHERE anlage IN s_instl&lt;BR /&gt;AND bis = '99991231'&lt;BR /&gt;AND tariftyp IN s_ortyp&lt;BR /&gt;AND ableinh = .&lt;/P&gt;
  &lt;P&gt;please help me.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;NK&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 19:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546165#M20524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-23T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546166#M20525</link>
      <description>&lt;P&gt;Hi NK Reddy, Are you not getting the output if you write the query like below...?&lt;/P&gt;
  &lt;P&gt;SELECT anlage bis tariftyp ableinh FROM eanlh&lt;BR /&gt;INTO TABLE lt_eanlh WHERE anlage IN s_instl&lt;BR /&gt;AND bis = '99991231'&lt;BR /&gt;AND tariftyp IN s_ortyp&lt;BR /&gt;AND ( ableinh = c_0112 OR ableinh = c_01345 OR ableinh = c_0287 OR ableinh = c_03455 ).&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 23:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546166#M20525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-23T23:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546167#M20526</link>
      <description>&lt;P&gt;the field values are dynamically populated on selection screen , they are not fixed, so in runtime my query should compare first 2 characters of ableinh with SELECT-OPTION field value.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;NK &lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 01:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546167#M20526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-24T01:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546168#M20527</link>
      <description>&lt;P&gt;Hi NK Reddy, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Please write the select query as below and enter the select option field value on selection screen as 01* , 02*, 03* &lt;/P&gt;
  &lt;P&gt;(for the field 's_able'). It should work.&lt;/P&gt;
  &lt;P&gt;SELECT anlage bis tariftyp ableinh FROM eanlh&lt;BR /&gt;INTO TABLE lt_eanlh WHERE anlage IN s_instl&lt;BR /&gt;AND bis = '99991231'&lt;BR /&gt;AND tariftyp IN s_ortyp&lt;BR /&gt;AND ableinh IN s_able.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 16:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546168#M20527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-24T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546169#M20528</link>
      <description>&lt;P&gt;I coded as below ,i but see different issue , on selection field iam passing range '01' to '03' , but it always fetching the records start with 01 , its considering the range ..even tried on on table SE11/SE16 , if you give range 01* to 03* , it only get the records start with '01'.&lt;/P&gt;
  &lt;P&gt;any idea.. cant really get range of values using pattern?&lt;/P&gt;
  &lt;P&gt;ls_data-option = 'BT'.&lt;BR /&gt; ls_data-sign = 'I'.&lt;BR /&gt; if not s_portn-low IS INITIAL.&lt;BR /&gt; CONCATENATE s_portn-low '%' INTO ls_data-low .&lt;BR /&gt; endif.&lt;BR /&gt; if not s_portn-high IS INITIAL.&lt;BR /&gt; CONCATENATE s_portn-high '%' INTO ls_data-high .&lt;BR /&gt; endif.&lt;BR /&gt; APPEND ls_data TO lt_data.&lt;BR /&gt; &lt;BR /&gt; SELECT anlage bis tariftyp ableinh FROM eanlh&lt;BR /&gt; INTO TABLE lt_eanlh WHERE anlage IN s_instl&lt;BR /&gt; AND bis = '99991231'&lt;BR /&gt; AND tariftyp IN s_ortyp&lt;BR /&gt; AND ableinh IN lt_data .&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 00:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546169#M20528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-25T00:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546170#M20529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Goodday!&lt;/P&gt;
  &lt;P&gt;Have you solved this concern? &lt;/P&gt;
  &lt;P&gt;As per checking my code above did not work but I suggest you to try this work around.&lt;/P&gt;
  &lt;P&gt; &lt;STRONG&gt;SELECT&lt;/STRONG&gt; anlage bis tariftyp ableinh &lt;STRONG&gt;FROM&lt;/STRONG&gt; eanlh&lt;BR /&gt;&lt;STRONG&gt;INTO TABLE &lt;/STRONG&gt;lt_eanlh &lt;STRONG&gt;WHERE&lt;/STRONG&gt; anlage &lt;STRONG&gt;IN&lt;/STRONG&gt; s_instl&lt;BR /&gt; &lt;STRONG&gt;AND&lt;/STRONG&gt; bis = '99991231'&lt;BR /&gt; &lt;STRONG&gt;AND&lt;/STRONG&gt; tariftyp IN s_ortyp.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;DELETE&lt;/STRONG&gt; lt_eanlh &lt;STRONG&gt;WHERE&lt;/STRONG&gt; ableinh(2) &lt;STRONG&gt;NOT IN&lt;/STRONG&gt; s_ableinh.&lt;/P&gt;
  &lt;P&gt;If this concern already solved, please close this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 02:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546170#M20529</guid>
      <dc:creator>former_member215439</dc:creator>
      <dc:date>2017-12-27T02:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546171#M20530</link>
      <description>&lt;P&gt;Please don't use Answers to post additional information, use Comments instead.&lt;/P&gt;
  &lt;P&gt;Regarding the question - post the screenshots of the actual values you see in SE16. I don't see any conversion exits in this field in our system so I'm not sure what could be the problem. But with numeric values in CHAR 8 field it is most likely "owls are not what they seem".&lt;/P&gt;
  &lt;P&gt;P.S. Not sure why you're adding "%" in this code. Use selection variable as is, from the selection screen. No need to make it more complicated.&lt;/P&gt;
  &lt;P&gt;P.P.S. Just for the giggles why not try *03* pattern and see what happens.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 22:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546171#M20530</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-12-29T22:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546172#M20531</link>
      <description>&lt;P&gt;If you want any value which starts with 01 or any value which starts with 02 or any value which starts with 03, then initialize your range table with those 3 entries:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SIGN  OPTION  LOW
I     CP      01*
I     CP      02*
I     CP      03*&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;EDIT: solution corrected as per Horst remark (thanks!)&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 00:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546172#M20531</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-12-30T00:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546173#M20532</link>
      <description>&lt;P&gt;Converted to comment&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546173#M20532</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-12-30T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546174#M20533</link>
      <description>&lt;P&gt;I'd say the OPTION must be CP instead of EQ and LOW must be '01*', ...&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 11:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546174#M20533</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-12-30T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546175#M20534</link>
      <description>&lt;P&gt;Thanks Horst &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 16:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546175#M20534</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-12-30T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546176#M20535</link>
      <description>&lt;P&gt;solved my self.&lt;/P&gt;
  &lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 23:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546176#M20535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-30T23:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546177#M20536</link>
      <description>&lt;P&gt;Hi NK,&lt;/P&gt;
  &lt;P&gt;A lot of people took time and effort in order to help you reach the solution.&lt;/P&gt;
  &lt;P&gt;I would like to refer you to the&lt;A href="https://www.sap.com/community/about/rules-of-engagement.html"&gt; rules of engagement&lt;/A&gt; section 5:&lt;/P&gt;
  &lt;P&gt;"5. &lt;B&gt;Share expertise transparently&lt;/B&gt;. We are a community based site that encourages public knowledge sharing. Be open about your knowledge and how you obtained it."&lt;/P&gt;
  &lt;P&gt;Taking that into account, please share your solution and mark helpful/correct answers.&lt;/P&gt;
  &lt;P&gt;Iftah&lt;/P&gt;
  &lt;P&gt;SAP Community Moderator&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2017 11:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546177#M20536</guid>
      <dc:creator>iftah_peretz</dc:creator>
      <dc:date>2017-12-31T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546178#M20537</link>
      <description>&lt;P&gt;Hm, this seems to be very peculiar. I don't have the same exact data as OP but tested with T001 table. It looks like if the range is entered using from/to select options (which translates into BT option with LOW/HIGH) then the "to" part is not included in the result.&lt;/P&gt;
  &lt;P&gt;If I enter 002*, 003*, and 004* as 3 separate items then it correctly finds all items that start with those numbers. But if I enter selection criteria from 002* to 004* then it only includes 002* and 003*. If I change it as up to 005* then 004* shows up.&lt;/P&gt;
  &lt;P&gt;This is very odd because if I just specify the exact values, e.g. 0020 to 0049 then 0049 is included in the result set. What the deuce? Is there any reasonable explanation? No wonder OP got confused...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546178#M20537</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-01-02T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546179#M20538</link>
      <description>&lt;P&gt;When using BT the LOW and HIGH are not seen as patterns but just single entries. Since '*' comes before '0' in the ASCII table it will not select any 004 entries when you use HIGH as 004*.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 21:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546179#M20538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-02T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546180#M20539</link>
      <description>&lt;P&gt;+1 to Gerrit&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546180#M20539</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-01-02T22:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546181#M20540</link>
      <description>&lt;P&gt;Thanks for a reply! So essentially there is no "BP" option, like BT one but for the pattern. Weird...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546181#M20540</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-01-03T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546182#M20541</link>
      <description>&lt;P&gt;The above issue resolved with different approach . I find the field &lt;/P&gt;
  &lt;P&gt;ableinh in another table te422 , so now I used inner join on tables &lt;/P&gt;
  &lt;P&gt;eanlh and te422 . &lt;/P&gt;
  &lt;P&gt;Thanks all for your inputs.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 18:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546182#M20541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-08T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546183#M20542</link>
      <description>&lt;P&gt;Hmm, all this is neatly documented ...&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenlogexp_select_option.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenlogexp_select_option.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenlogexp_between.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenlogexp_between.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 18:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546183#M20542</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-01-08T18:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: issue with Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546184#M20543</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;"The relational operator matches the content of the column seltab-option
and the content of the columns seltab-low and seltab-high is concatenated as the right operand."&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I might be slow today but I'm honestly having trouble translating this into "CP with 001*-004* will not find 004* pattern". &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Specific examples could be helpful.&lt;/P&gt;
  &lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 21:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-select-query/m-p/546184#M20543</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-01-08T21:02:38Z</dc:date>
    </item>
  </channel>
</rss>

