<?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: Execute an Excel Macro? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318907#M164711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't hurt to look but have you checked your security with Microsoft Excel? In Excel 2000, Macro security may be low but I found with Excel 2003, security defaults to much higher. I lower the Macro security and things begin to work again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, transaction KEPM with Excel 2000 works but if I ALT+TAB, the macro gets confused and causes short dumps. Microsoft is aware of the erro but will not fix it. This caused me to upgrade to Excel 2003 for KEPM Excel in place and it fails due to the Macros involved. I lower the security on Macros in excel and it works great.  Excel -&amp;gt; Tools -&amp;gt; Macros -&amp;gt; Security (set to low to prove out the concept)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 19:01:37 GMT</pubDate>
    <dc:creator>90070279</dc:creator>
    <dc:date>2006-09-12T19:01:37Z</dc:date>
    <item>
      <title>Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318902#M164706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a report in which I show the result in an Excel...so far no problem... I open an Excel Template document, I pass the information I want to the places I want etc. The only problem is that I method for executing a macro seems not to work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody has an idea whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The security for macros in the excel is at medium...I already tried to put the security level to low...but nothing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;i&amp;gt;retcode&amp;lt;/i&amp;gt; has as result "MACRO_OR_SCRIPT_FAILED"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the Macro and I am sure it works...because when I execute it manualy it does what it should do. Even after my report has open the documente and shows the document I can execute de macro and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
        call method p_g_document-&amp;gt;execute_macro
          exporting
            macro_string = 'COPYSHEET'
          importing
            error        = it_errors
            retcode      = retcode.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for information, the only thing the macro does is copying a spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I somebody could help it would be great, I already lost some days to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Moreira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 16:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318902#M164706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318903#M164707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What the Method/FM are you using to export the report output into excel template?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 17:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318903#M164707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T17:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318904#M164708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check FM "RH_START_EXCEL_WITH_DATA" also go throught FM's documentation.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 17:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318904#M164708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318905#M164709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To export report output to excel I first of all get the spreadsheet interface, than for each information I want to pass (separatet in blocks) I define a range dimension and then I use this method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      call method p_g_spreadsheet-&amp;gt;insert_one_table
          exporting
                    data_table  = excel_table
                    ddic_name   = 'ZHR_TBORD_HEADER'
                    rangename   = 'SUBAREA'
                    wholetable  = 'X'
          importing
                    error       = it_errors
                    retcode     = retcode.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;i&amp;gt;excel_table&amp;lt;/i&amp;gt; is a table where each line is a caractar line: &amp;lt;i&amp;gt;line(500) type c&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 17:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318905#M164709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T17:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318906#M164710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not seemes that someone has the answer I need, but my last question for this topic is....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone of you already implement a report, using an excel with macro calling from ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have doubts if the method &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;call method I_OI_DOCUMENT_PROXY-&amp;gt;execute_macro&amp;lt;/i&amp;gt; really work for Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even in the SAPOFFICEINTEGRATION example I am not sure if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone of you has an working example of macro calling from ABAP for Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very glad if somebody has some ideas for my problem....I getting mad with this... :-S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Moreira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 09:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318906#M164710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an Excel Macro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318907#M164711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't hurt to look but have you checked your security with Microsoft Excel? In Excel 2000, Macro security may be low but I found with Excel 2003, security defaults to much higher. I lower the Macro security and things begin to work again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, transaction KEPM with Excel 2000 works but if I ALT+TAB, the macro gets confused and causes short dumps. Microsoft is aware of the erro but will not fix it. This caused me to upgrade to Excel 2003 for KEPM Excel in place and it fails due to the Macros involved. I lower the security on Macros in excel and it works great.  Excel -&amp;gt; Tools -&amp;gt; Macros -&amp;gt; Security (set to low to prove out the concept)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 19:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-an-excel-macro/m-p/1318907#M164711</guid>
      <dc:creator>90070279</dc:creator>
      <dc:date>2006-09-12T19:01:37Z</dc:date>
    </item>
  </channel>
</rss>

