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

ALV_GRID_DISPLAY

Former Member
0 Likes
1,003

Hello,

I have a box, first,

then a field F1 which has 3 different possible values

then others fields.

I have a lot of rows and i don't want the field F1 to be displayed if its values is the same from 1 row to next one.

How can I do this for this field and for other fields ?

PS : I'm using a simple ALV GRID

Thanks for help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
977

If I put back my check box ( in any place ), i can't group the values.

Without I can group the values using sort criterials but I need this check box which is used to select rows.

Thanks for help.

Message was edited by:

Bertrand Demeyre

Hello,

I have a box, first,

then a field F1 which has 3 different possible values

then others fields.

I have a lot of rows and i don't want the field F1 to be displayed if its values is the same from 1 row to next one.

How can I do this for this field and for other fields ?

PS : I'm using a simple ALV GRID

Thanks for help.

8 REPLIES 8
Read only

Former Member
0 Likes
977

I am not sure if I understand your requirement completely.

But if you want to hide a field, you can set the NO_OUT = 'X' in the field catalog for that specific field.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
977

I think you are talking about grouping, if so simply sort the column, the grouping will be automatic.

REgards,

Rich Heilman

Read only

0 Likes
977

Hi,

It doesn't work. I don't know why.

Perhaps because of the first field which is a checkbox.

Do you think it will work if i use a sort criterial ??

Thanks for help.

BD

Read only

0 Likes
977

Change the column positions and get all the columns that you want to sort to the start. Then SORT that should work.

You can try without SORTING programmitically. Use the ALV grid SORT options and see the result. If that works out, then you can programitcally put it in place.

Regards,

Ravi

Message was edited by:

Ravikumar Allampallam

Read only

0 Likes
977

Hi,

It doesn't work.

I removed the checkbox field to test and I sorted by the key.

It isn't grouping the values.

Have you another idea ?

Thanks for help.

Read only

0 Likes
977

Make sure in the layout CELL_MERGE is set to X.

Regards,

Ravi

Read only

Former Member
0 Likes
978

If I put back my check box ( in any place ), i can't group the values.

Without I can group the values using sort criterials but I need this check box which is used to select rows.

Thanks for help.

Message was edited by:

Bertrand Demeyre

Read only

0 Likes
977

The problem is that the checkbox(i assume is editable) forces the edit mode for the entire ALV Grid. If the ALV grid is editable, you can not group any of the fields( if memory serves correctly).

Regards,

Rich Heilman