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: 

change rows into coumns of another internal table

Former Member
0 Kudos

Hi,

I have a internal table having fields f1 f2 f3 f4 f5 f6 f7, and data (inseted 44 rows)

and i want to pass these field and data to other internal table having 7 rows and 45 columns. first column in new one should be f1 f2 .....f7.

Plz help me.

Thanks in advance,

Regards,

Ashish

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

you can change row into column use Field symbol. declare dynamic internal table.

6 REPLIES 6

Former Member
0 Kudos

Hi,

you can change row into column use Field symbol. declare dynamic internal table.

0 Kudos

can u send me sample code to do it?

0 Kudos

search the forum we had a solution for this last week.

Former Member
0 Kudos

chk this ALV example where it is transposed which is the same requirement as urs

http://www.geocities.com/mpioud/Z_ALV_LIST_TRANSPOSED.html

Former Member
0 Kudos

Hi,

use this class

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = lit_fldcat

IMPORTING

ep_table = git_new_table.

ASSIGN git_new_table->* TO <gfs_dynamic>.

  • Create dynamic work area and assign to FS

CREATE DATA git_new_line LIKE LINE OF <gfs_dynamic>.

ASSIGN git_new_line->* TO <gfs_dyn_wa>.

Former Member
0 Kudos

Thanks it's solved now