2007 Mar 22 5:55 AM
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.
2007 Mar 27 5:21 AM
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
2007 Mar 27 7:38 AM
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