<?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 upload xls file in application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777386#M1463952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to create Excel file on SAP &lt;/P&gt;&lt;P&gt;Application Server using OPEN DATASET command. As I have to run the program and create the file in background mode, I can't use 'WS_DOWNLOAD' or 'DOWNLOAD' functions.  When I can create the file with .xls addition on the application server, &lt;/P&gt;&lt;P&gt;all the fields in the file appear in the same column. How can place them in different  columns as one field in one Excel cell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Apr 2010 03:33:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-15T03:33:34Z</dc:date>
    <item>
      <title>upload xls file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777386#M1463952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to create Excel file on SAP &lt;/P&gt;&lt;P&gt;Application Server using OPEN DATASET command. As I have to run the program and create the file in background mode, I can't use 'WS_DOWNLOAD' or 'DOWNLOAD' functions.  When I can create the file with .xls addition on the application server, &lt;/P&gt;&lt;P&gt;all the fields in the file appear in the same column. How can place them in different  columns as one field in one Excel cell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 03:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777386#M1463952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T03:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: upload xls file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777387#M1463953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try separating the internal table fields with CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB before using the TRANSFER statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777387#M1463953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T05:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: upload xls file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777388#M1463954</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;Yes you can try doing like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: c_tab TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab,
      c_ret TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.

  itab1-f1 = 'AA'. itab1-f2 = '01'. APPEND itab1.
  itab1-f1 = 'BB'. itab1-f2 = '02'. APPEND itab1.
  itab1-f1 = 'CC'. itab1-f2 = '03'. APPEND itab1.

  itab2-f1 = 'ZZ'. itab2-f2 = '26'. APPEND itab2.
  itab2-f1 = 'YY'. itab2-f2 = '25'. APPEND itab2.
  LOOP AT itab1.
    CONCATENATE itab1-f1 itab1-f2 INTO objbin1 separated BY c_tab.
    CONCATENATE c_ret objbin1 INTO objbin1.
    APPEND objbin1.
  ENDLOOP.

  LOOP AT itab2.
    CONCATENATE itab2-f1 itab2-f2 INTO objbin2 separated BY c_tab.
    CONCATENATE c_ret objbin2 INTO objbin2.
    APPEND objbin2.
  ENDLOOP.

  LOOP AT objbin1.
    MOVE objbin1-line TO objbin_final-line.
    APPEND objbin_final.
  ENDLOOP.

And then you can use open dataset and transfer statements to download internal table data in AS.

&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xls-file-in-application-server/m-p/6777388#M1463954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T05:25:00Z</dc:date>
    </item>
  </channel>
</rss>

