<?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: SUBSTRING in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517135#M1261227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly - &amp;gt; i need run SQL statement over 2 SAP database tables with condition below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE SUBSTRING ( table1&lt;SUB&gt;field,1,1) = table2&lt;/SUB&gt;field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2009 08:21:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-16T08:21:22Z</dc:date>
    <item>
      <title>SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517126#M1261218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i use the similar SQL statement as below in ABAP SQL or something as it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;&lt;P&gt;where substring (field,1,1) = 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517126#M1261218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517127#M1261219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substring concept is nothing but the offset conept (Ex: x+2(3)) in ABAP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You cannot use it directly in the where condition of an ABAP Statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Instead you need to manipulate it first and then pass it to the select statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517127#M1261219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517128#M1261220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following code as per ur requirement----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
 FROM table
 where field = 'B'.

if field = field+1(2).
endif.
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517128#M1261220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517129#M1261221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly i need this statement for SQl over 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE SUBSTRING ( table1&lt;SUB&gt;field,1,1) = table2&lt;/SUB&gt;field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517129#M1261221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517130#M1261222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you can use substrings but in a different syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_DB_SELECT_SUBSTRING
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Thread: SUBSTRING in ABAP
*&amp;amp; &amp;lt;a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1309280"&amp;gt;&amp;lt;/a&amp;gt;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_db_select_substring.

TABLES: t001.

DATA: gs_t001   TYPE t001.


START-OF-SELECTION.

  BREAK-POINT.

" NOTE: '_' in SELECT statement means exactly 1 Character
" NOTE: '%' in SELECT statement means 0 or many Characters

" Select for all company codes having '1' in second place...
  SELECT * FROM t001 INTO gs_t001
    WHERE bukrs like '_1__'.

    write: / gs_t001-bukrs.
  ENDSELECT.
  skip.

  SELECT * FROM t001 INTO gs_t001
    WHERE bukrs like '_1%'.

    write: / gs_t001-bukrs.
  ENDSELECT.

END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517130#M1261222</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-04-16T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517131#M1261223</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;Try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
FROM table
WHERE FIELD LIKE '_B%'. ---&amp;gt; check the values which has B in second position.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517131#M1261223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517132#M1261224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly are you trying to achieve, can u explain a little more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517132#M1261224</guid>
      <dc:creator>former_member873340</dc:creator>
      <dc:date>2009-04-16T08:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517133#M1261225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try this way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table &lt;/P&gt;&lt;P&gt; where field like 'B%' . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you get in the result set all occurrences the starts with 'B' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517133#M1261225</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2009-04-16T08:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517134#M1261226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are using two tables field values you need to take them in to work area first and then manipulate for the specific character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you need to pass it on to the Where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above examples suggested might work if you are working with one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517134#M1261226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517135#M1261227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly - &amp;gt; i need run SQL statement over 2 SAP database tables with condition below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE SUBSTRING ( table1&lt;SUB&gt;field,1,1) = table2&lt;/SUB&gt;field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517135#M1261227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517136#M1261228</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;&lt;/P&gt;&lt;P&gt;Yes. You can use substrings in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;where field like '_B%'. &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;P&gt;Jyothi CH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517136#M1261228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517137#M1261229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result - &amp;gt; i CANNOT use this SQL statement (with substring) directly over 2 TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE SUBSTRING ( table1&lt;SUB&gt;field,1,1) = table2&lt;/SUB&gt;field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517137#M1261229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517138#M1261230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, you cannot use it directly over two tables. But, I think it can be done with bit of manipulation logic. Will get back to you if I get something out of my mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517138#M1261230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517139#M1261231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try concatenating the value of the second table in a field and then run the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try sumthing like this:&lt;/P&gt;&lt;P&gt;CONCATENATE '_' table2~field '%' into lv_test.&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE gs_t001&lt;/P&gt;&lt;P&gt;    WHERE bukrs like lv_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517139#M1261231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T08:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517140#M1261232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can implement it this way.&lt;/P&gt;&lt;P&gt;I have developed a small program meeting your requirement. You can try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZSAMPLE_SDN7.

DATA: temp(1) TYPE c.

types :begin of table1,
       field(10) type c,
       end of table1.


types :begin of table2,
       field(1) type c,
       end of table2.

types :begin of table3,
       field(10) type c,
       end of table3.

data: t_table1 type STANDARD TABLE OF table1,
      t_table2 TYPE STANDARD TABLE OF table2,
      t_table3 TYPE STANDARD TABLE OF table3,
      wa_table1 type table1,
      wa_table2 type table2,
      wa_table3 type table3.

move 'abcdef' to wa_table1.
append wa_table1 to t_table1.

move 'abdghf' to wa_table1.
append wa_table1 to t_table1.

move 'cbdefk' to wa_table1.
append wa_table1 to t_table1.

move 'fgegrg' to wa_table1.
append wa_table1 to t_table1.



move 'b' to wa_table2.
append wa_table2 to t_table2.

move 'b' to wa_table2.
append wa_table2 to t_table2.

move 'c' to wa_table2.
append wa_table2 to t_table2.

move 'g' to wa_table2.
append wa_table2 to t_table2.



START-OF-SELECTION.

sort t_table2 by field.
delete ADJACENT DUPLICATES FROM t_table2.

loop at t_table2 into wa_table2.

loop at t_table1 into wa_table1.

  temp = wa_table1+1(1).
  if wa_table2-field eq temp.
  append wa_table1-field to t_table3.
  endif.
clear: wa_table1.
endloop.

clear: wa_table2.
endloop.

END-OF-SELECTION.

loop at t_table3 into wa_table3.
write:/ wa_table3.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 09:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517140#M1261232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517141#M1261233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked the program?? Was that helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 09:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517141#M1261233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517142#M1261234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Babu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for your example, but i wanted to use SQL over database tables with something as SUBSTRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to change logic of the solution , because ABAP doesn't know something as SUBSTRING in SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 09:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517142#M1261234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517143#M1261235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood the problem and That is the reason I have developed the program similar to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider t_table1 as first table has field that contains many characters&lt;/P&gt;&lt;P&gt;Consider t_table2 as second table which has only 1 character field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_table3 will have the data fetched from t_table1 for the condition you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will explore the example to understand it better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thannks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 09:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517143#M1261235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517144#M1261236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do u look for something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from your_table where SUBSTRING(`A_COLUMN`,0,4) = '/2/3'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 09:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517144#M1261236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-08T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTRING in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517145#M1261237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I share your frustration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, have you found an answer for your original question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there such a thing like the good old oracle ANSI SQL Substr function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(please everyone: do not provide an answer related to %, *, _ or any other character substitution with constants. I am looking for functions over two database columns)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Renato&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap/m-p/5517145#M1261237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T06:07:12Z</dc:date>
    </item>
  </channel>
</rss>

