10-26-2004 1:28 PM
Hello,
I'm using FM reuse_alv_grid_display and would like to display a type string field in my grid (1000 to 10000 chars length). It looks like there is a limitation on length of 128 chars on ALV fields.
Does someone know a workaround to display a long text on an ALV grid? Is it possible to wrap this text?
Thanx for your help.
Cheers
Danny
10-26-2004 6:34 PM
Hi Daniel
Yes, there is a restriction. What you can do is to split the string and show in several lines. Since, by default, ALV Grid merges cells having the same values vertically, you may have more or less something fine.
*--Serdar
10-26-2004 6:34 PM
Hi Daniel
Yes, there is a restriction. What you can do is to split the string and show in several lines. Since, by default, ALV Grid merges cells having the same values vertically, you may have more or less something fine.
*--Serdar
10-27-2004 9:25 AM
Hey Serdar
Thank you very much for your reply! Is there really no other way than to split the string in lines? I have also values which I have to sum in that list. I'd have to connect the lines by a key somehow..
Does anyone have another idea?
Daniel
10-27-2004 11:35 AM
Create a new field in your internal table to make a "key" for your splitted text. Then make the summatories using the key field, and not the splitted text...
In any case, display 1000-10000 chars in an ALV is a bit sadistic (for the system and for the user)... but doh, some of our users/customers love that kind of pain...
Wish it helps,
Vicenç
10-27-2004 1:37 PM
Hey Vicenç,
Thanks for your answer! That's exactly what I'm doing right now... It seems to be the only solution for this stupid task.
Have a nice one
Daniel
10-27-2004 3:57 PM
This is my suggestion.I don't know whether this will work for your scenario.
You can use the combination of COLOR and layout-no_vline = 'X'. This way a combination of mulitple fields next to each other will look like a single field(if the color is same and without a sy-vline!). Use different color for other cells.
Thanks,
Bala