Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem in alv grid?

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

Hi Naresh,

My requirement is the user should not select multiple lines in the list.He should select only one line at a time.

Former Member
0 Kudos

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