2011 Sep 16 5:30 AM
hi there,
I have a program where I have used CL_ALV_GRID , the problem is that the data displayed on the screen within the container grid is correct, but when I export it on my disk i.e export local file > Spread Sheet the data for Lifnr is incorrect(the last number for all line item is trucated). Can you please let me the reason why so?
Out of the 9 digits shown on screen only 8 digits are there in xls that is generated for lifnr column.
Output as xls --
A part of the xls.
Group Vendor Pre.A/c No. P.Org
YKRD 15080771 3007710 BYPH
YKRD 15080771 3007710 BYPH
YKRD 15080934 3009345 BYPH
YKRD 15080783 3007838 BYPH
YKRD 15080783 3007838 BYPH
YKRD 42 BYPH
YKRD 42 BYPH
2011 Sep 16 11:48 AM
Hi,
Check if your fieldcat is filled properly. Especially elements related with length or data type.
hi there,
I have a program where I have used CL_ALV_GRID , the problem is that the data displayed on the screen within the container grid is correct, but when I export it on my disk i.e export local file > Spread Sheet the data for Lifnr is incorrect(the last number for all line item is trucated). Can you please let me the reason why so?
Out of the 9 digits shown on screen only 8 digits are there in xls that is generated for lifnr column.
Output as xls --
A part of the xls.
Group Vendor Pre.A/c No. P.Org
YKRD 15080771 3007710 BYPH
YKRD 15080771 3007710 BYPH
YKRD 15080934 3009345 BYPH
YKRD 15080783 3007838 BYPH
YKRD 15080783 3007838 BYPH
YKRD 42 BYPH
YKRD 42 BYPH
2011 Sep 16 11:48 AM
Hi,
Check if your fieldcat is filled properly. Especially elements related with length or data type.
2011 Sep 19 10:25 AM
The Field Catalog is correct as the Field is DDIC structure, more over the output on the screen is correctly display but not when exported. I did note that the Vendor Column is Numeric in excel as everything is right aligned by default.
2011 Sep 19 10:47 AM
Hi,
Can you try changing the output length of the field ( DD_OUTLEN ) in structure LVC_S_FCAT while populating the field catelogue
Thanks
Pavan
2011 Sep 19 5:17 PM
The Solution I found my self is that The Column header should alway have the no. of character greater than what is specifoed in DDIC Data element .
Example FOr Lifnr the length in Data element of Lfa1 /lfb1 is mentioned as 10 , so you column header name should be greater than that Like ' Vendor No. ' (11 including the space/s)
2011 Sep 19 5:17 PM
The Solution I found my self is that The Column header should alway have the no. of character greater than what is specifoed in DDIC Data element .
Example FOr Lifnr the length in Data element of Lfa1 /lfb1 is mentioned as 10 , so you column header name should be greater than that Like ' Vendor No. ' (11 including the space/s)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |