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: 

Using REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos
230

hi folks,

question: how can i use the function REUSE_ALV_GRID_DISPLAY twice in one project?

scenario: i've alv1 and doubleclick in one cell. now should open the alv2 with more info. to the field.

both callings are in one mainprogram.

if i use REUSE_ALV_LIST_DISPLAY - it works, using REUSE_ALV_GRID_DISPLAY doesnt work.

any ideas?

regards thomas

4 REPLIES 4

Former Member
0 Kudos
71

Hi,

This can be done,

CALL SCREEN 9000.

In PAI u will call the REUSE_ALV_GRID_DISPLAY for the dispaly.

When u double click on the cell, in the double click event CALL SCREEN XXXX.

eg.----


  • CLASS LCL_EVENT_RECEIVER DEFINITION

----


CLASS LCL_EVENT_RECEIVER DEFINITION.

  • Event receiver definitions for ALV actions

PUBLIC SECTION.

CLASS-METHODS:

  • Row Double click for dirll down.

HANDLE_DOUBLE_CLICK

FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID

IMPORTING E_ROW

E_COLUMN

ES_ROW_NO.

ENDCLASS.

CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.

*&----


*& Method handle_double_click

*&----


  • This method is called when the user double clicks on a line to drill

  • down.

  • The following are exported from the ALV

  • LVC_S_ROW

  • LVC_S_COL

  • LVC_S_ROID

*----


METHOD HANDLE_DOUBLE_CLICK.

  • The double click drill down processing should be

  • coded in the form below.

PERFORM F9007_HANDLE_DOUBLE_CLICK USING E_ROW

E_COLUMN

ES_ROW_NO.

ENDMETHOD.

ENDCLASS.

In the perform call the next screen u need to display.

In XXXX screen PAI call REUSE_ALV_GRID_DISPLAY and display the second grid.

I have tried the same for set_grid_for_first_display so hope so u will get.

Try this out.

Thanks & Regards,

Judith.

Message was edited by: Judith Jessie Selvi

0 Kudos
71

Hi thanks for answer, but doesnt work. ALV2 is empty.

Regards Thomas

0 Kudos
71

🐵 u was to quick.

i forgot: we dont use in this project methods. only the function.

i know, that this works with using methods.

anyway. thanks for help

0 Kudos
71

Hi,

I got it as i dont have sample programs in REUSE i tried using method.

Check once whether u have specified this in PBO.

MODULE status_9001 OUTPUT.

IF o_grid_container IS INITIAL -


in PBO.

If u have specified the same in the next screen it wont create the container so in the next screen PBO specify

MODULE status_9001 OUTPUT.

IF <b>NOT</b> o_grid_container IS INITIAL .

ENDIF.

ENDMODULE.

While trying using methods i too got blank screen.

I will try to work this out.

Thanks & Regards,

Judith.