cancel
Showing results for 
Search instead for 
Did you mean: 

Transpose columns and rows / Switch columns and rows

0 Kudos

Hello,

Is it possible to interchange columns and rows in order to create a left-to-right scrolling table instead of a top-to-bottom scrolling one?

In detail:

I have this:


      | col 1 | col 2 | col 3
- - - - - - - - - - - - - - - 
row 1 |       |       |
- - - - - - - - - - - - - - - 
row 2 |       |       |
- - - - - - - - - - - - - - - 
row 3 |       |       |
- - - - - - - - - - - - - - - 
...   |       |       |

...and want to have this:


      | row 1 | row 2 | row 3 | ...
- - - - - - - - - - - - - - - - - -
col 1 |       |       |       |
- - - - - - - - - - - - - - - - - -
col 2 |       |       |       |
- - - - - - - - - - - - - - - - - -
col 3 |       |       |       |

Does anyone know if this is possible with the standard table or the ALV?

Thanks in advance & Kind regards,

Robert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It depends on the data right...as the number of rows increases the ALV table should hold those many columns dynamically.

Based on the data, you need move that data corresponding to those columns and prepare the internal table. Bulding alv should be dynamic as you have rows as columns. context node creation and structure should be also dynamic here.

Edited by: Lekha on Oct 5, 2011 4:59 PM

0 Kudos

Hi,

So there is no easy solution by just setting a flag in the ALV config!? ...too bad!

As for the dynamic creation:

Would there be an issue with different data types in one "column" (former row)? As a matter of fact there probably will be a mix of character, numbers, ...

Regards,

Robert