<?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: Opening the Excel file from Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680407#M1291230</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;if it a Excel file ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    OPEN DATASET pg_out2              "appl file
            FOR INPUT IN TEXT MODE
            ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      DO.
        READ DATASET p_infile INTO w_temp.
*       Condition To check when cursor reaches End Of file
        IF sy-subrc EQ 0.
          PERFORM f_split_appl_data.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET p_infile.
    ELSE.
     
      MESSAGE 'Error in opening file' type 'E'.
    ENDIF.

FORM f_split_appl_data .

  SPLIT w_temp AT ',' INTO : wa_inputfile-plannum ......   "Split at , for excel or CSV file formats at appl files
  APPEND wa_inputfile TO t_inputfile.

ENDFORM.                    " F_SPLIT_APPL_DATA

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 18:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-26T18:24:09Z</dc:date>
    <item>
      <title>Opening the Excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680406#M1291229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had uploaded an excel file on the application server for using it in my program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am opening the uploaded file on the Application server it shows some special characters and those are also displayed on my report output while reading the file from the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to get rid of those special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my open data set statement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET pg_out2 FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 13:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680406#M1291229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Opening the Excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680407#M1291230</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;if it a Excel file ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    OPEN DATASET pg_out2              "appl file
            FOR INPUT IN TEXT MODE
            ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      DO.
        READ DATASET p_infile INTO w_temp.
*       Condition To check when cursor reaches End Of file
        IF sy-subrc EQ 0.
          PERFORM f_split_appl_data.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET p_infile.
    ELSE.
     
      MESSAGE 'Error in opening file' type 'E'.
    ENDIF.

FORM f_split_appl_data .

  SPLIT w_temp AT ',' INTO : wa_inputfile-plannum ......   "Split at , for excel or CSV file formats at appl files
  APPEND wa_inputfile TO t_inputfile.

ENDFORM.                    " F_SPLIT_APPL_DATA

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 18:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680407#M1291230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T18:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Opening the Excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680408#M1291231</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;The special char should be the horizontal Tab values..try to split the string at horizontal tab using the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ DATASET p_infile INTO w_temp.
*       Condition To check when cursor reaches End Of file
        IF sy-subrc EQ 0.
              SPLIT w_temp AT  CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB  
                                    INTO  wa_inputfile-plannum ......         
               APPEND wa_inputfile TO t_inputfile.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET p_infile.

    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 18:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-the-excel-file-from-application-server/m-p/5680408#M1291231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T18:52:24Z</dc:date>
    </item>
  </channel>
</rss>

