Skip to Content
author's profile photo
Former Member

shuffing of column order in internal table

Hi All,

I have internal table having 50 columns. I m populating this table by ws_upload function module.

My query is that i want to shuffle order of fields in internl table so that i can upload dynamic format from ws_upload.

in normal scenario :

f1,f2,f3,f4,f5 and upload file is also in the same order.

in another case

upload file format is in order f3,f4,f5,f1,f2

now i need to change order of fields in internal table

how this can be ..?

Gopal

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 07, 2005 at 12:25 PM

    Just create another internal table with the correct column order and MOVE CORRESPONDING (It should be possible to copy the whole table at once)

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 07, 2005 at 12:03 PM

    Hi,

    there must be a header in your file, of which i can assign the fields to internal table.

    -> use CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE method.

    look here: creating-internal-tables-dynamically

    Andreas

    Add comment
    10|10000 characters needed characters exceeded