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: 

How to make transverse of dynamic internal table

Former Member
0 Kudos

Hi Experts,

I have one requirement:

I have one internal table in which i am getting data dynamically

For example: our table is having following data as of now:

Table A

Column
BUKRS
DMBTR
MANDT
VKORG
VERTICAL3
E_TERMIN
FY_MON
FY_MONTH
FY
COMPOSITION
ZZPT_VAL
MGLME
LAGME
WAERK

We have to make transpose of the above table i.e. the rows of the above table should become the columns of new internal table.

for e.g. as shown below:

Table B

BUKRSDMBTRMANDTVKORGVERTICAL3E_TERMINFY_MONFY_MONTHFYCOMPOSITIONZZPT_VALMGLMELAGMEWAERK

Main problem is,

The number of rows for table A is dynamic , so how can we create/ add the fields in table B?

3 REPLIES 3

rajkumarnarasimman
Active Contributor
0 Kudos

Hi prakhar,

you can transpose the value using dynamic internal table concept. Use RTTS method, please find the below document.

Regards

Rajkumar Narasimman

0 Kudos

Hi Rajkumar,

Thanks for prompt reply.

Problem solved.

0 Kudos

You should then mark the answer from Rajkumar as correct in order to close this question.