<?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 Sql with Begin with value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584827#M1273496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just jumped in &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; but let me finish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above is correct than you can try the following: if the VBELN numbers are &lt;EM&gt;always&lt;/EM&gt; n character long, than there will be 10 - n zeros before the 80 (for example: 8 long VBELN will look like: 0080...). in this case you can use;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT vbeln
FROM likp
WHERE vbeln LIKE '0080%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the the VBELN numbers can have different lengths, than you have to mention each possibilitiy in the WHERE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT vbeln
FROM likp
WHERE vbeln LIKE '0080%'
OR vbeln LIKE '00080%'
OR vbeln LIKE '000080%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 09:16:16 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2009-05-12T09:16:16Z</dc:date>
    <item>
      <title>Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584822#M1273491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my small select statement for search healp&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 SELECT DISTINCT VBELN
    FROM  LIKP
    INTO  TABLE IT_VBELN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to select only begins with  80 values&lt;/P&gt;&lt;P&gt;i tried with as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 SELECT DISTINCT VBELN
    FROM  LIKP
    INTO  TABLE IT_VBELN
    WHERE VBELN LIKE '80%'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but its not working&lt;/P&gt;&lt;P&gt;let me please solve to this matter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my question is clear for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584822#M1273491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584823#M1273492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is not working? Syntax error? Not returning the expected values?&lt;/P&gt;&lt;P&gt;You don't need DISTINCT, as VBELN is the unique key of LIKP, try to remove this first.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584823#M1273492</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-12T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584824#M1273493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;use like &lt;/P&gt;&lt;P&gt; SELECT  VBELN&lt;/P&gt;&lt;P&gt;    FROM  LIKP&lt;/P&gt;&lt;P&gt;    INTO  corresponding fields of TABLE IT_VBELN&lt;/P&gt;&lt;P&gt;    WHERE VBELN LIKE '80%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Using Like |http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3a1f358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584824#M1273493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584825#M1273494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it does not work because of the conversion exit on VBELN. Pls. check if the values in VBELN are shorter than 10 characters. If yes, it means there are leading zeros before the '80'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584825#M1273494</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2009-05-12T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584826#M1273495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;off-topic&amp;gt;Hi Eric, good to see you back around here ;)&amp;lt;/off-topic&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584826#M1273495</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-12T09:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584827#M1273496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just jumped in &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; but let me finish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above is correct than you can try the following: if the VBELN numbers are &lt;EM&gt;always&lt;/EM&gt; n character long, than there will be 10 - n zeros before the 80 (for example: 8 long VBELN will look like: 0080...). in this case you can use;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT vbeln
FROM likp
WHERE vbeln LIKE '0080%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the the VBELN numbers can have different lengths, than you have to mention each possibilitiy in the WHERE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT vbeln
FROM likp
WHERE vbeln LIKE '0080%'
OR vbeln LIKE '00080%'
OR vbeln LIKE '000080%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584827#M1273496</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2009-05-12T09:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select Sql with Begin with value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584828#M1273497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I got solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql-with-begin-with-value/m-p/5584828#M1273497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T09:56:30Z</dc:date>
    </item>
  </channel>
</rss>

