<?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 using WWW_LIST_TO_HTML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651513#M611188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that complicated to create interactive report ?&lt;/P&gt;&lt;P&gt;An ALV is an interactive report ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        David Fryda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 06:15:10 GMT</pubDate>
    <dc:creator>david_fryda2</dc:creator>
    <dc:date>2007-08-09T06:15:10Z</dc:date>
    <item>
      <title>Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651510#M611185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem using WWW_LIST_TO_HTML function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done many writes and I want to transfer all those writes to a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the table that returns from WWW_LIST_TO_HTML contains&lt;/P&gt;&lt;P&gt;also the old data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;DATA: gt_w3html  LIKE TABLE OF w3html WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DO 3 TIMES.&lt;/P&gt;&lt;P&gt;CLEAR: gt_w3html.&lt;/P&gt;&lt;P&gt;REFRESH: gt_w3html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-index = 1.&lt;/P&gt;&lt;P&gt;      WRITE:/ 'hello1'.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-index = 2.&lt;/P&gt;&lt;P&gt;      WRITE:/ 'hello2'.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-index = 3.&lt;/P&gt;&lt;P&gt;      WRITE:/ 'hello3'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WWW_LIST_TO_HTML'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        list_index = sy-lsind&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        html       = gt_w3html.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when sy-index = 2, the gt_w3html contains hello1 and hello2.&lt;/P&gt;&lt;P&gt;When sy-index = 3, gt_w3html contains hello1, hello2 and hello3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like that gt_w3html will contain only the text that is relevant : &lt;/P&gt;&lt;P&gt;if sy-index =3, gt_w3html should contain only hello3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&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;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 05:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651510#M611185</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2007-08-09T05:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651511#M611186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the loop is running 3 times so for first run it is showing hello1&lt;/P&gt;&lt;P&gt;and for 2nd loop hello2 and for 3 rd loop hello3&lt;/P&gt;&lt;P&gt;DO 3 TIMES.&lt;/P&gt;&lt;P&gt;CLEAR: gt_w3html.&lt;/P&gt;&lt;P&gt;REFRESH: gt_w3html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-index = 1.&lt;/P&gt;&lt;P&gt;WRITE:/ 'hello1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;DO 3 TIMES.&lt;/P&gt;&lt;P&gt;CLEAR: gt_w3html.&lt;/P&gt;&lt;P&gt;REFRESH: gt_w3html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-index = 2.&lt;/P&gt;&lt;P&gt;WRITE:/ 'hello2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;DO 3 TIMES.&lt;/P&gt;&lt;P&gt;CLEAR: gt_w3html.&lt;/P&gt;&lt;P&gt;REFRESH: gt_w3html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-index = 3.&lt;/P&gt;&lt;P&gt;WRITE:/ 'hello3'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS FOR HELPFUL ANSWERS,&lt;/P&gt;&lt;P&gt;KIRAN.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 05:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651511#M611186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T05:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651512#M611187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program will generate all the values in one list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though there are 3 separate write statements, the sy-lsind will be 0 that is for the initial page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your report output will always contain all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to see, each Hello, then you have to use Interactive report.&lt;/P&gt;&lt;P&gt;If you click on the first list page, it will take you to the next page thus displaying the hello2 and then hellow3 in 3rd page. But through this code, you can only generate all the Hellos in one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 05:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651512#M611187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T05:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651513#M611188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that complicated to create interactive report ?&lt;/P&gt;&lt;P&gt;An ALV is an interactive report ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        David Fryda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 06:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651513#M611188</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2007-08-09T06:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651514#M611189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You dont really need to use an ALV for interactive purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A normal report can be made interactive and not a big task at all.&lt;/P&gt;&lt;P&gt;You have to use the normal list events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go to transaction ABAPDOCU to find some sample code of how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example program DEMO_LIST_INTERACTIVE_1.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 06:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651514#M611189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using WWW_LIST_TO_HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651515#M611190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 06:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-www-list-to-html/m-p/2651515#M611190</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2007-08-09T06:25:57Z</dc:date>
    </item>
  </channel>
</rss>

