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

convert rows to columns

Former Member
0 Likes
704

here  there are 4 rows and 3 columns in one internal table and 6 columns ans 2 rows in other internal table. How to proceed

Itab1/wa1

s      f1      f2      f3

r1     a     b     c

r2     d     e     f    

r3     g     h     i

r4     j     k      l

o/p

itab2/wa2

s      f1      f2      f3     f4     f5     f6

r1     a       b        c     d     e       f    

r2     g        h       i      j     k        l    

How to proceed??

help me out

4 REPLIES 4
Read only

Former Member
0 Likes
676

hi Soumya,

Can you please share the exact table and values. how are these related to each other.

Based on that information I can suggest a logic.

Regards,

DN.

Read only

0 Likes
676

in ITAB1/WA1 there are 3 field and 4 records

in ITAB2/WA2 there are 6 fields

the 1st 2 records in ITAB1 should append into the 1st record of ITAB2

and the next 2 records in ITAB1 should append into the 2nd record of ITAB2

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
676

Welcome to SCN! Please make sure to use Google before posting new questions. Similar questions have already been answered before, just google 'transpose site:scn.sap.com'.

Read only

0 Likes
676

ya sure thank you...