09-20-2007 1:46 PM
Hi guys,
I displayed a alv grid report.I added 2 buttons in the toolbar.My layout selection mode is set to 'space' or 'B'.So i m getting list in lines not as rows.Now the user selects any of the line in the list(he can select only one line not multiple lines) and click on the toolbar button,then transaction code mm03 will be executed using the material number in the selected line.
I know there is a method get_selected_rows.Is there any method for selecting lines?
Any suggestion please?
Thanks in advance.
09-20-2007 1:51 PM
ya just try to select multiple lines by pressing CTRL + Click
see the exapmlpe : BCALV_GRID_05
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
09-20-2007 2:10 PM
Hi Naresh,
My requirement is the user should not select multiple lines in the list.He should select only one line at a time.
09-20-2007 2:47 PM
hi dinesh,
in that case write the code as follw..
1) when user select the line(if it is multiple lines_ and clicks the button here write the below logic.
describe table <int table name> lines lin.
if line gt 0.
message i000 with 'Please selct one line at a time'.
endif.
thenur problem will be solved.
thanks,
maheedhar