Hi,
its possible form internal table like this:

tabname  row  columnName  columnValue

t005  1  land1  AD
t005  1  landk  AND
t005  1  lnplz  00
...
t005  2  land1  AS
t005  2  landk  ND
t005  2  lnplz  01
to create internal table "t005" in this structure:

row land1  landk  lnplz  ...

1  AD  AND  00
2  AS  ND  01
...
(use fieldsymbols, or dynamic attribute declarations...)
thanks, m
Try this...
Get the T005 data into internal table as first table...

tabname  row  columnName  columnValue

t005  1  land1  AD
t005  1  landk  AND
t005  1  lnplz  00
...
t005  2  land1  AS
t005  2  landk  ND
t005  2  lnplz  01
Now declare another internal table in the form...

row land1  landk  lnplz  ...

sort itab_t005 by tablename row.
now loop at itab_t005.
at new row.
clear itab_new.
endat.
if itab_t005columename eq 'land1.
itab_newland1 = itab_t005columevalue.
endif.
the same for other two....
at end of row.
append itab_new.
endat.
endloop.
Hope this will solve ur porblem...
Add a comment