<?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: File processing in ABAP... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884159#M677466</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 like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save excel files as txt files and use gui_upload FM.Populate two internal tables say ITAB1 TAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB2 WITH KEY NAME = ITAB1-NAME.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MOVE ITAB1 TO ITAB3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN USE GUI_DOWNLOAD TO create new excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 13:06:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T13:06:09Z</dc:date>
    <item>
      <title>File processing in ABAP...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884156#M677463</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 have one excel file A which has couple of records and another excel file B with couple of records. Now I want&lt;/P&gt;&lt;P&gt;to read each record of excel file A and see if it is in B. If it is in B then create a new excel file Cexcluding that&lt;/P&gt;&lt;P&gt;entry and keep only those records from file A which are not in B. How can I do this in ABAP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mary  13   walnut st&lt;/P&gt;&lt;P&gt;John  17   Anderson Ave&lt;/P&gt;&lt;P&gt;Tim    20   Cooper house&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the new excel file C should have only following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mary   13   Walnut st&lt;/P&gt;&lt;P&gt;Tim     29   Cooper house  &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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 00:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884156#M677463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T00:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: File processing in ABAP...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884157#M677464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload Excel File A to internal table ITABA.&lt;/P&gt;&lt;P&gt;Upload Excel File B to internal table ITABB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITABA.&lt;/P&gt;&lt;P&gt;  CHECK IF RECORD IS PRESENT IN ITABB.&lt;/P&gt;&lt;P&gt;  IF NO&lt;/P&gt;&lt;P&gt;    POPULATE ITABC.&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;Download ITABC as a new Excel fiile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use following function module to upload Excel file to ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename                = file&lt;/P&gt;&lt;P&gt;            i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;            i_begin_row             = '1'&lt;/P&gt;&lt;P&gt;            i_end_col               = '200'&lt;/P&gt;&lt;P&gt;            i_end_row               = '5000'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = xcel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            others                  = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 00:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884157#M677464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T00:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: File processing in ABAP...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884158#M677465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any inputs....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884158#M677465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: File processing in ABAP...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884159#M677466</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 like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save excel files as txt files and use gui_upload FM.Populate two internal tables say ITAB1 TAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB2 WITH KEY NAME = ITAB1-NAME.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MOVE ITAB1 TO ITAB3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN USE GUI_DOWNLOAD TO create new excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 13:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-processing-in-abap/m-p/2884159#M677466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T13:06:09Z</dc:date>
    </item>
  </channel>
</rss>

