<?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 Comparing files on Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118881#M443830</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;     I've a requirement, i have to compare two files of application server and should get a new file. Compare file1 with file2 and get records which were excess in file2.&lt;/P&gt;&lt;P&gt;Please help.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;  jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 07:22:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-13T07:22:20Z</dc:date>
    <item>
      <title>Comparing files on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118881#M443830</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;     I've a requirement, i have to compare two files of application server and should get a new file. Compare file1 with file2 and get records which were excess in file2.&lt;/P&gt;&lt;P&gt;Please help.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;  jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 07:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118881#M443830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T07:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing files on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118882#M443831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Read the first file using OPEN DATASET into an ITAB.&lt;/P&gt;&lt;P&gt;Read the second  file using OPEN DATASET into an ITAB1.&lt;/P&gt;&lt;P&gt;loop at ITAB1.&lt;/P&gt;&lt;P&gt;   read table ITAB ...&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;       move the different records to a third internal table. ITAB2&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the ITAB2 records into a third file using TRANSFER ..&lt;/P&gt;&lt;P&gt;hope this serves you.&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 07:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118882#M443831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T07:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing files on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118883#M443832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     here is an alternative to coding an ABAP program - there is a tool called Compare It that I have used. It can compare fairly large files quickly (&amp;gt;10MB) and the latest version has reporting. It runs on a PC so the user running it will need access to the app server in order to run the comparison. You will have to check the website for pricing but I think it is cheap: &amp;lt;b&amp;gt;http://www.grigsoft.com/wincmp.htm&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fastest file compare is definitely at the operating system level. However, you need to have some shell scripting experience to write such a program. Once you have the shell ready, you can execute it inside an ABAP program as an external command (defined in SM69)with 'SXPG_EXECUTE_COMMAND' function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is using "open dataset in text mode" to load file into an internal table and then comparing it with .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps reward with points&lt;/P&gt;&lt;P&gt;Regards rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 07:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118883#M443832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T07:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing files on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118884#M443833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jus give me 2 mins I will send you the code for comparing the filed from application server...&lt;/P&gt;&lt;P&gt;Ihave done a program in comparing both the Unix file and also PC files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But make sure That you reward full ponts to teh correct answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 07:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-files-on-application-server/m-p/2118884#M443833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T07:32:53Z</dc:date>
    </item>
  </channel>
</rss>

