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: 

Field in blank when I export to excel in ALV report

Former Member
0 Kudos

Hello guys,

I have an ALV report with a field called "Destinatario"

When I export the informetion to excel, this field is showing in black;

My fieldcat is this:

My code:


SELECT * FROM ZMAQ_GRID1 INTO CORRESPONDING FIELDS OF TABLE IT_MM.

And the IT_MM declaration:


DATA: IT_MM TYPE STANDARD TABLE OF ZMAQ_GRID1,"ty_alv,

       wa_alv TYPE ZMAQ_GRID1,"ty_alv,

       IT_AUX TYPE STANDARD TABLE OF ZMAQ_GRID1.

My ztable is:

Could someone tell me what I'm doing wrong?

1 ACCEPTED SOLUTION

Former Member

Hello, I solved my problem, the issue was the fieldcat is key sensitive and in my table my column is called: DESTINATARIO and I set Destinatario in Field cat, now I change it for DESTINATARIO and does work well. Regards.

7 REPLIES 7

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Luis,

Try.

gd_layout-colwidth_optimize = 'X'.

OR

wa_fcat-outputlen   = '70'.

Hope it helpful.

Regards,

Venkat.

0 Kudos

I test your code but does not work 😞

Former Member

Hello, I solved my problem, the issue was the fieldcat is key sensitive and in my table my column is called: DESTINATARIO and I set Destinatario in Field cat, now I change it for DESTINATARIO and does work well. Regards.

0 Kudos

Same issue I was facing & it is now resolved.

Thank you, your post help me to resolved the issue.

0 Kudos

By making field name in uppercase it solved my problem!!

Thank you very much for your answer. Keep helping and growing.

0 Kudos

Thanks, really saved me

0 Kudos

THank you very much i also faced the same issue. resolved now