10-23-2007 6:17 PM
call method gr_grid->get_current_cell
importing
e_row = g_row
e_value = g_value
e_col = g_col
es_row_id = g_row_id
es_col_id = g_col_id
es_row_no = g_row_no.
clear wa_requests.
read table itab_requests index g_row_id into wa_requests.
case g_col_id.
when 'REQNUM'. "Show Process Order
if not wa_requests-reqnum is initial.
sy-ucomm = 'PICK'.
if wa_requests-reqnum+0(1) = 'R'.
leave to screen 200.
endif.
endif.
when others.
endcase.
endmethod.
endclass.
is the code i am using for ALV double click......
however when i select any row.....and double click...
i am going to screen 200, instead of content on the 200 i am still seeing the alv grid.......
how to fix this error.
10-23-2007 6:20 PM
Hi
since you are using the Methods with Objects
register the SY-Ucomm in the events of cl_salv_events_table class
and use the methods of class CL_SALV_TABLE
for double click
Regards
Anji
10-23-2007 6:20 PM
Hi
since you are using the Methods with Objects
register the SY-Ucomm in the events of cl_salv_events_table class
and use the methods of class CL_SALV_TABLE
for double click
Regards
Anji
10-23-2007 6:21 PM
10-23-2007 6:31 PM
> Hi
> since you are using the Methods with Objects
> register the SY-Ucomm in the events of
> cl_salv_events_table class
> and use the methods of class CL_SALV_TABLE
> for double click
>
> Regards
> Anji
Can you please let me know how to di this....
class lcl_event_receiver implementation.
method handle_double_click.
data: l_req like line of itab_requests.
data:
g_row type i,
g_value(10),
g_col type i,
g_row_id type lvc_s_row,
g_col_id type lvc_s_col,
g_row_no type lvc_s_roid.
* Read the double click cell
call method gr_grid->get_current_cell
importing
e_row = g_row
e_value = g_value
e_col = g_col
es_row_id = g_row_id
es_col_id = g_col_id
es_row_no = g_row_no.
clear wa_requests.
read table itab_requests index g_row_id into wa_requests.
case g_col_id.
when 'REQNUM'. "Show Process Order
if not wa_requests-reqnum is initial.
sy-ucomm = 'PICK'.
if wa_requests-reqnum+0(1) = 'R'.
LEAVE TO SCREEN 200.
endif.
endif.
when others.
endcase.
endmethod.
endclass.
data: event_receiver type ref to lcl_event_receiver.
is the code i wrote....
10-23-2007 6:42 PM
10-23-2007 7:18 PM
Yes.
The exact problem is the alv is in screen 500...and depending on the request it should leave to 200 or 300.
which it is doinh......but instead of displaying the contents in screen it is displaying alv table in 200 too..
Message was edited by:
Karthik
10-23-2007 7:23 PM
10-23-2007 7:25 PM
Oh, ok if the double click is working fine, then leave it as it is. Is the container on screen 200, the same name as the contain on screen 500? Is it possible that the same object is being populated into the container on screen 200. Check the PBO of screen 200 and make sure that the correct object is being embeded.
Regards,
Rich Heilman