Application Development and Automation 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: 
Read only

ALV Interactive using set_table_for_first_display

Former Member
0 Likes
4,281

Hello Gurus,

I have a requirement of Interactive report ,like on first output list when i click button provided on 22 column of 24 columns i need to go into another list .

So how can i achieve this using set_table_for_first_display, please anyone can provide me sample code.

Thanks & Regards,

1 ACCEPTED SOLUTION
Read only

Katan
Active Participant
0 Likes
2,029

Hi,

Have a look at demo program BCALV_GRID_02. 

Regards,

Katan

4 REPLIES 4
Read only

Katan
Active Participant
0 Likes
2,030

Hi,

Have a look at demo program BCALV_GRID_02. 

Regards,

Katan

Read only

VijayaKrishnaG
Active Contributor
0 Likes
2,029

Hi,

Hope this example program helps you, once have look.

http://saptechnical.com/Tutorials/ALV/Interactive/oops.htm

-Vijay

Read only

Former Member
0 Likes
2,029

HI,

Use the events of the class CL_GUI_ALV_GRID .

If you need the new screen to be displayed on :

Double click : use the event -> DOUBLE_CLICK

                                             Declare a method like this

                                            

         DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF cl_gui_alv_grid

         IMPORTING es_row_no.

Single (Button )click  : use the event -> BUTTON_CLICK

                                  Declare a method like this

                                            

         BUTTON_CLICK FOR EVENT BUTTON_CLICK OF cl_gui_alv_grid

         IMPORTING es_row_no.

or

Make the column as hotspot : use the event -> HOTSPOT_CLICK.

                                             Declare a method like this

                                            

         HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF cl_gui_alv_grid

         IMPORTING es_row_no.

And of course the set handler for registering methods.

SET HANDLER Class_object->DOUBLE_CLICK FOR Grid_object.

or

SET HANDLER Class_object->BUTTON_CLICK FOR Grid_object.

or

SET HANDLER Class_object->HOTSPOT_CLICK FOR Grid_object.

Hope this helps.

Regards.

Read only

sriharsha_parayatham
Participant
0 Likes
2,029

you have events in that same class

you need to handle the event of your requirement ..

create a local class or in your local class , create a handler for this event ,

and after setting table for first display , register for this event.

generally event when raised carries some info with it , based on the object .

in your case you will be getting row number and column number.

in your event handler method , this data will be available , and use accordingly.

based on the data , trigger new screen.