<?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: comparing strings while executing a select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238231#M772747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;like.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COncatenate S_STRING '%' INTO S_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where dd02t-ddlanguage LIKEs_string&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 14:03:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T14:03:04Z</dc:date>
    <item>
      <title>comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238228#M772744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i need to compare select the rows from table dd02t into the internal table li_tabdef where dd02-ddtext contains the string s_string(taken as a parameter)&lt;/P&gt;&lt;P&gt;i can't write the where clause as &lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;where dd02t-ddlanguage CS s_string&lt;/STRONG&gt;* since CS is not a valid comparison operator. i need to compare the value of sy-fdpos.&lt;/P&gt;&lt;P&gt;can you please help me with the select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 13:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238228#M772744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238229#M772745</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;You have use &lt;STRONG&gt;like 'ABC%'&lt;/STRONG&gt; in  where condition, like will work for wild card search not CS. If you want to search for a string which starts with ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Ponna on Jan 18, 2008 7:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 13:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238229#M772745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238230#M772746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the string is entered by the user. it is stored as a parameter s_string.&lt;/P&gt;&lt;P&gt;i need to use s_string for comparison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 14:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238230#M772746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238231#M772747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;like.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COncatenate S_STRING '%' INTO S_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where dd02t-ddlanguage LIKEs_string&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 14:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238231#M772747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238232#M772748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        pernr like pa0001-pernr,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;data : a type string.&lt;/P&gt;&lt;P&gt;a = '123'.&lt;/P&gt;&lt;P&gt;concatenate '%' a '%' into a.&lt;/P&gt;&lt;P&gt;select pernr from pa0001 into table itab where pernr like a and begda le sy-datum and endda ge sy-datum.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;sort itab by pernr.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-pernr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u get all pernrs containing  123......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 14:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238232#M772748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T14:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings while executing a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238233#M772749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a field of the same type as the database field.  CONCATENATE '%' parameter string and '%' into this field and use a database-field LIKE work-field in the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 14:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-strings-while-executing-a-select-statement/m-p/3238233#M772749</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-18T14:11:10Z</dc:date>
    </item>
  </channel>
</rss>

