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

Large String in ALV Cell

bjorn-henrik_zink
Contributor
0 Likes
1,643

Hi,

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

Any help is greatly appreciated.

/ Elvez

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
Read only

Former Member
0 Likes
1,034

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

Regards

vijay

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

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

regards

vijay

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

check this Demo program for Text editor

BC_CONTROLS_TUTORIAL

Read only

Former Member
0 Likes
1,034

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.