<?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: Uploading Excel File in application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001623#M1344364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 06:40:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-31T06:40:38Z</dc:date>
    <item>
      <title>Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001619#M1344360</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;I am uploading data from internal table to excel file in application server.I am using Open dataset to put in appln server.(background job).But the problem is it is not sitting in different colums,all data goes to single column.I want every field in separate columns.Please suggest to proceed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001619#M1344360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001620#M1344361</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;save the internal table as a desktop file and then use CG3Z transaction to put the data from desktop to application server.&lt;/P&gt;&lt;P&gt;then to read the application file use the logic given below:&lt;/P&gt;&lt;P&gt;DATA: wa_file_data TYPE text4096,&lt;/P&gt;&lt;P&gt;lv_app_server_file TYPE string.&lt;/P&gt;&lt;P&gt;  lv_app_server_file = pa_afile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To read file from Application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET lv_app_server_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET lv_app_server_file INTO wa_file_data.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      APPEND wa_file_data TO gi_file_data.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET lv_app_server_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: lv_file_separator TYPE c.&lt;/P&gt;&lt;P&gt;  lv_file_separator = cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To upload file in other formats(CSV, Tab delimited etc)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_field_seperator    = lv_file_separator&lt;/P&gt;&lt;P&gt;      i_tab_raw_data       = gi_file_data&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      i_tab_converted_data = gi_zhralcon_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_failed    = 1&lt;/P&gt;&lt;P&gt;      OTHERS               = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001620#M1344361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T06:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001621#M1344362</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;In application server, you can't view the file in a tabular form. download the file to your desktop and open it in excel. you can see it in tabular form. Please make sure that you have used a proper delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Renjith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001621#M1344362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T06:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001622#M1344363</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;While uploading the data into application server using the open dataset command, move all the columns into one string using the CONCATENATE statement separated by TAB. i.e. | symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you are downloading, if you choose the option of type EXCEL, then immeaditely it will download in the EXCEL in separate columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001622#M1344363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T06:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001623#M1344364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001623#M1344364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T06:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Excel File in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001624#M1344365</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; You can use of the FM ALSM_EXCEL_TO_INTERNAL_TABLE  to upload the data from your excel file. This FM uses some class check that how he is using to upload same way you use if the alignment is the problem. The Fm uses single coloumn wise data filling. Use same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 06:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-file-in-application-server/m-p/6001624#M1344365</guid>
      <dc:creator>vijy_mukunthan</dc:creator>
      <dc:date>2009-07-31T06:53:04Z</dc:date>
    </item>
  </channel>
</rss>

