cancel
Showing results for 
Search instead for 
Did you mean: 

Features of ALV Grid

Former Member
0 Kudos

Hi Guys,

I have a requirement that in the ALV Grid display, I want a group column that consists of subsequent columns.

Group Column

-


Col A

Col B

Col C

-


Can some one tell me how we might achieve this and how the field catalog must be filled in such a case.

Regards,

Pavan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You must use the IT_SORT table of set_table_for_first_display method to create the groups.

It will create the subtotals/groups after the registers contained in it. If you want to show it before, you must use the field IS_LAYOUT-TOTALS_BEF (also in method set_table_...)

regards,

David R.

Former Member
0 Kudos

Hi David,

I am not exactly looking for grouping of columns or subtotals.

I want the column headers to read in such a way.

Like


Quantity


Min

Max


And I will have only two columns in my internal table, its just that the column headers should read in this manner, hope my question is clear.

Regards,

Pavan

0 Kudos

Hello,

I think it's not possible. I have the same problem within one of my reports.

The header line in the grid has the same number of fields as the items of the grid. I would do the following:


Quantity


Min

Max


So the header text of the second field in <blankl>

Ole.

Former Member
0 Kudos

Hi Ole,

That was exactly what I implemented as well.

Was just checking if there is another better way.

Regards,

Pavan