<?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: i_oi_spreadsheet-&amp;gt;set_ranges_data problem? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-oi-spreadsheet-gt-set-ranges-data-problem/m-p/6717556#M1454829</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;dont pass value for wa_range_name-top and wa_range_name-left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shanmugavel chandrasekaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Mar 2010 11:36:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-10T11:36:46Z</dc:date>
    <item>
      <title>i_oi_spreadsheet-&gt;set_ranges_data problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-oi-spreadsheet-gt-set-ranges-data-problem/m-p/6717555#M1454828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Build ranges table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear: wa_range.&lt;/P&gt;&lt;P&gt;    wa_range-name    = 'range1'.&lt;/P&gt;&lt;P&gt;    wa_range-rows    = 3.&lt;/P&gt;&lt;P&gt;    wa_range-columns = 2.&lt;/P&gt;&lt;P&gt;    wa_range-code    = 1.&lt;/P&gt;&lt;P&gt;    append wa_range to lt_ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear: wa_range.&lt;/P&gt;&lt;P&gt;    wa_range-name    = 'range2'.&lt;/P&gt;&lt;P&gt;    wa_range-rows    = 4.&lt;/P&gt;&lt;P&gt;    wa_range-columns = 2.&lt;/P&gt;&lt;P&gt;    wa_range-code    = 1.&lt;/P&gt;&lt;P&gt;    append wa_range to lt_ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build contents table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   clear: wa_content.&lt;/P&gt;&lt;P&gt;   wa_content-col1 = 'a1'.&lt;/P&gt;&lt;P&gt;   wa_content-col2 = 'b1'.&lt;/P&gt;&lt;P&gt;   append wa_Content to lt_contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   clear: wa_content.&lt;/P&gt;&lt;P&gt;   wa_content-col1 = 'a7'.&lt;/P&gt;&lt;P&gt;   wa_content-col2 = 'b7'.&lt;/P&gt;&lt;P&gt;   append wa_Content to lt_contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build range names table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_range_name-name    = 'range1'.&lt;/P&gt;&lt;P&gt;wa_range_name-top     = 1.&lt;/P&gt;&lt;P&gt;wa_range_name-left    = 1.&lt;/P&gt;&lt;P&gt;wa_range_name-rows    = 3.&lt;/P&gt;&lt;P&gt;wa_range_name-columns = 2.&lt;/P&gt;&lt;P&gt;append wa_range_name to gt_range_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: wa_range_name.&lt;/P&gt;&lt;P&gt;wa_range_name-name    = 'range2'.&lt;/P&gt;&lt;P&gt;wa_range_name-top     = 7.&lt;/P&gt;&lt;P&gt;wa_range_name-left    = 1.&lt;/P&gt;&lt;P&gt;wa_range_name-rows    = 4.&lt;/P&gt;&lt;P&gt;wa_range_name-columns = 2.&lt;/P&gt;&lt;P&gt;append wa_range_name to gt_range_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to excel file &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-----------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method g_spreadsheet-&amp;gt;insert_ranges&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        ranges   = gt_range_name&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ERROR    = g_error&lt;/P&gt;&lt;P&gt;        RETCODE  = g_retcode&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method g_spreadsheet-&amp;gt;set_ranges_data&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        ranges   = lt_ranges&lt;/P&gt;&lt;P&gt;        contents = lt_contents&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        error     = g_error&lt;/P&gt;&lt;P&gt;        retcode   = g_retcode.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;------------------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only data of range1 is written to excel while data of range2 is missed.&lt;/P&gt;&lt;P&gt;(g_retcode = 'OK' -&amp;gt; excel export successfully).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pls help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hung.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 06:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-oi-spreadsheet-gt-set-ranges-data-problem/m-p/6717555#M1454828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T06:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: i_oi_spreadsheet-&gt;set_ranges_data problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-oi-spreadsheet-gt-set-ranges-data-problem/m-p/6717556#M1454829</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;dont pass value for wa_range_name-top and wa_range_name-left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shanmugavel chandrasekaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 11:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-oi-spreadsheet-gt-set-ranges-data-problem/m-p/6717556#M1454829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T11:36:46Z</dc:date>
    </item>
  </channel>
</rss>

