<?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: ALV BLOCK LIST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870104#M1593724</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;U are using the same event for all appends., try like this.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = lv_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = li_fieldc&lt;/P&gt;&lt;P&gt;i_tabname = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_events = li_events.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = lv_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = li_fieldc&lt;/P&gt;&lt;P&gt;i_tabname = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_events = li_events1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use different event name and different form name., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2011 03:44:18 GMT</pubDate>
    <dc:creator>Kiran_Valluru</dc:creator>
    <dc:date>2011-05-04T03:44:18Z</dc:date>
    <item>
      <title>ALV BLOCK LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870103#M1593723</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;I have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;some codes here----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_event-name = 'TOP_OF_LIST'.&lt;/P&gt;&lt;P&gt;lS_event-form = 'HEADER'.&lt;/P&gt;&lt;P&gt;APPEND ls_event TO li_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP i_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'H'.&lt;/P&gt;&lt;P&gt;  wa_header-info = i_tab1-field1.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP i_tab2.&lt;/P&gt;&lt;P&gt;--building i_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout                        = lv_layout&lt;/P&gt;&lt;P&gt;        it_fieldcat                      = li_fieldc&lt;/P&gt;&lt;P&gt;        i_tabname                        = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;        it_events                        = li_events.&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                         = i_output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; some codes here -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_list_commentary = t_header.&lt;/P&gt;&lt;P&gt;endform.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'i_tab1-field1' &amp;lt;--- kinda like a header but only on the table &lt;/P&gt;&lt;P&gt;______________________&lt;/P&gt;&lt;P&gt;/____/______/____/______/&lt;/P&gt;&lt;P&gt;/____/______/____/______/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'i_tab1-field1' &amp;lt;--- different value from the first one.&lt;/P&gt;&lt;P&gt;______________________&lt;/P&gt;&lt;P&gt;/____/______/____/______/&lt;/P&gt;&lt;P&gt;/____/______/____/______/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I'm getting the same header. And the worst part is, both tables are the same. How do I fix this?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 03:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870103#M1593723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-04T03:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV BLOCK LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870104#M1593724</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;U are using the same event for all appends., try like this.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = lv_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = li_fieldc&lt;/P&gt;&lt;P&gt;i_tabname = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_events = li_events.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = lv_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = li_fieldc&lt;/P&gt;&lt;P&gt;i_tabname = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_events = li_events1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use different event name and different form name., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 03:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870104#M1593724</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-05-04T03:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV BLOCK LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870105#M1593725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 differnt events like it_events1 and it_event2. and now pass these 2 event to your 2 differnt function modules.&lt;/P&gt;&lt;P&gt;in 2 evets you need to create the text which ever want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM lt_events1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_events1.&lt;/P&gt;&lt;P&gt;  wa_events1-name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  wa_events1-form = 'TOP_OF_PAGE_1'.&lt;/P&gt;&lt;P&gt;  APPEND wa_events1 TO it_events1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_events1.&lt;/P&gt;&lt;P&gt;ENDFORM.                                                    "lt_events1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM lt_events2 .&lt;/P&gt;&lt;P&gt;  CLEAR wa_events2.&lt;/P&gt;&lt;P&gt;  wa_events2-name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  wa_events2-form = 'TOP_OF_PAGE_2'.&lt;/P&gt;&lt;P&gt;  APPEND wa_events2 TO it_events2.&lt;/P&gt;&lt;P&gt;  CLEAR wa_events2.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM top_of_page_1.                                       &lt;/P&gt;&lt;P&gt;WRITE:/  text-001 COLOR 3.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM top_of_page_2.                                     &lt;/P&gt;&lt;P&gt;  WRITE:/ text-002 COLOR 5.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you..&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;Chinna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chinna guntur on May 4, 2011 11:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 06:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870105#M1593725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-04T06:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV BLOCK LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870106#M1593726</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;This is what I noticed though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I will only be using 1 internal table for appending which is inside a loop rebuilding the table each loop. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = lv_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = li_fieldc&lt;/P&gt;&lt;P&gt;i_tabname = 'I_OUTPUT'&lt;/P&gt;&lt;P&gt;it_events = li_events. &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = &lt;STRONG&gt;i_output&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think this created the problem of all blocks having the same data. Is there even a way to use 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;using the same table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For events, I don't know how many table blocks will be appended so creating many events is not an ideal solution. Although 19 blocks is  the limit, still..... Also,  I rearranged the code, using the same events inside the loop. I got my output but not on the same page. It goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'REUSE_ALV_BLOCK_LIST_INIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP itab2.&lt;/P&gt;&lt;P&gt;-build i_output-&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'REUSE_ALV_BLOCK_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to have the output on the same page?! I mean no need to press back to display the next table ?! And not placing INIT and DISPLAY outside the outer loop because I'm using the same internal table and doing so will result into table blocks having the same data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 06:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870106#M1593726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-04T06:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV BLOCK LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870107#M1593727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New knowledge learned: Events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 06:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-block-list/m-p/7870107#M1593727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-19T06:34:03Z</dc:date>
    </item>
  </channel>
</rss>

