cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Column Fixed width based on the contents

Former Member
0 Kudos

Dear Experts,

I have list of columns in my ALV table in which based on the size of the column value in need to adjust the column width.

Like Fit to contents option in Table in MS Word...

I tried with the Set_width method to set the column width based on the size of the column value but my Column Heading label is getting truncated but the size of the column got reduced as expected.

How to achieve tis?

Kindly let me know any suggestions.

Warm Regards,

Nallasivam B.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Nalla,

You can set the wrapping property of text view in alv by using method set_wrapping( abap_true ).

Please go through below links

Adjusting alv column width in WDA

Wrap text in WDA alv

Hope this helps you.

Regards,

Rama

Answers (1)

Answers (1)

Former Member
0 Kudos

Please go through the existing links.It looks as if the solution discussed in them matches your requirement....

http://scn.sap.com/thread/1538258