‎2008 Aug 25 7:00 PM
Hello All,
What is the maximunm column width of an ALV.
1. GRID ?
2. In List ?
I rememebr that there is a restriction on the column width.But my requirement is to display more than 300 characters.
is that possible if yes please let me know..
Regards,
KK
‎2008 Aug 25 7:09 PM
When displaying records in grid it will display 1st 128 chars. But if u print it or see the print preview then u can see the exact length of the field.
I found an SAP note for this:
Symptom
Entries in cells of the type CHAR or string are truncated after 128
characters in the SAP GUI.
More Terms
ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid
(Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
Cause and Prerequisites
The data table that is sent to the front end only allows character values
with the length 128.
Solution
This is the standard system behavior and cannot be changed.
The note is not release-dependent.
Abhishek
‎2008 Aug 25 7:09 PM
When displaying records in grid it will display 1st 128 chars. But if u print it or see the print preview then u can see the exact length of the field.
I found an SAP note for this:
Symptom
Entries in cells of the type CHAR or string are truncated after 128
characters in the SAP GUI.
More Terms
ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid
(Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
Cause and Prerequisites
The data table that is sent to the front end only allows character values
with the length 128.
Solution
This is the standard system behavior and cannot be changed.
The note is not release-dependent.
Abhishek
‎2008 Aug 25 7:10 PM
Hi,
Maximum is 255 chars.
if we want to increase the width then in the Layout
define the Columnwidth_optimize
fs_layout-COLUMNWIDTH_OPTIMIZE = 'X'.
IF we want to restrict the filed lengh then in the fieldcatalog define the Output length.
Check this link
http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm
Regards
Lekha
‎2008 Aug 25 7:27 PM
Grid -> 255 chars
List -> 1024 chars for list use layout
as w_layout-min_linesize = '1024'.
w_layout-max_linesize = '1024'.
data : w_layout TYPE slis_layout_alv.