2008 Mar 05 5:04 PM
HI,
I have an ALV using OOPS where I have to display heading.
E.g:
Customer Name material qty
ABC 1 2
ABC W 1
ABC E 3
DEF 2 1
DEF R 2
DEF P 1
I have to display the above in ALV as:
ABC
1 2
W 1
E 3
DEF
2 1
R 2
P 1
Can anyone suggest me how I woud be able to do the above?
THanks.
HI,
I have an ALV using OOPS where I have to display heading.
E.g:
Customer Name material qty
ABC 1 2
ABC W 1
ABC E 3
DEF 2 1
DEF R 2
DEF P 1
I have to display the above in ALV as:
ABC
1 2
W 1
E 3
DEF
2 1
R 2
P 1
Can anyone suggest me how I woud be able to do the above?
THanks.
2009 Dec 08 4:36 AM
Hi,
This is very simple to do. Enable the subtotals and add the field which you want to be shown in the sorting table.
Your alv will be shown like this:
ABC_____1_____ww
_________2_____qq
_________3_____aa
DEF______1_____uu
_________2_____ee
To add sort you need to use lvc_t_sorts and subtotals can be enabled in the lvc_s_layout.
I think this is what you want then just add sorting criteria and turn on subtotals.
Regards,
Manish
Edited by: manish21 on Dec 8, 2009 5:37 AM
Edited by: manish21 on Dec 8, 2009 5:38 AM
2009 Dec 08 4:55 AM
hi,
Go through the standard program 'BCALV_TREE_DEMO' . you will get idea about display the heading...
Regards,
Arun.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |