Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Maximum column width

Former Member
0 Likes
2,105

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,262

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,263

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

Read only

Former Member
0 Likes
1,262

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

Read only

Former Member
0 Likes
1,262

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.