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 ALV , first two columns are empty

0 Likes
2,786

Hi ,

Before posting this query I searched the solution in SDN but I did't find the solution.

My problem is After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ; file will downloaded to excel sheet but first two columns(only heading no data ) will be blank and next two columns with proper data.

I checked field catalog defination it seems to be ok, any other mistake ?

Please suggest.

Hi ,

Before posting this query I searched the solution in SDN but I did't find the solution.

My problem is After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ; file will downloaded to excel sheet but first two columns(only heading no data ) will be blank and next two columns with proper data.

I checked field catalog defination it seems to be ok, any other mistake ?

Please suggest.

7 REPLIES 7
Read only

FredericGirod
Active Contributor
2,601

Do you have the description of the fields ? is it related to dictionnary ? how did you populate the fieldcatalog ?

(Sandra, I think you scare people !!)

Read only

0 Likes
2,601

Hi Frederic,

This is how I have populated it. For 2 and 3 it's coming blank, 4 onwards it's working fine

Read only

FredericGirod
Active Contributor
0 Likes
2,601

Your fieldcatalog does not indicate the field type you have used, does it refers to the correct domain ?

Read only

0 Likes
2,601

Yes, it does.

Read only

FredericGirod
Active Contributor
0 Likes
2,601

fieldname is a name

seltext_m is the middle long text

col_pos is nothing

if I use the FM REUSE_ALV_FIELDCATALOG_MERGE for the structure COSS, I have a complete line for KSTAR (for example).

DDICTXT
ROLLNAME
DATATYPE                       CHAR
INTTYPE                        C
INTLEN                         000010
LOWERCASE
DECFLOAT_STYLE                 00
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,601

You can run the ALV in "SOS" mode just to check if your catalog is consistent (search the Web with ALV and SOS).

What types are your fields? (maybe they are not handled well by the Export feature)

Another possibility is that the export is still working with the ALV buffer which is maybe obsolete, so maybe you can clear it by calling the program BALVBUFDEL.

A very old issue could be also due to the context FREE_SEL_DD_INFO in transaction code SE33 > initial menu > Edit > Delete buffers > On all AS.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,601

By the way, this line is very bad practice, do NEVER use text symbols for literals which must not be translated, use constants instead !!!

lw_fieldcat-fieldname = text-003.

NB: anyway, field catalogs are obsolete since CL_SALV_TABLE.