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 HEading

Former Member
0 Likes
386

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.

2 REPLIES 2
Read only

Former Member
0 Likes
363

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

Read only

Former Member
0 Likes
363

hi,

Go through the standard program 'BCALV_TREE_DEMO' . you will get idea about display the heading...

Regards,

Arun.