<?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: Excel by DOI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076527#M1614135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are using the DOI functionality by the classes, I_OI_DOCUMENT_PROXY and I_OI_SPREADSHEET_INTERFACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in such a case&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
To save the document without prompting the user
 I_OI_DOCUMENT_PROXY-&amp;gt;save_as
     EXPORTING 
               file_name      = file_name
               prompt_user = prompt_user  " Leave it blank to avoid the Prompt
               no_flush       = no_flush
     IMPORTING error       = error
               retcode     = retcode.

To Display the excel,

I_OI_DOCUMENT_PROXY-&amp;gt;OPEN_DOCUMENT
EXPORTING
DOCUMENT_TITLE     = 
DOCUMENT_URL       =
NO_FLUSH                =
OPEN_INPLACE         =                " For this you need to create a custom container in the module pool
OPEN_READONLY    =
PROTECT_DOCUMENT   =
ONSAVE_MACRO         =
STARTUP_MACRO        =
USER_INFO                   =
IMPORTING
ERROR                          =
RETCODE                      =
&lt;/CODE&gt;&lt;/PRE&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;Cheers!!&lt;/P&gt;&lt;P&gt;-Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 08:36:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-03T08:36:40Z</dc:date>
    <item>
      <title>Excel by DOI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076526#M1614134</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;I want to output a internal table to an excel file.&lt;/P&gt;&lt;P&gt;Now I open an existing file and write data into it.&lt;/P&gt;&lt;P&gt;Then I have 2 problems: one is how can I save it without prompt a confirm dialog for overwrite the existing file; the other is now the excel is running backgroud, and I want it to be viewable to the user after all the data is output, how to do?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 07:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076526#M1614134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T07:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excel by DOI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076527#M1614135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are using the DOI functionality by the classes, I_OI_DOCUMENT_PROXY and I_OI_SPREADSHEET_INTERFACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in such a case&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
To save the document without prompting the user
 I_OI_DOCUMENT_PROXY-&amp;gt;save_as
     EXPORTING 
               file_name      = file_name
               prompt_user = prompt_user  " Leave it blank to avoid the Prompt
               no_flush       = no_flush
     IMPORTING error       = error
               retcode     = retcode.

To Display the excel,

I_OI_DOCUMENT_PROXY-&amp;gt;OPEN_DOCUMENT
EXPORTING
DOCUMENT_TITLE     = 
DOCUMENT_URL       =
NO_FLUSH                =
OPEN_INPLACE         =                " For this you need to create a custom container in the module pool
OPEN_READONLY    =
PROTECT_DOCUMENT   =
ONSAVE_MACRO         =
STARTUP_MACRO        =
USER_INFO                   =
IMPORTING
ERROR                          =
RETCODE                      =
&lt;/CODE&gt;&lt;/PRE&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;Cheers!!&lt;/P&gt;&lt;P&gt;-Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 08:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076527#M1614135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T08:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excel by DOI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076528#M1614136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lupin Rabbit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about running DOI in background, is like running OLE in background, the question has been asked one hundred times, the answer is that it's impossible (unless you install a server with MS Office/SAP GUI installed, and things like that), and that the easiest workaround to generate Excel files in background is to use CSV or XML or XLSX (using especially abap2xlsx tool -&amp;gt; SDN Code Exchange) format depending on the minimum target Excel release instead of DOI/OLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 15:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-by-doi/m-p/8076528#M1614136</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-03T15:32:25Z</dc:date>
    </item>
  </channel>
</rss>

