ABAP Change length of ALV header text

  Report Program

Over View

ALV header title is short! I want to make it longer! Have you ever thought that?
When each item refers to a data element, four texts of short, medium, long and header are registered.
The text will be automatically adjusted to the appropriate length according to the data length.
In such a case, try changing the value of ddictxt in the field catalog.

Sample Code


If you are using the global structure, you can use the function module: REUSE_ALV_FIELDCATALOG_MERGE to get the field catalog.
The field catalog has an item called ddictxt, so update that value according to the length of the text you want to display.
Values are S, M, and L for short, medium, and long, respectively.
In addition, it is possible to change the display position, hide, set the previous zero, and set the reference unit in the case of quantity or amount, and make various other settings.
If you need a special display, we recommend that you check the items in the field catalog.
Please see here for the basic method of making an ALV