ALV Tips – Column length has maximum of 128 characters
The column length in ALV has a maxmium 128 characters. Note 857823 has the detail. Below is the detail from SAP.
Entries in cells of the type CHAR or string are truncated after 128 characters in the SAP GUI.
Other terms
ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
Reason and Prerequisites
The data table that is sent to the frontend only allows character values with the length 128.
Solution
This is the standard system behavior and cannot be changed.
———————————————————————————————————
ALV also has another limitation when downloading it into an local file as a spreadsheet. A line break occurs after 1023 characters. We have another note numbered 855314.
You download a list that is wider than 1023 characters from the ABAP List Viewer (ALV) to a local file as a spreadsheet. A line break occurs after 1023 characters. The list appears in Excel in this way.
Other terms
Excel, download, lists, ALV, 1023 columns, list width
REUSE_ALV_LIST_DISPLAY, REUSE_ALV_GRID_DISPLAY, CL_GUI_ALV_GRID
Reason and Prerequisites
This corresponds to the SAP standard.
Solution
To prevent a line break occurring when you download the list as a local spreadsheet file, you must reduce the width of the list in the ALV.
You can do this either by hiding columns, or by changing the column widths in the ALV.