2013 Aug 11 6:02 PM
Experts,
My report is writing output to spool. I have a field of type DFKKLOCKS-LOOBJ1 in spool output. When I download spool output to excel(using save to local file icon in SP01 Tcode) I see that value of LOOBJ1 column is not displayed as expected,
Value in LOOBJ1 Column in Spool output,
1000001350550000001000
1000001350550000002000
1000001350550000002000
Value in LOOBJ1 Column in Excel file,
| 1E+21 |
| 1E+21 |
| 1E+21 |
When I format these cells to display data in number format, I can see incorrect values as below,
| 1000001350550000000000 |
| 1000001350550000000000 |
| 1000001350550000000000 |
I am getting correct values only upon "Use Text Import Wizard" feature of Excel.
Is there a way we can display the value correctly in Excel so that users need not manually format data each time.
Thanks,
Aspire
2013 Aug 11 11:44 PM
Hi,
The excel interprets them as Number. Try to display using a character variable or try doing quotes along the values when you download. As you are doing it via SP01, try downloading in TXT and then do a Text to columns another way could be to change the column format to character.
Cheers,
Arindam
Hi,
The excel interprets them as Number. Try to display using a character variable or try doing quotes along the values when you download. As you are doing it via SP01, try downloading in TXT and then do a Text to columns another way could be to change the column format to character.
Cheers,
Arindam
2013 Aug 11 11:44 PM
Hi,
The excel interprets them as Number. Try to display using a character variable or try doing quotes along the values when you download. As you are doing it via SP01, try downloading in TXT and then do a Text to columns another way could be to change the column format to character.
Cheers,
Arindam
2013 Aug 12 4:04 AM
Hi Aspire WF,
You declare like this
Data : LOOBJ1 type DFKKLOCKS-LOOBJ1.
Data : LOOBJ1 type Char32.
Your problem will be solved.
2013 Aug 12 6:07 AM
Hi Aspire ,
Concatenate One Single quote with your respective field value .
like if your final output is "1000001350550000001000" Number , Now Concatenate one Single Quote " ' 1000001350550000001000 ", then try to download spool output to excel(using save to local file icon in SP01 Tcode .
Excel output :
Regard's
Smruti
2013 Aug 12 6:26 AM
this is an option to achieve ur requirement.
another option: you can change the cell format as text to display your content.
2013 Aug 13 5:21 AM
Dear All,
Thanks a ton for all your replies. I would try out all your suggestions & will keep you posted with my results.
Thanks,
Aspire
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |