<?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 Execute Excel macros from ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693755#M1768428</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;P&gt;I've used OLE to export data from SAP to Excel, so I have the document, and at last I'd like to execute a Excel macro from ABAP inside this new Excel that I've just created, is it possible? Where should I store the Excel macro?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read about I_OI_DOCUMENT_PROXY interface, but I can't execute the macro yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, if somebody knows how to do it, it would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Sep 2013 11:21:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-08T11:21:19Z</dc:date>
    <item>
      <title>Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693755#M1768428</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;P&gt;I've used OLE to export data from SAP to Excel, so I have the document, and at last I'd like to execute a Excel macro from ABAP inside this new Excel that I've just created, is it possible? Where should I store the Excel macro?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read about I_OI_DOCUMENT_PROXY interface, but I can't execute the macro yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, if somebody knows how to do it, it would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 11:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693755#M1768428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-08T11:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693756#M1768429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_excel 'EXCEL.APPLICATION' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PROPERTY OF go_excel 'Visible' = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PROPERTY OF go_excel 'Workbooks' = gs_wbooks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PROPERTY OF go_wbooks 'Application' = go_app .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF go_app 'Run' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING #1 = macro_string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 11:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693756#M1768429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-09T11:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693757#M1768430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried, but I don't know where store the Excel macro to be executed from SAP (C:\Windows\System32??), and which name and extension. I'd need some real example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 19:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693757#M1768430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T19:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693758#M1768431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Macros you want to execute are and should be part of global excel template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not in any system32 folder.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To execute anything you need to connect to it... so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create and EXCEL OLE Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the WorkBook and then Execute the Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the macro_string is the name of the Macro you want to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 05:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693758#M1768431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-12T05:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693759#M1768432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never executed an Excel Macro.&lt;BR /&gt;But found this sample report SAPRDEMOEXCELINTEGRATION.&lt;BR /&gt;It calls MACRO 'R3StartupMacro' at line number 288.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OAOR &amp;amp; SBDSV1 Transaction codes, you will need to give &lt;/P&gt;&lt;P&gt;CLASS NAME = SOFFICEINTEGRATION and CLASS TYPE = OT to see associated details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 06:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693759#M1768432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-12T06:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Excel macros from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693760#M1768433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check reply by Lars on thread &lt;A _jive_internal="true" href="https://answers.sap.com/thread/148656"&gt;http://scn.sap.com/thread/148656&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Appends Source Code Internal table &lt;BR /&gt;Sub functionname()&lt;BR /&gt;...&lt;BR /&gt;End Sub&lt;/LI&gt;&lt;LI&gt;Then calls method passing source code internal table. Gets a script name OKADIS&lt;BR /&gt;Call method pptr_script_collection-&amp;gt;add_script_from_table&lt;/LI&gt;&lt;LI&gt;Runs EXECUTE_MACRO using that script name OKADIS&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check original post by Rebecca on thread &lt;A _jive_internal="true" href="https://answers.sap.com/thread/26946"&gt;http://scn.sap.com/thread/26946&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA: macro_string(50) TYPE c VALUE 'FB03process.FromTheBeginning'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short MACRO as "EXCELNAME.FromTheBeginning" is directly written in EXECUTE_MACRO method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 06:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-excel-macros-from-abap/m-p/9693760#M1768433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-12T06:43:58Z</dc:date>
    </item>
  </channel>
</rss>

