<?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 Interactive Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386337#M1043187</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;Thanks for the response. The data displayed at all 3 levels is different and Iam using 3 different internal tables to hold the data at each level as the data types are different for the 3 levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present Iam using USER_COMMAND but this is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg., the first level displays plant data and based on plant data second level is displayed. Second level is storage location data and based on this data 3rd level is displayed. Iam using three different internal tables to hold data at each level. Even I use the Read command in USER_COMMAND  , as the internal tables are different at different levels Iam having problem in identifying what the previous data was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND TABLES p_nodes STRUCTURE seucomm USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;  CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;  WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;  READ TABLE t_output INTO WA_OUTPUT INDEX RS_SELFIELD-TABINDEX. &lt;/P&gt;&lt;P&gt;  Perform fill_column_headers.&lt;/P&gt;&lt;P&gt;  Perform bld_ls_fieldcat. &lt;/P&gt;&lt;P&gt;  Perform bld_layout.&lt;/P&gt;&lt;P&gt;  PERFORM event_call.&lt;/P&gt;&lt;P&gt;  PERFORM populate_event.&lt;/P&gt;&lt;P&gt;  Perform display_alv_report_sloc.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above code t_output is used to hold 1st level data and the internal tables are different for other levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If any one has examples of ALV repoting which displays more than 3 levels please send the code. Thanks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mariosuresh on Aug 20, 2008 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2008 12:30:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-20T12:30:19Z</dc:date>
    <item>
      <title>ALV Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386334#M1043184</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;Iam working on ALV interactive Report which has 3 levels of reporting.  First level will be displaying plant data. In second level  Storage location data is displayed and third level material data is displayed. The problem is coming when iam trying to display third level data. Based on the level it will be calling different subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any field which gives in which level we are?. I tried sy-lsind but the value is always zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 09:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386334#M1043184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386335#M1043185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/ALV/ALVTreeDemo/interactive.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/ALV/ALVTreeDemo/interactive.htm&lt;/A&gt; Check the program in the link for your reference.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 09:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386335#M1043185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386336#M1043186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; when iam trying to display third level data. Based on the &amp;gt;level it will be calling different subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to display different ALV report, then Don't use any Common USER_COMMAND routines with different names, use separate Routines, may be you are using  same name for all the cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 09:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386336#M1043186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386337#M1043187</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;Thanks for the response. The data displayed at all 3 levels is different and Iam using 3 different internal tables to hold the data at each level as the data types are different for the 3 levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present Iam using USER_COMMAND but this is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg., the first level displays plant data and based on plant data second level is displayed. Second level is storage location data and based on this data 3rd level is displayed. Iam using three different internal tables to hold data at each level. Even I use the Read command in USER_COMMAND  , as the internal tables are different at different levels Iam having problem in identifying what the previous data was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND TABLES p_nodes STRUCTURE seucomm USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;  CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;  WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;  READ TABLE t_output INTO WA_OUTPUT INDEX RS_SELFIELD-TABINDEX. &lt;/P&gt;&lt;P&gt;  Perform fill_column_headers.&lt;/P&gt;&lt;P&gt;  Perform bld_ls_fieldcat. &lt;/P&gt;&lt;P&gt;  Perform bld_layout.&lt;/P&gt;&lt;P&gt;  PERFORM event_call.&lt;/P&gt;&lt;P&gt;  PERFORM populate_event.&lt;/P&gt;&lt;P&gt;  Perform display_alv_report_sloc.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above code t_output is used to hold 1st level data and the internal tables are different for other levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If any one has examples of ALV repoting which displays more than 3 levels please send the code. Thanks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mariosuresh on Aug 20, 2008 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 12:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386337#M1043187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386338#M1043188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this example with more than 3 levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_alv_interactive.
TYPE-POOLS: slis.
DATA: it_flight TYPE sflight_tab1,
      it_spfli TYPE TABLE OF spfli,
      it_book TYPE STANDARD TABLE OF sbook,
      it_scarr TYPE STANDARD TABLE OF scarr.
DATA: form_name TYPE slis_formname,
      struc TYPE  dd02l-tabname,
      title TYPE lvc_title .


SELECT * FROM scarr
INTO TABLE it_scarr
UP TO 10 ROWS.


form_name = 'USER_COMMAND1'.
struc = 'SCARR'.
title = 'First List'.
PERFORM list_display USING form_name
                           struc
                           title
                           it_scarr.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  list_display
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_FORM_NAME  text
*      --&amp;gt;P_IT_FLIGHT  text
*----------------------------------------------------------------------*
FORM list_display  USING    p_form_name
                            struc
                            title
                            it_data TYPE STANDARD TABLE.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program      = sy-repid
      i_callback_user_command = form_name
      i_structure_name        = struc
      i_grid_title            = 'Flight'
    TABLES
      t_outtab                = it_data
    EXCEPTIONS
      program_error           = 1.

ENDFORM.                    " list_display
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_command1
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command1 USING ucomm TYPE sy-ucomm
 selfield TYPE slis_selfield.
  DATA: wa_scarr TYPE scarr.

  CASE ucomm.
    WHEN '&amp;amp;IC1'.
      READ TABLE it_scarr INTO wa_scarr INDEX selfield-tabindex.
      CLEAR it_spfli.
      SELECT * FROM spfli
      INTO TABLE it_spfli
      WHERE carrid = wa_scarr-carrid.
      form_name = 'USER_COMMAND2'.
      struc = 'SPFLI'.
      title = 'Second List'.
      PERFORM list_display USING form_name
                                 struc
                                 title
                                 it_spfli.

  ENDCASE.

ENDFORM.                    "user_command1
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_command2
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command2 USING ucomm TYPE sy-ucomm
 selfield TYPE slis_selfield.
  DATA: wa_spfli TYPE spfli.

  CASE ucomm.
    WHEN '&amp;amp;IC1'.
      READ TABLE it_spfli INTO wa_spfli INDEX selfield-tabindex.
      CLEAR it_flight.
      SELECT * FROM sflight
      INTO TABLE it_flight
      WHERE carrid = wa_spfli-carrid AND
            connid = wa_spfli-connid.
      form_name = 'USER_COMMAND3'.
      struc = 'SFLIGHT'.
      title = 'Third List'.
      PERFORM list_display USING form_name
                                 struc
                                 title
                                 it_flight.

  ENDCASE.

ENDFORM.                    "user_command1
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_command2
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command3 USING ucomm TYPE sy-ucomm
 selfield TYPE slis_selfield.
  DATA: wa_flight TYPE sflight.

  CASE ucomm.
    WHEN '&amp;amp;IC1'.
      READ TABLE it_flight INTO wa_flight INDEX selfield-tabindex.
      CLEAR it_scarr.
      SELECT * FROM sbook
      INTO TABLE it_book
      WHERE carrid = wa_flight-carrid AND
            connid = wa_flight-connid AND
            fldate = wa_flight-fldate.
      struc = 'SBOOK'.
      title = 'Fourth List'.
      PERFORM list_display USING form_name
                                 struc
                                 title
                                 it_book.

  ENDCASE.
ENDFORM.                    "user_command1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 12:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-interactive-report/m-p/4386338#M1043188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T12:56:52Z</dc:date>
    </item>
  </channel>
</rss>

