Skip to Content
0
Former Member
Jun 12, 2006 at 03:08 PM

Rows to Column Conversion in ABAP

39 Views

Hello guys,

I wanted to create a report in which I need to convert rows in to column.

e.g.

I have a itab_col which contains my column header as follows.

itab_col-plant itab_col-name

1000 Plant A

2000 Plant B

3000 Plant C

I have a itab_data which contains my data as follows .

itab_data-date itab_data-qty itab_data-plant

01.06.2006 10 1000

01.06.2006 20 1000

01.06.2006 50 2000

02.06.2006 20 3000

I need to print the report as follows

Date Plant A Plant B Plant C

01.06.2006 30 50 0

02.06.2006 0 0 20

Could you tell me how I can do it in abap.