on 2008 May 13 5:23 PM
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?
Hi Thorsten,
I am searching the solution for this problem in my ALV.
Have you found the solution?
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.