Skip to Content
author's profile photo
Former Member

How are columns names sorted in "Change ALV layout" screen?

I'm noticing that when I go to "change layout" of an ALV that the columns seem to be randomly sorted and now sorted based on the order of fields in the structure being displayed.

They also don't seem to be sorted by data type.

Does anyone have any insight on how these fields are sorted in the "change layout" screen? I'd much rather have them appear in the order they are in the structure.

Otherwise the user has to individually place each column.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 11, 2007 at 02:36 PM

    They are in the same order as defined in the field catelog. Field catelog structure has a field to specify the column number.

    However, an ALV display variant overrides everything. Check if there is a default ALV variant setup with different column positions.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I found this note. SP_GROUP can only apply up to 5 columns. Thanks for the attempt, but this is obviously not the solution.

      "If in the field catalog the columns were grouped together with field SP_GROUP, you must pass a table with texts for these groups. On the current layout window, it is then possible to use a list box to restrict column selection to one of these groups."