<?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: How to compare substring in two tables fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407961#M818442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input. I really like to use SQL statement to solve this problem. I understand that we can use internal table to get results. May be I will need to use EXE SQL to get my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 17:26:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T17:26:55Z</dc:date>
    <item>
      <title>How to compare substring in two tables fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407959#M818440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I want to select database two tables, we just want to compare two table substring. For Example, both fields have yyyymmdd. But I have interested yyyymm. In the Oracle database and SQL server database, I can easily to use substr to achieve those goals. How in the ABAP program to archive those goals.&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;Cliff Fan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 22:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407959#M818440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T22:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare substring in two tables fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407960#M818441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can access substrings in ABAP the following way: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
data: s type string value 'yyyymmdd'. 

write: / s(6). "yyyymm 
write: / s+4(4). "mmdd 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the number after '+' determines the position in the string and the number in parenthesis () determines the length of the substring. &lt;/P&gt;&lt;P&gt;Now you can just loop over both of your tables and perform the necessary comparison in the nested loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 01:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407960#M818441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T01:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare substring in two tables fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407961#M818442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input. I really like to use SQL statement to solve this problem. I understand that we can use internal table to get results. May be I will need to use EXE SQL to get my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 17:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407961#M818442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T17:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare substring in two tables fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407962#M818443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cliff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you wan't/need to use SQL for your comparison, then you have to use native SQL since Open SQL does not offer this possibility. Keep in mind that you loose the database independcy though.&lt;/P&gt;&lt;P&gt;For what reason do you wan't to use SQL rather then ABAP logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 17:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-substring-in-two-tables-fields/m-p/3407962#M818443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T17:30:46Z</dc:date>
    </item>
  </channel>
</rss>

