<?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 open issue in WS_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325224#M5134</link>
    <description>&lt;P&gt;Thanks for all the help. I could resolve this by replacing the 'WS_EXECUTE' with 'DSVAS_DOC_WS_EXECUTE_50'&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2016 10:46:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-10-26T10:46:20Z</dc:date>
    <item>
      <title>Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325218#M5128</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have a report which has a 'Download to Excel' custom button, which uses 'WS_EXECUTE' FM to open an excel sheet and user can then save or close the excel and return to program. This functionality runs fine in most of the user's machine but in some user's machine (irrespective of the userid), when the excel opens, it give the below message in status bar at the bottom &lt;/P&gt;&lt;P&gt;" Running C:\PROGRA~2\MICRO~3\Office14\EXCEL.EXE' (and waiting)'... " and control does not return to the report even after the excel is closed. It works fine in the Dev and Test system on the same user's system.&lt;/P&gt;&lt;P&gt;Any idea what this message means and why does it occur in only on some user's machine ?&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;           Vivek&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 22:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325218#M5128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-01-21T22:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325219#M5129</link>
      <description>&lt;P&gt;Possibly, Excel remains loaded on his workstation (check it in the Task Manager). If so, either he re-install his computer, or you have to check in Microsoft forums what's going on.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 06:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325219#M5129</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-10-11T06:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325220#M5130</link>
      <description>&lt;P&gt;WS_EXECUTE is obsolete function. Give a try to &lt;STRONG&gt;cl_gui_frontend_services=&amp;gt;execute&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 07:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325220#M5130</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-10-11T07:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325221#M5131</link>
      <description>&lt;P&gt;It should be problem with the excel in that workstation from which excel download is not happening. Kindly compare the excel version between working  and non-working workstation.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325221#M5131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-11T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325222#M5132</link>
      <description>&lt;P&gt;use this fm &lt;/P&gt;&lt;P&gt;GUI_EXEC&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 06:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325222#M5132</guid>
      <dc:creator>former_member241258</dc:creator>
      <dc:date>2016-10-12T06:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325223#M5133</link>
      <description>&lt;P&gt;Like WS_EXECUTE, GUI_EXEC is obsolete. You should use EXECUTE of class CL_GUI_FRONTEND_SERVICES. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 06:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325223#M5133</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-10-12T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325224#M5134</link>
      <description>&lt;P&gt;Thanks for all the help. I could resolve this by replacing the 'WS_EXECUTE' with 'DSVAS_DOC_WS_EXECUTE_50'&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 10:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325224#M5134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-26T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325225#M5135</link>
      <description>&lt;P&gt;Why don't you just listen to everybody, instead of giving a bad advice?&lt;/P&gt;&lt;P&gt;DSVAS_DOC_WS_EXECUTE_50 is not released and&lt;STRONG&gt; was removed&lt;/STRONG&gt; between basis 7.01 and basis 7.40 (the 2 versions I can access right now, I can't say if it's still there in 7.02 or 7.31).&lt;/P&gt;&lt;P&gt;Consequently, it's best to switch to cl_gui_frontend_services=&amp;gt;execute &lt;STRONG&gt;now&lt;/STRONG&gt; instead of getting errors in the next upgrade.&lt;/P&gt;&lt;P&gt;Always use the &lt;STRONG&gt;released&lt;/STRONG&gt; objects (those mentioned by SAP).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 11:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325225#M5135</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-10-26T11:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325226#M5136</link>
      <description>&lt;P&gt;It is not in 731 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325226#M5136</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-10-26T12:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325227#M5137</link>
      <description>&lt;P&gt;Just use &lt;A target="_blank" href="http://ivanfemia.github.io/abap2xlsx/"&gt;ABAP2XLSX&lt;/A&gt;, created by &lt;SPAN class="mention-scrubbed"&gt;ivan.femia&lt;/SPAN&gt; ... or take a peek at this &lt;A target="_blank" href="http://abapblog.com/articles/tricks/33-create-xlsx-mhtml-file-from-internal-table-in-background"&gt;exellent BlogPost&lt;/A&gt; by &lt;SPAN class="mention-scrubbed"&gt;28f4b37a40894f18a22abc696b8154f4&lt;/SPAN&gt;. Both of those resources should serve your purpose.&lt;/P&gt;&lt;P&gt;I've used the latter and made some adjustments to provide a ForeGround Mode. See the Samplecode from the blog, then add something like this to enable MS Excel with the content from your report (which was converted to BINARY) :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    DATA:
      lo_control  TYPE REF TO i_oi_container_control,
      lo_document TYPE REF TO i_oi_document_proxy.

    CHECK bintab IS NOT INITIAL.

    IF show = abap_true.
*---&amp;gt; Setup Control ...
        c_oi_container_control_creator=&amp;gt;get_container_control(
          IMPORTING
            control = lo_control ).

        IF lo_control IS BOUND.
          lo_control-&amp;gt;init_control(
            EXPORTING
              inplace_enabled          = abap_false
              no_flush                 = abap_true
              r3_application_name      = sy-title
              parent                   = cl_gui_container=&amp;gt;screen1
            EXCEPTIONS
              javabeannotsupported     = 1
              OTHERS                   = 2 ).
          IF sy-subrc &amp;lt;&amp;gt; 0.
            RETURN.
          ENDIF.
        ENDIF.

*---&amp;gt; Create ExcelSheet-Doc
        lo_control-&amp;gt;get_document_proxy(
          EXPORTING
            document_type  = 'Excel.Sheet'
            no_flush       = abap_false
          IMPORTING
            document_proxy = lo_document ).

*---&amp;gt; Open Excel
        IF lo_document IS BOUND.
          lo_document-&amp;gt;open_document_from_table(
            EXPORTING
              document_size    = size
              document_table   = bintab
              document_title   = sy-title
              no_flush         = abap_false
              open_inplace     = abap_false ).
        ENDIF.

    ELSE.
*---&amp;gt; Download Data to Folder &amp;lt;X&amp;gt; as XLSX
        &amp;lt;do the cl_gui_frontend_services=&amp;gt;gui_download( ... ) thing ...&amp;gt;
    ENDIF.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325227#M5137</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2016-10-27T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Excel open issue in WS_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325228#M5138</link>
      <description>&lt;P&gt;Vivek, I'm afraid you've just shot yourself (or rather the company where this is implemented) in the leg. It's time to move away from all the old FMs and using unreleased FMs actually has never been a good idea. But thank goodness for downvoting in new SCN!&lt;/P&gt;&lt;P&gt;Anyways, if this has been answered then kindly click on "Accept answer" somewhere. Otherwise this still appears on the unanswered question list.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-open-issue-in-ws-execute/m-p/325228#M5138</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-10-27T16:32:14Z</dc:date>
    </item>
  </channel>
</rss>

