Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Changing the order of fields in an internal table

Hi all,

I'm using field symbol as internal table. this table has got a standard database structure.

I want to make the 3rd column of this internal table as 1st colums keeping rest of the columns as it is.

Is there any way to do this?





Instead of directly taking the type as a standard structure , declare the FS internal table as type of types structure.

Data: fs_scarr like type_s_scarr.

FIELD-SYMBOLS <scarr2> TYPE fs_scarr

In the types put the third column as first one and use into corresponding in select query

or else

while displaying the internal table change the order of the columns

Loop at itab into fs_itab.

write : col3





Viquar Iqbal

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question