2010 Nov 08 6:40 AM
Hi all,
My requirement is this. I have to display an ALV list of purchase orders,whenever I double click on a single row,the data should be extracted and used in the next screen implementation. i have done the extraction part. All I wanna know is how can I close that alv list when I double click on a row ????
Moderator Message: Do not type in Capital letters. It is considered shouting. Do not use phrase like Help Needed in the title. I've made the changes for you this time.
Edited by: kishan P on Nov 8, 2010 12:13 PM
2010 Nov 08 7:05 AM
I am not using OOPS concept. I am using REUSE_ALV FM. I have brought the ALV list output. My requirement is,If i doubleclick a row in ALV list,that list should close. What should I write inside
case sy-ucomm.
when '&ic1'
????????
endcase. ????
Hi all,
My requirement is this. I have to display an ALV list of purchase orders,whenever I double click on a single row,the data should be extracted and used in the next screen implementation. i have done the extraction part. All I wanna know is how can I close that alv list when I double click on a row ????
Moderator Message: Do not type in Capital letters. It is considered shouting. Do not use phrase like Help Needed in the title. I've made the changes for you this time.
Edited by: kishan P on Nov 8, 2010 12:13 PM
2010 Nov 08 6:42 AM
2010 Nov 08 7:07 AM
HI there,
I'm not sure i understand what you want to do. Are you attempting to close it once you double click? Currently is it opening 2 screens?
Regards
Tatenda
2010 Nov 08 6:59 AM
Hi,
You can two methods either take interactive list and display the data of particular row in detailed list, in dis way both primary as well as secondary list will be outputted.
or if you do not want to display the primay list then you can make the list no = 0 using system variable sy-lsind for detailed list.
ZCL_OOPS_ALV_GRID05 chk this prog
2010 Nov 08 7:05 AM
I am not using OOPS concept. I am using REUSE_ALV FM. I have brought the ALV list output. My requirement is,If i doubleclick a row in ALV list,that list should close. What should I write inside
case sy-ucomm.
when '&ic1'
????????
endcase. ????
2010 Nov 08 8:16 AM
I don't know exactly Why do you want to close the ALV insted just Use just use 'LEAVE TO SCREEN <YOUR SCREEN NUMBER>'
Hope this helps
2010 Nov 08 8:24 AM
Hi
Check the interface of the routine for the user-comand you should find out the flag for the exit:
case sy-ucomm.
when '&ic1'
rs_selfield-exit = 'X'.
endcase. Max
2010 Nov 08 8:20 AM
Hi
handle the double click event by calling FM REUSE_ALV_EVENTS_GET
* Fill eventtab
refresh lt_events.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = lt_events_tmp.
loop at lt_events_tmp into l_events.
case l_events-name .
when slis_ev_user_command.
move c_evt_usercommand to l_events-form.
when others.
continue.
endcase.
append l_events to lt_events.
endloop.
.
.*then in REUSE FM pass the table lt_events
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
it_fieldcat = i_fieldcat
is_layout = it_layout
i_default = 'X'
i_save = 'A'
is_variant = l_variant
it_events = lt_events[]
tables
t_outtab = gt_outtab.
regards
Isaac Prince
2010 Nov 08 9:15 AM
Hi
if you are using function module then u can try this, whn your ALV gets outputted read the data of line and place it in some variable means when you double click on any row, use the event double-click and under that give statement exit. or decrease the sy-lsind value.
2010 Nov 08 10:35 AM
@Max..
This is exactly what i was looking for.. I am amazed.. You have answers for everything.
2010 Nov 08 10:46 AM
Hi
Probably I've been working with ABAP for a longer time than you
I'm here for this
Thanks
Max
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |