2014 Jul 03 7:52 AM
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_DISPLAY | 128 | 42 Chinese characters |
CL_SALV_TABLE | 128 | 42 Chinese characters |
CL_GUI_ALV_GRID | 128 | 42 Chinese characters |
REUSE_ALV_LIST_DISPLAY | 132 | 132 Chinese characters |
If you encounter the bug, please post your solution. Thanks a lot.
2014 Jul 03 2:55 PM
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).
2014 Jul 03 8:33 AM
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
2014 Jul 03 1:20 PM
2014 Jul 03 2:55 PM
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).
2014 Jul 10 2:33 AM
Dear Tomas Buryanek,
Thanks a lot. Your reply solves my problem.
2014 Jul 04 5:31 AM
Hi,
You can display a long text using word wrap functionality in alv grid.
2014 Jul 04 7:09 AM
Hi Sreekanth, that is ALV list on image. I don't think it is possible in ALV grid.