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

Transposing an internal table

graghavendra_sharma
Contributor
0 Likes
497

Dear all,

Can anybody please help me with the logic

internal table 1

OBJECT OBJECT_CLS

ZDH1 DH

ZDH2 DH

ZDSF1 DSF

ZDSF2 DSF

ZDTF1 DTF

ZDTF2 DTF

ZDVF DVF

ZFF1 FF

ZFF2 FF

The above internal table1 has to be converted as below internal table2

Internal table 2

DH DSF DTF DVF FF

ZDH1 ZDSF1 ZDTF1 ZDVF ZFF1

ZDH2 ZDSF2 ZDTF2 ZFF2

Dear all,

Can anybody please help me with the logic

internal table 1

OBJECT OBJECT_CLS

ZDH1 DH

ZDH2 DH

ZDSF1 DSF

ZDSF2 DSF

ZDTF1 DTF

ZDTF2 DTF

ZDVF DVF

ZFF1 FF

ZFF2 FF

The above internal table1 has to be converted as below internal table2

Internal table 2

DH DSF DTF DVF FF

ZDH1 ZDSF1 ZDTF1 ZDVF ZFF1

ZDH2 ZDSF2 ZDTF2 ZFF2

1 REPLY 1
Read only

Former Member
0 Likes
442

Hi,

Decalre one more temp table as similar of internal table 1

Move the OBJECT_CLS field as first field. Then use AT End of statments. It will solve ur probs