Hello Friends,
I am working with OOALV methods and displaying the Material no's Batch etc...
If I click on Material number I need to navigate to MM03 and if I click back button in MM03 control should come to output list some times this is not happening in my case what will be issue.
*class definition
CLASS lcl_evthndlr DEFINITION.
PUBLIC SECTION.
METHODS handle_dblclk
FOR EVENT hotspot_click OF cl_gui_alv_grid "double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row_id e_column_id .
e_row e_column es_row_no .
ENDCLASS. "lcl_evthndlr DEFINITION
*class implementation
CLASS lcl_evthndlr IMPLEMENTATION.
METHOD handle_dblclk.
READ TABLE t_outtab INTO wa_outtab INDEX e_row.
PERFORM get_current_cell_info.
CALL METHOD grid1->get_scroll_info_via_id
IMPORTING
es_row_no = w_scroll
es_col_info = w_col_inf.
IF sy-subrc = 0.
IF e_column = c_matnr.
Authorization check
AUTHORITY-CHECK OBJECT 'Q_TCODE'
ID 'TCD' FIELD 'MM03'.
IF sy-subrc > 0.
MESSAGE e398(00) WITH text-026 space space space.
ELSE.
SET PARAMETER : ID 'MAT' FIELD wa_outtab-matnr.
CALL TRANSACTION c_mm03.
PERFORM set_scroll_info.
ENDIF.
ENDMETHOD. "handle_dblclk
Sometimes again the control is coming to method handle_dblclk.
again calling MM03...I am unable to come back to display, it is happening like infinite loop.
This is occuring in very rare cases not always.
Thanks,
Ravi.