Skip to Content
0
Former Member
Jul 02, 2015 at 11:14 AM

How to make transverse of dynamic internal table

56 Views

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

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

Main problem is,

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