cancel
Showing results for 
Search instead for 
Did you mean: 

header group in wd alv

Former Member
0 Kudos
489

hi,

is it possible to show in an alv the normal columns (e.g. column A and column B) and additionally a row above the normal column names a header group with the width of A and B?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Thorsten,

I am searching the solution for this problem in my ALV.

Have you found the solution?

Thanks in advance.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I will save you the trouble of reading the entire online help (as suggest by one of the other posters). You have the ability to create such a group header with the normal Table UI element. However there is no such functionality in the ALV API. You can create a table header area as suggested, but I believe you are asking for a group header.

I believe the reason this isn't exposed directly in the ALV is because it is used internally when you do a grouped sort. The ALV automatically buids group headers to explain the grouped sort/sum.

Depending upon your requirements if you must have the group header and aren't using much else in the ALV, you might be better off using the plain old table. Here is a link to how to do group headers in the table UI element:

[http://help.sap.com/saphelp_nw70/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm]

Look for the section about 1/2 way through the page called Header Group.

Former Member
0 Kudos

hi thomas,

unfortunately I need e. g. the excel export and insert row functionality of the alv and so I can´t use a normal table for my group header...

i want the following structure in my alv:

________________________

| chars | numbers | <---- group header

________________________

| A | B | C | 1 | 2 | 3 | 4 | <---- column header

________________________

| ... | .... | .... |..... |....| ...| ...| <---- column values row 1

________________________

is it really impossible?

If I use a normal table I need e. g. the excel function (bapi etc...)

Edited by: Thorsten Winter on May 14, 2008 3:26 PM

the table format is jumping but I hope it´s clear whats my aim

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I double checked the SALV interfaces and found not options for setting group headers. This does seem likely, because group header functionality is used internally within the ALV. Keep in mind that the SALV doesn't necessarily expose all the functionality of the underly table UI element.

Former Member
0 Kudos

ok

thank you again

Former Member
0 Kudos

Hi,

is it also impossible with CL_WD_TABLE_COLUMN_GROUP??

I'm searching for a good solution.

Thanks

Sascha

Former Member
0 Kudos

Hello,

Please take a look at this: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011].

Hope this help.

Regards,

Former Member
0 Kudos

Hi Thorsten

Are you looking for the title of the ALV?

there is a method CREATE_HEADER in interface IF_SALV_WD_TABLE_SETTINGS . This will generate the title of the ALV.table

Regards

Naresh