<?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: Problem with 'MS_EXCEL_OLE_STANDARD_DAT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579837#M1434185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste the short dump details in here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 19:35:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-02T19:35:58Z</dc:date>
    <item>
      <title>Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579834#M1434182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to download data from internal table using this function but i get the following dump: UC_OBJECTS_NOT_CHAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is because i have a column in my table that's decimals type. All fileds must be c or string types so the function can work successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample of my code, what am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code. (You posted a number of lines that wre commented out.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 2, 2010 1:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 17:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579834#M1434182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T17:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579835#M1434183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   WZEIT is of type DEC3. Could you check this field. Move it to character field and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;San&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 18:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579835#M1434183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T18:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579836#M1434184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep, thanks for your answer but I've already tried changing the character type to C and it doesn't work!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the ty_header structure field wzeit to c length 3 and i get the same dump....=|&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 19:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579836#M1434184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T19:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579837#M1434185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste the short dump details in here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 19:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579837#M1434185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T19:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579838#M1434186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just wrote sample program as below, and working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  YSAT_020210_TEST1.
tables: rlgrap.
PARAMETERS: pathfile like rlgrap-filename.

  data: begin of excel_down_wa,
         col1(8) type c,
         col2(40) type c,
         col3(5) type c,
         col4(10) type c,
         col5(20) type c,
         col6(10) type c,
         col7(10) type c,
         col8(10) type c,
         col9(10) type c,
* begin note 686989
         col10(10) type c,
         col11(10) type c,
* end note 686989
       end of excel_down_wa,
       excel_down like excel_down_wa occurs 0.


      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          FILE_NAME                       = pathfile
*   CREATE_PIVOT                    = 0
*   DATA_SHEET_NAME                 = ' '
*   PIVOT_SHEET_NAME                = ' '
*   PASSWORD                        = ' '
*   PASSWORD_OPTION                 = 0
       TABLES
*   PIVOT_FIELD_TAB                 =
         DATA_TAB                        = excel_down
*   FIELDNAMES                      =
       EXCEPTIONS
         FILE_NOT_EXIST                  = 1
         FILENAME_EXPECTED               = 2
         COMMUNICATION_ERROR             = 3
         OLE_OBJECT_METHOD_ERROR         = 4
         OLE_OBJECT_PROPERTY_ERROR       = 5
         INVALID_PIVOT_FIELDS            = 6
         DOWNLOAD_PROBLEM                = 7
         OTHERS                          = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 19:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579838#M1434186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T19:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579839#M1434187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHILE sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;   ASSIGN COMPONENT cnt OF STRUCTURE &amp;lt;data_tab_wa&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;   CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   READ TABLE fieldnames INDEX cnt ASSIGNING &amp;lt;fieldname&amp;gt;.&lt;/P&gt;&lt;P&gt;   IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;     &amp;lt;field&amp;gt; = &amp;lt;fieldname&amp;gt;.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   WRITE cnt TO &amp;lt;field&amp;gt; LEFT-JUSTIFIED.&lt;/STRONG&gt;*   &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dump shows the problem on the bold line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's because of the "marc-wzeit" character type which is DEC3, but in this case what should I do? Changing the type for 'C' doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't this function work for all character types?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 12:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579839#M1434187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'MS_EXCEL_OLE_STANDARD_DAT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579840#M1434188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the help to everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution, I created another internal table with type c fields which is it_saida_aux.&lt;/P&gt;&lt;P&gt;All I  had to was to loop the it_saida table (with fields standard table fields type) and move the data to it_saida_aux table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 13:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-ms-excel-ole-standard-dat/m-p/6579840#M1434188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T13:24:24Z</dc:date>
    </item>
  </channel>
</rss>

