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: 

How to handle two hot spot clicks on one screen

Former Member
0 Kudos
116

Hi Experts,

i am Developing two alv grids in one screen.if i hotspot click on first grid it is going to second grid.if i click on hotspot on second grid it will go to the transaction(RECN).how to do that?

i am implementing two hotspot click implementation for diffrent grids.but if i click on second grid of hot spot click it is not going to transaction.

please suggest me the approach.

Thanks,

Venkat.

2 REPLIES 2

former_member194623
Participant
0 Kudos
39

Hi Venkat,

Are you using ALV Grid control or FM REUSE_ALV_GRID_DISPLAY.

If you are using ALV Grid control have you defined separate handlers for both the grids.

If you are using FM have you defined separate callback FORMs (I_CALLBACK_USERCOMMAND) for both the grids.

If you are using same module (handler / FORM) for both the grids, try assigning different fcodes in respective layout structure's field F2CODE and handle them accordingly.

Regards,

Manish Joshi

Message was edited by:

Manish Joshi

uwe_schieferstein
Active Contributor
0 Kudos
39

Hello Venkat

Please refer to my answers in thread

.

method handle_hotspot_click.
 
  CASE sender.
    WHEN go_grid1.  " displayed on screen '0100'
      " do whatever is necessary for adjusting the 2nd ALV list
 
      CALL METHOD cl_gui_cfw=>set_new_ok_code( 'REFRESH' ).
      " NOTE: This triggers PAI of dynpro '0100'
      " ok-code 'REFRESH' -> dummy for refreshing 2nd ALV list

    WHEN go_grid2.  
      " get selected data from ALV grid

        SET PARAMETER ID ... .
        CALL TRANSACTION 'RECN'.  " and skip first screen.

        " If you want to call the transaction in a new modus then use
        " static method CL_RECA_GUI_SERVICES=>call_transaction.
    WHEN OTHERS.
      RETURN.
  ENDCASE.

endmethod.

Regards

Uwe