<?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 Function Module MS_EXCEL_OLE_STANDARD_DAT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690135#M1450910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone point me to an actual use case or documentation on how to create pivot tables with this function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 18:03:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-03T18:03:08Z</dc:date>
    <item>
      <title>Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690135#M1450910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone point me to an actual use case or documentation on how to create pivot tables with this function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690135#M1450910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T18:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690136#M1450911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you done a where used list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried Google?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690136#M1450911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T18:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690137#M1450912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a word, "Yes".  I always search there before posting here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690137#M1450912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690138#M1450913</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;This function module populates an existing excel sheet with the data from the ABAP internal table, and also to include headings in excel download Please find below code which shows how to declare and populate the import and important parameters.&lt;/P&gt;&lt;P&gt; REPORT ZEX_DATATOEXCEL .&lt;/P&gt;&lt;P&gt;Parameters: P_file like RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of int_head occurs 0,&lt;/P&gt;&lt;P&gt;Filed1(20) type c,                     " Header Data&lt;/P&gt;&lt;P&gt;end of int_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of int_data occurs 0,&lt;/P&gt;&lt;P&gt;Field1(20) type c,                     " Data&lt;/P&gt;&lt;P&gt;Field2(20) type c,&lt;/P&gt;&lt;P&gt;Field3(20) type c,&lt;/P&gt;&lt;P&gt;Field4(20) type c,&lt;/P&gt;&lt;P&gt;end of int_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_head-Filed1 = 'Sales Ord'.&lt;/P&gt;&lt;P&gt;APPEND int_head.&lt;/P&gt;&lt;P&gt;CLEAR  int_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_head-Filed1 = 'Sold-to-Party'.&lt;/P&gt;&lt;P&gt;APPEND int_head.&lt;/P&gt;&lt;P&gt;CLEAR  int_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_head-Filed1 = 'Purchase Ord'.&lt;/P&gt;&lt;P&gt;APPEND int_head.&lt;/P&gt;&lt;P&gt;CLEAR  int_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_head-Filed1 = 'Ship-to-Party'.&lt;/P&gt;&lt;P&gt;APPEND int_head.&lt;/P&gt;&lt;P&gt;CLEAR  int_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_data-field1 = '1JOHN'.&lt;/P&gt;&lt;P&gt;int_data-field2 = '2TOM'.&lt;/P&gt;&lt;P&gt;int_data-field3 = '3BRAD'.&lt;/P&gt;&lt;P&gt;int_data-field4 = '4PETER'.&lt;/P&gt;&lt;P&gt;Append int_data.&lt;/P&gt;&lt;P&gt;Clear int_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file " path offile where u need to download&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CREATE_PIVOT = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA_SHEET_NAME = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PIVOT_SHEET_NAME = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PASSWORD = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PASSWORD_OPTION = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PIVOT_FIELD_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data_tab = int_data "internal table with data&lt;/P&gt;&lt;P&gt;fieldnames = int_head "internal table with header&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_not_exist = 1&lt;/P&gt;&lt;P&gt;filename_expected = 2&lt;/P&gt;&lt;P&gt;communication_error = 3&lt;/P&gt;&lt;P&gt;ole_object_method_error = 4&lt;/P&gt;&lt;P&gt;ole_object_property_error = 5&lt;/P&gt;&lt;P&gt;invalid_filename = 6&lt;/P&gt;&lt;P&gt;invalid_pivot_fields = 7&lt;/P&gt;&lt;P&gt;download_problem = 8&lt;/P&gt;&lt;P&gt;OTHERS = 9&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shirisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690138#M1450913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690139#M1450914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shirisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question specifically addresses how to create an Excel file with a *&lt;STRONG&gt;pivot table&lt;/STRONG&gt;.*using the FM.     Your example does not show that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690139#M1450914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module MS_EXCEL_OLE_STANDARD_DAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690140#M1450915</link>
      <description>&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;
 LV_PATH TYPE STRING,&lt;BR /&gt;
 LV_FULLPATH TYPE STRING,&lt;BR /&gt;
 LV_RESULT TYPE I,&lt;BR /&gt;
 LV_FILENAME TYPE STRING,&lt;BR /&gt;
 LV_FNAME1 TYPE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_SAVE_DIALOGEXPORTING  " FILE DIRECTORY&lt;BR /&gt;
 WINDOW_TITLE = 'File Directory'&lt;BR /&gt;
 INITIAL_DIRECTORY = 'C:\User\Desktop'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;
 FILENAME = LV_FILENAME&lt;BR /&gt;
 PATH = LV_PATH&lt;BR /&gt;
 FULLPATH = LV_FULLPATH&lt;BR /&gt;
 USER_ACTION = LV_RESULT.&lt;BR /&gt;
 &lt;BR /&gt;
 LV_FNAME1 = LV_FULLPATH.&lt;/P&gt;&lt;P&gt;*===================================================================================&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'EXPORTING&lt;BR /&gt;
 FILE_NAME = LV_FNAME1 "FILE_NAMETABLES&lt;BR /&gt;
 DATA_TAB = DATA_TAB " Internal Table&lt;BR /&gt;
 FIELDNAMES = IT_JOIN_FIELDS " Header Table&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;BR /&gt;
 FILE_NOT_EXIST = 1&lt;BR /&gt;
 FILENAME_EXPECTED = 2&lt;BR /&gt;
 COMMUNICATION_ERROR = 3&lt;BR /&gt;
 OLE_OBJECT_METHOD_ERROR = 4&lt;BR /&gt;
 OLE_OBJECT_PROPERTY_ERROR = 5&lt;BR /&gt;
 INVALID_PIVOT_FIELDS = 6&lt;BR /&gt;
 DOWNLOAD_PROBLEM = 7OTHERS = 8.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE '' .&lt;/P&gt;&lt;P&gt;ELSEIF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;MESSAGE '' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 06:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ms-excel-ole-standard-dat/m-p/6690140#M1450915</guid>
      <dc:creator>raisaansari</dc:creator>
      <dc:date>2020-01-15T06:35:18Z</dc:date>
    </item>
  </channel>
</rss>

