2021 Sep 13 1:58 PM
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.
2021 Sep 13 2:00 PM
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 !!)
2021 Sep 13 2:05 PM
Hi Frederic,

This is how I have populated it. For 2 and 3 it's coming blank, 4 onwards it's working fine
2021 Sep 13 2:25 PM
Your fieldcatalog does not indicate the field type you have used, does it refers to the correct domain ?
2021 Sep 13 2:34 PM
2021 Sep 13 2:58 PM
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
2021 Sep 13 3:08 PM
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.
2021 Sep 13 3:56 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |