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: 

Large String in ALV Cell

bjorn-henrik_zink
Active Participant
0 Kudos

Hi,

what is the best way to get a large string into an ALV Grid cell?

Any help is greatly appreciated.

/ Elvez

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

Try giving the <b>fieldcat-outputlen </b> more(the length which you want).

Regards

vijay

0 Kudos

The length of a string is dynamic, so that will not work.

0 Kudos

maximum string can hold 255 i guess,so try to give 255.

regards

vijay

0 Kudos

Hi,

I suggest that you place a button on the column, and when clicked show a TEXT editor (CL_GUI_TEXTEDIT) in a DOCKING container with the text that you want.

Even if you use the full length of 255 for a column, for the user to see other columns, he has to scroll left / right.

Regards,

Ravi

Note : Please mark the helpful answers

0 Kudos

Hello Ravi,

can you explain how to use the text editor in a docking container?

I have the same problem to display large strings in several cells.

My idea was, if the user click on a cell, some kind of new modal window opens and will show the text. Like the detail view in ALV.

Regards,

Daniel

0 Kudos

check this Demo program for Text editor

BC_CONTROLS_TUTORIAL

Former Member
0 Kudos

Hi,

Maximum length that ALV is going to display will be 128 characters not more than that.

Just check out any table with a field more than 128 characters in SE16 ( view : using ALV grid), you can clearly see that it will display only 128 characters.

It is better to use a container which can show a text editor.