Application Development 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: 

ALV Grid bug when dealing with non-ASCII character

former_member129652
Active Participant
0 Kudos
806

Dear all,

I have a requirement to display user's remarks on ALV.  The data element of the remarks column is TEXT200.  I know that each column in an ALV Grid can display at most 128 characters.  Since my SAP is an Unicode system, I expect that each column in my ALV Grid can display 128 Chinese characters, too.  However, the ALV Grid only display 42 Chinese characters at most.  Is this a bug in ALV Grid?  How can I fix it?

I did a small experiment.  The results are listed below.  My version is Net Weaver 7.01.  The results show that the bug does not exist in ALV List.  However, my user prefers ALV Grid, which is more beautiful and elegant.

Type of ALV

Max number of

ASCII character

in an ALV column

Max number of

non-ASCII character

in an ALV column

REUSE_ALV_GRID_DISPLAY12842 Chinese characters
CL_SALV_TABLE12842 Chinese characters
CL_GUI_ALV_GRID12842 Chinese characters
REUSE_ALV_LIST_DISPLAY132132 Chinese characters

If you encounter the bug, please post your solution.  Thanks a lot. 

1 ACCEPTED SOLUTION

Tomas_Buryanek
Active Contributor
0 Kudos
259

It looks like limitation of ALV grid cell, which can contain up to 128 bytes in SAP gui.

Your unicode characters are probably 3 bytes each.

Check OSS Note 910300 for more detailed info.

EDIT: Note 1401711 seems to be a correction for your issue It allows to use 128 characters (even if they take more than 128 bytes).

-- Tomas --
6 REPLIES 6

former_member202818
Active Contributor
0 Kudos
259

Hi..

Keep a button against the remark field in ALV, on clicking button call function module TERM_CONTROL_EDIT, it will give a popup text editor. Get the text entered by user and modify the internal table using index(On which line user has clicked).

Regards

Sreekanth

kiran_k8
Active Contributor
0 Kudos
259

Michael,

ALV Grid Consistency check can be done as below

SAP ALV Consistency Check

K.Kiran.

Tomas_Buryanek
Active Contributor
0 Kudos
260

It looks like limitation of ALV grid cell, which can contain up to 128 bytes in SAP gui.

Your unicode characters are probably 3 bytes each.

Check OSS Note 910300 for more detailed info.

EDIT: Note 1401711 seems to be a correction for your issue It allows to use 128 characters (even if they take more than 128 bytes).

-- Tomas --

0 Kudos
259

Dear Tomas Buryanek,

Thanks a lot.  Your reply solves my problem.

former_member202818
Active Contributor
0 Kudos
259

Hi,

You can display a long text using word wrap functionality in alv grid.

0 Kudos
259

Hi Sreekanth, that is ALV list on image. I don't think it is possible in ALV grid.

-- Tomas --