<?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 ABAP/Excel: Method Save_as in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-excel-method-save-as/m-p/801003#M40880</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;Does anyone have experience with the method Save_as of the document proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I supply a filename as parameter the document name in Excel (in this case) is always the Document title under which the Document has been created initially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jun 2004 15:18:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-06-25T15:18:24Z</dc:date>
    <item>
      <title>ABAP/Excel: Method Save_as</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-excel-method-save-as/m-p/801003#M40880</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;Does anyone have experience with the method Save_as of the document proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I supply a filename as parameter the document name in Excel (in this case) is always the Document title under which the Document has been created initially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2004 15:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-excel-method-save-as/m-p/801003#M40880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-25T15:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP/Excel: Method Save_as</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-excel-method-save-as/m-p/801004#M40881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used it without the problem you mention.  The following is the sample code from 46C:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Save the document&lt;/P&gt;&lt;P&gt;  call method document-&amp;gt;save_as&lt;/P&gt;&lt;P&gt;              exporting&lt;/P&gt;&lt;P&gt;                file_name = item_url.&lt;/P&gt;&lt;P&gt;  call method c_oi_errors=&amp;gt;show_message exporting type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also done it from OLE.  If you have problems you might try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handles for OLE objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: h_excel type ole2_object,        " Excel object&lt;/P&gt;&lt;P&gt;        ole_books type ole2_object,&lt;/P&gt;&lt;P&gt;        ole_databook type ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: file_type type i.&lt;/P&gt;&lt;P&gt;  file_type = '-4143'.&lt;/P&gt;&lt;P&gt;  create object h_excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;P&gt;  set property of h_excel  'Visible' = 0.&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Workbooks' = ole_books.&lt;/P&gt;&lt;P&gt;  call method of ole_books 'Open' = ole_databook&lt;/P&gt;&lt;P&gt;  exporting #1 = i_source_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of ole_databook 'SaveAs'&lt;/P&gt;&lt;P&gt;  exporting #1 = i_destination_file&lt;/P&gt;&lt;P&gt;            #2 = file_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Quit'.&lt;/P&gt;&lt;P&gt;  free object ole_databook.&lt;/P&gt;&lt;P&gt;  free object ole_books.&lt;/P&gt;&lt;P&gt;  free object h_excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SaveAS with OLE lets you choose a filetype.  -4143 is native Excel.  44 is HTML and 46 is XML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2004 18:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-excel-method-save-as/m-p/801004#M40881</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2004-06-28T18:23:05Z</dc:date>
    </item>
  </channel>
</rss>

