<?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: Creating Excel File on Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323368#M1394922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing each and every line to file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File is created but as i mentioned earlier that the file is crested with .xls extension because of I put the file extension file.xls,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but file not having the excel file property , it having the tab dilimited file property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we create the file having the excel file property ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2009 12:52:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-30T12:52:44Z</dc:date>
    <item>
      <title>Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323366#M1394920</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 have to create excel file on Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that I do the following : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ld_file =  '/usr/sap/trans/abap/file.xls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET ld_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_string         int_final-field1 INTO         wa_string           SEPARATED BY con_tab.     &lt;/P&gt;&lt;P&gt;CONCATENATE wa_string         int_final-field2 INTO         wa_string           SEPARATED BY con_tab.     &lt;/P&gt;&lt;P&gt;CONCATENATE wa_string         int_final-field3 INTO         wa_string           SEPARATED BY con_tab.   &lt;/P&gt;&lt;P&gt;CONCATENATE wa_string         int_final-field4 INTO         wa_string           SEPARATED BY con_tab.    &lt;/P&gt;&lt;P&gt;   .&lt;/P&gt;&lt;P&gt;   .&lt;/P&gt;&lt;P&gt;   . &lt;/P&gt;&lt;P&gt;   .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET ld_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem : File is created on application server as file.xls but it having the property of tab delimited file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any help me that how can i created file having the property of Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 07:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323366#M1394920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T07:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323367#M1394921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write each and every line to file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET ld_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_string int_final-field1 INTO wa_string SEPARATED BY con_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transfer wa_string to ld_file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear : wa_string.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_string int_final-field2 INTO wa_string SEPARATED BY con_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transfer wa_string to ld_file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear : wa_string.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_string int_final-field3 INTO wa_string SEPARATED BY con_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transfer wa_string to ld_file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear : wa_string.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_string int_final-field4 INTO wa_string SEPARATED BY con_tab. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;transfer wa_string to ld_file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear : wa_string.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET ld_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 12:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323367#M1394921</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2009-10-29T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323368#M1394922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing each and every line to file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File is created but as i mentioned earlier that the file is crested with .xls extension because of I put the file extension file.xls,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but file not having the excel file property , it having the tab dilimited file property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we create the file having the excel file property ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 12:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323368#M1394922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-30T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323369#M1394923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am written following code, and its working fine. ( sample code ).  &lt;/P&gt;&lt;P&gt;and May i know how are you opening the file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : res type string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : con_tab  TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate 'abc' 'xyz' 'pqr' into res separated by con_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : path type string value '/home/usr/interface/POSPOST/xyz.xls'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;open dataset path for OUTPUT  IN TEXT MODE ENCODING DEFAULT .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transfer res to path.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;close dataset path.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 14:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323369#M1394923</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2009-10-30T14:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323370#M1394924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check how you defined  'con_tab' in your code. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As you said that file is getting created and probelm is abt excel sheet property.. In this case , you need only one change con_tab as shown below. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : con_tab TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:    you can see data separated by '#'  in your file. &lt;/P&gt;&lt;P&gt; (u might know the below process already)&lt;/P&gt;&lt;P&gt; Then download created file '/usr/sap/trans/abap/file.xls'.&lt;/P&gt;&lt;P&gt; to desktop using tcode CG3Y .  Now you will see the expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 20:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323370#M1394924</guid>
      <dc:creator>Siva_Muddana</dc:creator>
      <dc:date>2009-10-30T20:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323371#M1394925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tell u to try with .csv file , comma deleiminator as this also excel , it works , we have doem with .csv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2009 10:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323371#M1394925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-31T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel File on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323372#M1394926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how you resolved this? I would be very thankful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel-file-on-application-server/m-p/6323372#M1394926</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2010-11-11T10:17:05Z</dc:date>
    </item>
  </channel>
</rss>

