06-26-2008 1:36 PM
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.
06-26-2008 2:02 PM
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
06-26-2008 1:44 PM
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.
06-26-2008 1:45 PM
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.
06-26-2008 1:45 PM
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.
06-26-2008 2:02 PM
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
06-27-2008 7:42 AM
Hai Vijay,
Thank you very much.
I used the FM REUSE_ALV_GRID_DISPLAY_LVC and is working fine.
Regards,
Bhaskar.
06-27-2008 8:23 AM
Hi Bhaskar M ,
can u send me the code with FM : REUSE_ALV_GRID_DISPLAY_LVC
regards,
diana.