Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

interactive reports

Former Member
0 Kudos

hi

In interactive reports how can we go from basic list to 4th list.

how can we use interactive in ALV's

1 ACCEPTED SOLUTION

former_member387317
Active Contributor
0 Kudos

Hi Alka,

you can not go directly from basic list to the 4th list....

first you have to move to the fourth list...

i mean you have to pass through the 1 2 3 and then 4th list ....

now if you are coming back to basic list then only u can make a move to the 4th list..

otherwise not...

For that try out in this way

<b>AT line-selection.</b> " event for the interactive report

CASE SY-LSIND. " system variable

WHEN 0. "

<b>SY-LSIND</b> = 4.

ENDCASE.

For making ALV Interactive report...

Go through below links..

Hope it will solve your problem..

<b>Reward Points if it is helpful.</b>

Thanks & Regards

ilesh 24x7

3 REPLIES 3

Former Member
0 Kudos

Hi,

you can use the following coding for moving from basic list to 4th secondary list.

AT LINE-SELECTION.

CASE SY-LSIND.

WHEN 0.

SY-LSIND = 4.

ENDCASE.

Regards,

Padmam.

0 Kudos

for interactive in ALV's you need implement events. Something like this:

*---------------------------------------------------------------------*
*       CLASS lcl_eventhandler DEFINITION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_eventhandler DEFINITION.

  PUBLIC SECTION.

    CLASS-METHODS:
      handle_double_click FOR EVENT
          if_salv_events_actions_table~double_click
          OF cl_salv_events_table
          IMPORTING
            row
            column.

ENDCLASS.     

*---------------------------------------------------------------------*
*       CLASS lcl_eventhandler IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_eventhandler IMPLEMENTATION.

  METHOD handle_double_click.

...

  ENDMETHOD.                    "handle_double_click

ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION


START-OF-SELECTION.

*... §2 create an ALV table
  TRY.
      cl_salv_table=>factory(
        EXPORTING
          r_container    = gv_container
          container_name = 'CONTAINER'
        IMPORTING
          r_salv_table   = go_table
        CHANGING
          t_table        = it_compania ).
    CATCH cx_salv_msg.                                  "#EC NO_HANDLER
  ENDTRY.

* Create objeto de eventos
  go_events = go_table->get_event( ).

* Asignar eventos
  SET HANDLER:
    lcl_eventhandler=>handle_double_click FOR go_events.

  go_table->display( ).

For more details, goto programs:

- SALV_DEMO_TABLE_EVENTS

- BCALV_TEST_LIST_EVENTS

- BCALV_TEST_FULLSCREEN_EVENTS

- BCALV_TEST_GRID_EVENTS

former_member387317
Active Contributor
0 Kudos

Hi Alka,

you can not go directly from basic list to the 4th list....

first you have to move to the fourth list...

i mean you have to pass through the 1 2 3 and then 4th list ....

now if you are coming back to basic list then only u can make a move to the 4th list..

otherwise not...

For that try out in this way

<b>AT line-selection.</b> " event for the interactive report

CASE SY-LSIND. " system variable

WHEN 0. "

<b>SY-LSIND</b> = 4.

ENDCASE.

For making ALV Interactive report...

Go through below links..

Hope it will solve your problem..

<b>Reward Points if it is helpful.</b>

Thanks & Regards

ilesh 24x7