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

Export Excel width in REUSE_ALV_GRID_DISPLAY

Former Member
0 Likes
1,681

Hello experts!

I have a problem when i try export to excel in REUSE_ALV_GRID_DISPLAY. The characters number is lower than 1023, exactly around 540 and the columns headers 693, but the export truncates columns. i.e: 66 total columns but it shows 62  columns on first line and 4 the second line. My question is, Is it possible to increase the maximum width to 1023, acording the notes 855314 - Downloading a list from the ALV to Excel?

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,353

Hi José,

Have you tried in the declaration of the report to set the size?

REPORT  <report-name> LINE-SIZE <nnn>.

Regards.

Hello experts!

I have a problem when i try export to excel in REUSE_ALV_GRID_DISPLAY. The characters number is lower than 1023, exactly around 540 and the columns headers 693, but the export truncates columns. i.e: 66 total columns but it shows 62  columns on first line and 4 the second line. My question is, Is it possible to increase the maximum width to 1023, acording the notes 855314 - Downloading a list from the ALV to Excel?

Regards.

6 REPLIES 6
Read only

Former Member
0 Likes
1,354

Hi José,

Have you tried in the declaration of the report to set the size?

REPORT  <report-name> LINE-SIZE <nnn>.

Regards.

Read only

Former Member
0 Likes
1,353

Hi jose,

are you  using any functions to convert alv to excel?

alv also provides the function to convert alv to excel shown below.

Regards Ashwin.kv

Read only

Former Member
0 Likes
1,353

Thank you guys for your answers.

I have proved set the size, but the problem continues and I am using that function.

Any idea more?

Thanks, regards.

Read only

peng_wen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,353

Hello,

As far as I know the only limitation for this should be the maximum width to 1023,
I would like to suggest you to check the exact length again by the Print button, Properties,
double click on the Format, what is the column number?
Moreover I think you can try the export again with new SAPGUI patch and see is it the same.

Regards,
Wen Peng

Read only

Former Member
Read only

Former Member
0 Likes
1,353

Thank you very much to all.

Finally i have solved the problem. First, i added datatype in catalog but it failed.

But only failed one column, so i did several test and i have discovered that the fault is in database, specifically in the type. I must save the records again.