<?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: OLE objects and OO methods - Error using OLE automation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765154#M905876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. I wasn't sufficiently careful in translating the method to a function. Now the function is working well. The method still has a problem which I think relates to the "restriction of classes can't work with dynpros". Pity, I prefer to use methods. I can wrap the function in a method and that works OK but, what's the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think it is the same problem that James was having. I guess we have to live with functions a while longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2016 11:40:17 GMT</pubDate>
    <dc:creator>kevin_neale</dc:creator>
    <dc:date>2016-04-22T11:40:17Z</dc:date>
    <item>
      <title>OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765146#M905868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm developing an class to read/write excel sheets and i'm getting an error on the OLE method that is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on this instruction &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;call method of l_obj_excel 'WORKBOOKS' = l_workb_col.&lt;/STRONG&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got a dump that give me the following error &lt;STRONG&gt;&lt;EM&gt;UC_OBJECTS_NOT_CONVERTIBLE&lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange is that i've got the same code running on reports and it works fine only when passing it to a oo method i get that dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thzs in advanced to all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;Jaime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 16:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765146#M905868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765147#M905869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ZMULTICOLOR_TEST no standard page heading.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this report demonstrates how to send some ABAP data to an&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEL sheet using OLE automation.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;include ole2incl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handles for OLE objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: h_excel type ole2_object,        " Excel object&lt;/P&gt;&lt;P&gt;      h_mapl type ole2_object,         " list of workbooks&lt;/P&gt;&lt;P&gt;      h_map type ole2_object,          " workbook&lt;/P&gt;&lt;P&gt;      h_zl type ole2_object,           " cell&lt;/P&gt;&lt;P&gt;      h_f type ole2_object,            " font&lt;/P&gt;&lt;P&gt;      h_c type ole2_object.            " color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FILENAME LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: spfli.&lt;/P&gt;&lt;P&gt;data  h type i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table of flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_spfli like spfli occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   Event START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * from spfli into table it_spfli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  uline (61).&lt;/P&gt;&lt;P&gt;  write: /     sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.&lt;/P&gt;&lt;P&gt;  uline /(61).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_spfli.&lt;/P&gt;&lt;P&gt;    write: / sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-carrid color col_key no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-connid color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-cityto color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-deptime color col_normal no-gap, sy-vline no-gap.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  uline /(61).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-007&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create object h_excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM ERR_HDL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set property of h_excel  'Visible' = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'  .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM ERR_HDL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-008&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get list of workbooks, initially empty&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of h_excel 'Workbooks' = h_mapl.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add a new workbook&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of h_mapl 'Add' = h_map.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-009&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;output column headings to active Excel sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform fill_cell using 1 1 1 200 'Carrier id'(001).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 2 1 200 'Connection id'(002).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 3 1 200 'City from'(003).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 4 1 200 'City to'(004).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 5 1 200 'Dep. Time'(005).&lt;/P&gt;&lt;P&gt;  loop at it_spfli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy flights to active EXCEL sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    h = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;    if it_spfli-carrid cs 'AA'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 000255000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'AZ'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 168000000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'JL'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 168168000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'LH'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 111111111 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'SQ'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 100100100 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 000145000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-connid lt 400.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 255000255 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-connid lt 800.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 077099088 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 246156138 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-cityfrom cp 'S*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-cityfrom cp 'N*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-cityto cp 'S*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 200200200 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-cityto cp 'N*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 000111222 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 130230230 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-deptime lt '020000'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 145145145 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-deptime lt '120000' .&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 015215205 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-deptime lt '180000' .&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 000215205 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 115115105 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEL FILENAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE SY-REPID '_' SY-DATUM&lt;EM&gt;6(2) '_' SY-DATUM&lt;/EM&gt;4(2) '_'&lt;/P&gt;&lt;P&gt;              SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  free object h_excel.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM FILL_CELL                                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      sets cell at coordinates i,j to value val boldtype bold       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_cell using i j bold col val.&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = h_zl&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      #1 = i&lt;/P&gt;&lt;P&gt;      #2 = j.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_zl 'Value' = val .&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  get property of h_zl 'Font' = h_f.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_f 'Bold' = bold .&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_f 'Color' = col.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;endform.                    "FILL_CELL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  ERR_HDL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      outputs OLE error if any                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form err_hdl.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: / 'OLE-Automation Error:'(010), sy-subrc.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " ERR_HDL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765147#M905869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765148#M905870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;thanzs but my problem is that in a class method (developed in se24) the OLE objects throw that error. &lt;/P&gt;&lt;P&gt;Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards &lt;/P&gt;&lt;P&gt;Jaime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 08:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765148#M905870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T08:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765149#M905871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever work out what was happening here? I am getting the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 06:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765149#M905871</guid>
      <dc:creator>kevin_neale</dc:creator>
      <dc:date>2016-04-14T06:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765150#M905872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please create a new post with a link to this OOOLD thread; don't forget to attach the full short dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765150#M905872</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-04-14T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765151#M905873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there's the SAP note 1260130 - Dump UC_OBJECTS_NOT_CONVERTIBLE in SAPLOLEA "The type of return variable is incorrect for a SAP GUI automation call. For example, a character field is provided where you expect an object to be." i.e. it doesn't indicate there is a difference between report and class, but make sure that in the case of call method of l_obj_excel 'WORKBOOKS' = l_workb_col. that l_workb_col was defined with DATA l_workb_col TYPE OLE2_OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not this issue, did you make sure you are calling the OLE from within a dynpro sequence?&lt;/P&gt;&lt;P&gt;Other possibility: maybe that it's the restriction of classes can't work with dynpros (flush stuff and so on). By the way, did you try to add NO FLUSH, maybe it won't dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765151#M905873</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-04-14T12:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765152#M905874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to look at this. I did try to start a new discussion but for some reason it was rejected. I am yet to find out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, Yes, I thought about the possibility of OO and front end not working well together so I translated the class to a function. I still had the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion of adding NO FLUSH and it did stop the short dump but no file was created either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP Note doesn't seem to be valid for this system 6.40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 05:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765152#M905874</guid>
      <dc:creator>kevin_neale</dc:creator>
      <dc:date>2016-04-15T05:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765153#M905875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it doesn't work for function modules either, thus it's not the same issue as Jaime Cordero. Are you sure your variable is defined like ddic structure OBJ_RECORD (i.e. OLE2_OBJECT in type pool OLE2), and that your code is executed while connected to the SAP GUI? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 06:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765153#M905875</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-04-15T06:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: OLE objects and OO methods - Error using OLE automation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765154#M905876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. I wasn't sufficiently careful in translating the method to a function. Now the function is working well. The method still has a problem which I think relates to the "restriction of classes can't work with dynpros". Pity, I prefer to use methods. I can wrap the function in a method and that works OK but, what's the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think it is the same problem that James was having. I guess we have to live with functions a while longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 11:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-objects-and-oo-methods-error-using-ole-automation/m-p/3765154#M905876</guid>
      <dc:creator>kevin_neale</dc:creator>
      <dc:date>2016-04-22T11:40:17Z</dc:date>
    </item>
  </channel>
</rss>

