2008 Nov 06 3:28 PM
Hi Folks,
I have developed a report using ALV GRID for an user. However when he tries to export it to excel my field LIFNR (vendor no.) its 1 character short.
For example:
ALV GRID VIEW:
103190325 2000004610 37,900.00
EXCEL File:
10319032 2000004610 37,900.00
This is pretty strange for me, never had this problem before. Can anyone help me with this problem.
Thanks in advance for your help.
Regards,
Gilberto Li
Edited by: Gilberto Li on Nov 6, 2008 4:28 PM
Hi Folks,
I have developed a report using ALV GRID for an user. However when he tries to export it to excel my field LIFNR (vendor no.) its 1 character short.
For example:
ALV GRID VIEW:
103190325 2000004610 37,900.00
EXCEL File:
10319032 2000004610 37,900.00
This is pretty strange for me, never had this problem before. Can anyone help me with this problem.
Thanks in advance for your help.
Regards,
Gilberto Li
Edited by: Gilberto Li on Nov 6, 2008 4:28 PM
2008 Nov 06 4:09 PM
Check the output length of the that field in the fieldcatalog.
Regards,
Naimesh Patel
2008 Nov 06 4:15 PM
Hi Naimesh,
Thanks for your reply.
Yes I have checked the output length for the field. Right now I have it on 12 just in case, but LIFNR is a 10 character field, and I am still having this problem.
When I hit the button for a preview on the grid it shows like this:
10319032... 2000004610 37,900.00
Strangely, don't know why this last digit is getting cutted.
Thanks again.
Regards,
Gilberto Li
2008 Nov 06 4:22 PM
Hi
When you definen the field cat, please maintain the technical filed name, as in reference to the standard SAP techincal field. This will pass the correct attributes of the field while passing to alv.
regards
ravish.
2008 Nov 06 4:50 PM
Hi again,
I have solved the problem. I changed the data element of the a Z table I was using from LIFNR to CHAR10.
For some reason this was the cause of the problem. I'm thinking that LIFNR is configured as a internal number and programs using this table are not using the correct internal no. conversion causing the view of the data to be incorrect.
Anyway I really appreciate your time and help.
Regards,
Gilberto Li
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |