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: 

ALV Display beyond 255 character in one cell

Former Member
0 Kudos

Hi ,

I am having a requirement in which i have to display a long text(free text) concatenated into a single cell of ALV, but when displayed it gets truncated

is there any way we can display the whole text in one cell itself?

Harish

5 REPLIES 5

Former Member
0 Kudos

Hi Harish,

Declare the field as String.

Reward if help.

Vasanth

Former Member
0 Kudos

Hello,

Declare fields as string.

Thanks,

krishna

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

No , it is not possible to display more than 125 characters in one column of the ALV. instead of this , use text edit control to display long text. create icon's in the ALV column (which you are going to display 255 characters) and call text edit control with long text when you click on this icon.

Yes , i am very sure on this.i had same problem , i tried all the ways , but i didn't get any solution, so i have used above option .i think you will get some links on the same issue if you search on the forum.

Regards

Appana

Message was edited by: L Appana

0 Kudos

Hi ,

Yep string doesnt work

Appana are u sure ?

because i was thinking it has some thing to do with max width of ALV is defaulted to 255 ???

any hints where its documented as only 125 can be maximum?

Former Member
0 Kudos

Hi Harish,

This is how u can use-

CALL METHOD editor->get_text_as_r3table

IMPORTING

table = t_line[]

EXCEPTIONS

error_dp = 1

error_cntl_call_method = 2

error_dp_create = 3

potential_data_loss = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

u can get the values of the long text in an internal table.

Hope this helps u.

Regards,

Seema.