<?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: Fetch excel file from app. server using open dataset... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547824#M853520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to download this the procedure:&lt;/P&gt;&lt;P&gt;you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_tab: Name of the internal table that should be uploaded to Exvcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldnames: Internal tabel with column headers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to build the field names table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_fieldnames occurs 20,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field(60), end of i_fieldnames. &lt;/P&gt;&lt;P&gt;i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.&lt;/P&gt;&lt;P&gt;i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload follow this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn FOR INPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET dsn INTO itab-field.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;APPEND itab.&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;[/code]Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Try this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_READ_AND_CONVERT_SAP_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass 'XLS' to I_FILEFORMAT..&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;STRONG&gt;Dont forgot to Reward me points .....&lt;/STRONG&gt;All the very best....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivasa sarma K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 02:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T02:38:38Z</dc:date>
    <item>
      <title>Fetch excel file from app. server using open dataset...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547822#M853518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our functional consultant is asking me if it possible to get an excel file from the&lt;/P&gt;&lt;P&gt;application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547822#M853518</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2008-03-27T02:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch excel file from app. server using open dataset...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547823#M853519</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;PRE&gt;&lt;CODE&gt;data : fname(30) type c.

open dataset &amp;lt;fname&amp;gt; for input in binary mode.

trasfer fname to content.

close dataset &amp;lt;fname&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;V.Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547823#M853519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T02:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch excel file from app. server using open dataset...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547824#M853520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to download this the procedure:&lt;/P&gt;&lt;P&gt;you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_tab: Name of the internal table that should be uploaded to Exvcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldnames: Internal tabel with column headers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to build the field names table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_fieldnames occurs 20,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field(60), end of i_fieldnames. &lt;/P&gt;&lt;P&gt;i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.&lt;/P&gt;&lt;P&gt;i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload follow this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn FOR INPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET dsn INTO itab-field.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;APPEND itab.&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;[/code]Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Try this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_READ_AND_CONVERT_SAP_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass 'XLS' to I_FILEFORMAT..&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;STRONG&gt;Dont forgot to Reward me points .....&lt;/STRONG&gt;All the very best....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivasa sarma K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-excel-file-from-app-server-using-open-dataset/m-p/3547824#M853520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T02:38:38Z</dc:date>
    </item>
  </channel>
</rss>

