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

Column width ALV-Grid

HKany
Participant
0 Likes
471

Hello together,

since I didn't find a solution in the other threads here my question.

The result of a report is displayed as an ALV-Grid.

To create it I do not use any data dictionary structures. Only the report (building the FIELDCAT, FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' and FUNCTION 'REUSE_ALV_GRID_DISPLAY').

I always get optimized columns.

I enlarge them to see the longtext.

When I try to save the enlarged columns as a variant, the ALV Grid optimize them again.

Also when I download it to Excel, the columns are optimized again, so the longtext of the header can not be saved.

Can somebody tell me how to save the ALV with enlarged columns?

Or how to handle that the longtext is printed or saved without having enlarged them?

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
398

Did you set your column optimize (layout structure, field colwidth_optimize) to OFF (space)? Consider using class CL_SALV..it's much simpler for straightforward reporting than this antique set of FM's.