<?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 TREE Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044680#M1501237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[http://help-abap.blogspot.com/search/label/OO%20ALV]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 09:08:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-21T09:08:48Z</dc:date>
    <item>
      <title>ALV TREE Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044679#M1501236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a tree alv report. Here i have 3 levels of heirearchy each heirearchy level has different fields to be displayed. Can anyone please help me out how to build the fieldcatalog when the field changes for each heirearchy level? If anyone can help me with sample report will be rewarded with points.&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;1st level - Netwrok Activity -- Display Fields from AFVC table&lt;/P&gt;&lt;P&gt;2nd level - Components of Activity - Display fields from RESB Table&lt;/P&gt;&lt;P&gt;3rd Level - Items of Component - Display fields from STPO table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We dont have such example in BCLAV&lt;STRONG&gt;TREE&lt;/STRONG&gt; if so pls help me with some sample code of program how to build fieldcatolog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 09:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044679#M1501236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T09:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044680#M1501237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[http://help-abap.blogspot.com/search/label/OO%20ALV]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 09:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044680#M1501237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044681#M1501238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require in ALV Grid Tree Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 09:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044681#M1501238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T09:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044682#M1501239</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;If it's going three level drill down list then you can use can see following piece of code. declaration should be like this.&lt;/P&gt;&lt;P&gt;top_of_page type slis_formname value 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;end_of_page type slis_formname value 'END_OF_PAGE',&lt;/P&gt;&lt;P&gt;user_command type slis_formname value 'USER_COMMAND',&lt;/P&gt;&lt;P&gt;pf_status_set type slis_formname value 'PF_STATUS_SET',&lt;/P&gt;&lt;P&gt;user_command1 type slis_formname value 'USER_COMMAND1',&lt;/P&gt;&lt;P&gt;pf_status_set1 type slis_formname value 'PF_STATUS_SET1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and displaying the first list will be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'REUSE_ALV_GRID_DISPLAY'
exporting
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = name
i_callback_pf_status_set = pf_status_set
i_callback_user_command = user_command
* I_STRUCTURE_NAME =
i_callback_top_of_page = 'TOP-OF-PAGE'
i_grid_title = 'CUSTOMER GROUP WISE REPORT'
is_layout = layout
it_fieldcat = fieldcat_t
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* it_sort = SORT_T
* IT_FILTER =
* IS_SEL_HIDE =
i_default = 'X'
i_save = 'A'
* IS_VARIANT =
* it_events = events_t
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* IT_ADD_FIELDCAT = FIELDCAT_T1
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_basic.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and capturing user command will be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form user_command using ucomm like sy-ucomm
selfield type slis_selfield.
case ucomm.
when '&amp;amp;IC1'.
read table it_basic index selfield-tabindex.
perform get_data_first_list using it_basic-kdgrp.
when '&amp;amp;PLEVEL'.
when '&amp;amp;CUST'.
when '&amp;amp;F15'.
leave to screen 0.
endcase.
endform. "user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you may be able to display the similar when the double click a line or clicking on a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want have mulitple header lines on the top of page you can this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader.

wa_header-typ = 'H'.
wa_header-info = xhead.
append wa_header to t_header.
clear wa_header.

concatenate sy-datum+6(2) sy-datum+4(2) sy-datum+0(4) into xhead1
separated by '.'.

wa_header-typ = 'H'.
wa_header-info = xhead1.
append wa_header to t_header.
clear wa_header.

* append t_header.

*append t_header.

call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
* i_logo = 'Z_LOGO'.
endform. "top-of-page&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May it helps you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 10:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-report/m-p/7044682#M1501239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T10:36:31Z</dc:date>
    </item>
  </channel>
</rss>

