Application Development 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: 

ALV Display dynamic column with multiline header

Former Member
0 Kudos

Hi All.

I need to create alv display with dynamic number of columns. Also, it contains two header line. Kindly help me in coding.

The required format is this format.

Product | Week1 | Week2 |.......| WeekN

-


|--


|
|
---|--


| Sales | Sales |.......| Sales

-


|--


|
|
---|--


PRD1 | value | Value |.......| Value

PRD2 | value | Value |.......| Value

PRD3 | value | Value |.......| Value

Thanks.

Sadhna

3 REPLIES 3

Former Member
0 Kudos

Hi Sadhna,

this link may help

https://www.sdn.sap.com/irj/scn/wiki

use -- type slis_key_info_alv of type-pools: slis for multiple headers

Regards,

Mdi.Deeba

Former Member
0 Kudos

Hi Sadhana,

You mean to say that your internal Table contains

ABCDEF are the fields in your Internal table.

A--


B
C

D
---E-----F

1--


12---13---a
11
----1

2--


11---01---b
9
-----0

3--


01---00---c
32
----0

4--


14---01---d
21
----0

Now using Dynamic Internal Table it should display the output as follow :

A--


B
C

F
---a---b-c----d

1--


12---13---1
11
-9-32--21

Here you want to display the the fields of D as header and E as its corresponding values...?

Please let me knwo if you mean the same..

Regards,

Kittu

0 Kudos

Yes you are right. Please provide the solution this. It is one part other part is multiline header.