Application Development and Automation 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: 
Read only

Disable multiple record selection from ALV

Former Member
0 Likes
1,459

Hi,

I have an ALV report. In this report multiple records can be selected. I want to restrict that. I want only one record can be selected and after that if somebody tries to select one more record it should not be allowed. How it can be done?

Regards,

Jeetu

5 REPLIES 5
Read only

Former Member
0 Likes
1,042

In the user command of the ALV, you can select all the record with the record FLAG = 'X'.

If the n° of the record is > 1 give an error message.

Regards

Read only

0 Likes
1,042

Hi Anna,

I do not want to display any error message. I want it should not allow to select multiple lines.

Regards,

Jeetu

Read only

0 Likes
1,042

Are you using Normal ALV or OO ALV...?

Read only

0 Likes
1,042

OO ALV

Read only

0 Likes
1,042

Try with SEL_MODE = 'B' of Layout. and pass this layout to the method.

Mode B is for Single row selection.