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

Display String in ALV List

former_member184313
Participant
0 Likes
4,388

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

1 ACCEPTED SOLUTION
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
2,058

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

5 REPLIES 5
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
2,059

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

Read only

0 Likes
2,058

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

Read only

VXLozano
Active Contributor
0 Likes
2,058

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ç

Read only

0 Likes
2,058

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

Read only

0 Likes
2,058

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