cancel
Showing results for 
Search instead for 
Did you mean: 

Giving a limit to a text when displaying ALV

adil_gndz
Explorer
0 Kudos

Hi,

I'm displaying an ALV in my program and this alv has a field whichs text long is 250. But in the first page i want to display just 30 characters of this field. All of the text will be visible in the other page.

How can i do this?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Any how you are showing the text in the second page.So you can reduce the text size to 30 and take a context attribute type char30 and assign the text to it.

adil_gndz
Explorer
0 Kudos

Hi Suman,

I can't do this because in the context of the second view(i go that page by a button) i have binded the nodes, which i use for ALV. If i do that, i think, in the second view it shows me the limited text again.

Former Member
0 Kudos

Hi Adil,

Do in this way...

1.create a new context attribute of type char30

2.Populate this attribute.

write the below code in WDDOMODIFYVIEW

3.delete the column where your attribute of size 250 is attached.

4.then give the same position to the new attribute.

I hope this will help you.