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: 

check box in ALV - how to remove line selectors?

Former Member
0 Kudos

Hai All,

I have to display sales orders in ALV grid.

A check box shoud be displayed against each row.

So if the user selects few sales orders & click on SAVE the data will be saved in custom table.

The problem now is,

I used the statement

field_cat-EDIT = 'X'

to make the checkbox editable.

But with this statement, the ALV grid is displaying

row selectors also.

is there any way to remove the line selectors?I need only check boxes to select a row.it should not contain line selectors.

Thanks & Regards,

Bhaskar.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

You can do that in OO ALV.

there is a field in layout

NO_ROWMARK = 'X'. this will remove the line selector.

But normal alv it is not possible.

if you dont want OO ALV, then use the Function module

REUSE_ALV_GRID_DISPLAY_LVC

6 REPLIES 6

Former Member
0 Kudos

Hi,

I have observe that when you put the some char field of length one in your internal table which you are passing to function module of ALV then it generates the row selector tab.

The better thing is to remove the checkbox and use the row selector for selecting purpose because ultimately you will gonna select the row only.

other wise you have to take OOPs approach.

Former Member
0 Kudos

Hi,

I have observe that when you put the some char field of length one in your internal table which you are passing to function module of ALV then it generates the row selector tab.

The better thing is to remove the checkbox and use the row selector for selecting purpose because ultimately you will gonna select the row only.

other wise you have to take OOPs approach.

Former Member
0 Kudos

Hi,

I have observe that when you put the some char field of length one in your internal table which you are passing to function module of ALV then it generates the row selector tab.

The better thing is to remove the checkbox and use the row selector for selecting purpose because ultimately you will gonna select the row only.

other wise you have to take OOPs approach.

former_member188685
Active Contributor
0 Kudos

You can do that in OO ALV.

there is a field in layout

NO_ROWMARK = 'X'. this will remove the line selector.

But normal alv it is not possible.

if you dont want OO ALV, then use the Function module

REUSE_ALV_GRID_DISPLAY_LVC

0 Kudos

Hai Vijay,

Thank you very much.

I used the FM REUSE_ALV_GRID_DISPLAY_LVC and is working fine.

Regards,

Bhaskar.

Former Member
0 Kudos

Hi Bhaskar M ,

can u send me the code with FM : REUSE_ALV_GRID_DISPLAY_LVC

regards,

diana.