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: 

pop-up alv

Former Member
0 Kudos

Hi,

I am getting an alv grid output....and when i double click on a field i want a POP UP GRID ALV to be shown on that same screen.....

Thanks in advance......

1 ACCEPTED SOLUTION

Former Member
0 Kudos

U can do it triggering the user command event.

Inside the event u call the FM

REUSE_ALV_POPUP_TO_SELECT

Reward points if it is useful.

Regards,

Vasanth

3 REPLIES 3

Former Member
0 Kudos

U can do it triggering the user command event.

Inside the event u call the FM

REUSE_ALV_POPUP_TO_SELECT

Reward points if it is useful.

Regards,

Vasanth

Former Member
0 Kudos

Hi ,

If you want to make ALV to come as Pop up, go through this link

Basically it involves the use of the FM REUSE_ALV_POPUP_TO_SELECT. Do it in PAI event.

Regards,

SP.

JoseMunoz
Active Participant
0 Kudos

You have to capture the double click event in the alv grid, then call function 'POPUP_FOR_INFORMATION' or some related to make the popup.

To capture the event in the ALV:

CLASS lcl_event_handler DEFINITION .

PUBLIC SECTION .

DATA: e_row_id TYPE REF TO lvc_s_row.

DATA: e_column_id TYPE REF TO lvc_s_col.

DATA: es_row_no TYPE lvc_s_roid.

DATA: es_col_id TYPE REF TO lvc_s_col.

*Double-click control

METHODS handle_button_click

FOR EVENT button_click OF cl_gui_alv_grid

IMPORTING es_col_id es_row_no. " E_COLUMN_ID.

PRIVATE SECTION.

ENDCLASS. "lcl_event_handler DEFINITION

CLASS lcl_event_handler IMPLEMENTATION .

*Handle Hotspot Click

METHOD handle_hotspot_click .

PERFORM handle_hotspot_click USING e_row_id e_column_id.

ENDMETHOD . "handle_hotspot_click

*Handle Button Click

METHOD handle_button_click .

PERFORM handle_button_click USING es_col_id es_row_no.

ENDMETHOD . "handle_Button_click

ENDCLASS . "lcl_event_handler IMPLEMENTATION

Then the form to make the popup:

FORM handle_button_click USING es_col_id TYPE lvc_s_col

es_row_no TYPE lvc_s_roid.

ENDFORM. " handle_double_click

Regards