Error While ALV Grid is exported to Excel.
Hi Experts,
I get an error OBJECTS_NOT_CHARLIKE , while I try to download an ALV Grid , to an excel file using the standard icon Export present on the ALV Grid.
Regards.
Edited by: sunitha j on May 19, 2009 1:15 PM
This happens when your output list contains qty. or amount fields.
To fix the error use sap table name instead of your internal table name while preparing field catalog.
In case you are forced to use int. table name while preparing field catalog , add "quantity" field for qty figures and "currency" field for amount figures.
Example :
it_catalog-fieldname = 'MENGE'.
it_catalog-quantity = 'NOS'.
it_catalog-tabname = 'i_bseg'.
it_catalog-seltext_s = 'Quantity'.
APPEND it_catalog TO it_fieldcat.
it_catalog-fieldname = 'DMBTR'.
it_catalog-tabname = 'i_bseg'.
it_catalog-seltext_s = 'Amount'.
it_catalog-currency = 'INR'.
APPEND it_catalog TO it_fieldcat.
Similar Messages
-
Problem while alv grid display exporting to excel sheet
Hi,
I have done an ALV report using reuse_alv_grid _display , out put is fine , but when i click on excel view icon i could only see an excel sheet without any data ., but when i use export to local file and choose spread sheet its giving the data in excel, but the user wants to click only the excel view icon.
Best RegardsHi,
Check this link
[Problem with Excel button in ALV Grid...URGENT;
Regards,
Sathish Reddy. -
Error while deploying iview for export to excel
Hi,
I am trying to Export Data into Excel in VC.
If I will Compile then its ok No errot.
But while deploying its giving a error like
Error in compiling Flex application: Error 1002: String literal was not properly terminated
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:514)
Error 1033: ';' expected
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:515)
Error 1025: Left side of assignment operator must be variable or property.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:516)
Error 1025: Left side of assignment operator must be variable or property.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:517)
Error 1033: ';' expected
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:518)
Error 1205: The statement '' is incomplete.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:516)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:518)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:519)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:520)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:521)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:548)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:575)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:602)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:629)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:656)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:683)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:710)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:744)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:786)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:798)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:799)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:801)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:823)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:831)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:856)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:857)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:858)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:860)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:867)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:907)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:952)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:953)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:954)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:956)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:963)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1005)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1050)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1051)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1052)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1054)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1061)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1090)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1124)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1178)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1189)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1200)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1211)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1222)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1233)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1244)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1255)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1266)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1276)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1291)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1306)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1321)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1335)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1351)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1366)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1378)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1392)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1408)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1423)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1435)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1449)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1465)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1480)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1488)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1540)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1544)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1548)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1552)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1556)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1560)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1564)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1568)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1572)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1576)
Error 1128: Attribute used outside class.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:19)
Error 1000: Syntax error.
(E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1592)
Failed to compile AAD6LK.mxml
Please suggest me.
Regards,
KiranHi,
I am also facing the same problem.Can you suggest the solution? as well as the formula you used.
Regards,
Karthik -
Reg alv grid display exporting to excel sheet
hi experts,
I have done an ALV report using reuse_alv_grid _display , out put is fine , but when i click on excel view icon i could only see an excel sheet without any data ., but when i use export to local file and choose spread sheet its giving the data in excel, but the user wants to click only the excel view icon., please help me out.
Note : i have already tried changing the macro security in excel to Low .see it will give you the Status message as ...
<b>View cannot be switched: Product is not installed or integration is not active.</b>
it means the Excel Integration was not done in you sap system . ask basis there will be a Patch for it ... once it was applied automatically in all the ALV the excel view will work
in my system it was working
Girish -
ALV Grid to display in Excel Format
Hi All,
When I am executing the report RFBILA00 in ALV grid and I want to display it in EXCEL. I could not able to do.
I have selected various options like selecting Views---Excel, but the excel sheet is opened but the values are not been displayed.
Can any one suggest any other way.
Thanks,
SriniHi,
it may sound a bit silly, but I have tried to replicate what you did, and managed to get a simple download.
- run RFBILA00, selet ALV gid control for list output
- wait for the report to appear on the screen
- go to the "List" option (upper left row)
- from the drop-down menu of the "List" option select "Export" and the "Spreadsheet"
- the system flags in information box, confirm this message
- after confirmation the system flags another information box, "Export list to XXL", select the "Table" option and confirm
- after confirmation wait for the next information box, confirm that you want "Microsoft Excel"
- wait a few seconds for the system to populate the upcoming spreadsheet
- save a copy of the spreadsheet in .xls-format.
Instead of spreadsheet you may want to consider to "Save to Local File" and then convert to spreadsheet format within "Excel" itself.
Hope this helps.
Kind regards,
Rudolf -
Error while download the data to an Excel sheet for ECC report from EP
Hi experts,
I had created a report program which will download the data to an Excel sheet using SAP OLE object
For this report i had created a tcode too. The report which i developed is perfectly working fine in SAPGUI. But if i download the data to an Excel sheet for the same report throught SAP EP.I am getting the error that "Error in excel downlaod"
I analyed by putting dubigg point and it throws exception while calling Function module.
The excpetion is " OLE object id not found".
Can any body gives a light on this why i'm not able download the excel in ep?
Thanks,
JBHello,
(by the way I came here to ask my question and is my first time visit but...)
The problem is obvious: How do you expect OLE handler can "touch" the local PC Excel through a web browser? I believe that is not possible. That means (at least for me) that I have to create the whole documents before I return them to the user. That is why I use XML Office documents generation or you can try to hack some Export to excel features of ERP reports.
Regards Otto -
ALV TO EXCEL PROBLEM? ( 90 COLUMNS ALV CAN'T EXPORT TO EXCEL NORMALLY)
HI ABAPERS,
anyone have a alv that have over 90 columns and want to export to excel have experienced abnormal formating (like the header row show only up to 60 column and the rest show up in next row) and the data show in separate line.
anyway can have a better format?
also after 90 columns show up on alv, it can't show anymore except modify the layout in run time.
can we do something before that?
thanks & regards,
HOWARDHi HOWARD,
My Report ouput having more than 90 columns in ALV, while downloading data from ALV to Excel sheet am facing alignment problem. (ie) the output column > 66 are appearing in next line of the excel sheet leads to improper alignment.
Pls give me a solution as u had already come across this issue..
Thank & Regards,
Paramesh. -
How to download background color of ALV with button "Export to Excel"
Dear Experts:
I can download the data of ALV in webdynpro for ABAP, but the color is missing.
Does anybody know how to download background color of the ALV cells also by "Export to Excel" button?
Could anybody help on this?
Thanks in advance!
Best Regards
Lingxing Mengnever experienced that...
[chk this link|Download colored ALV output in to EXCEL sheet;
a couple of intersting posts, they talk abt general ALV...
try one of the last post ...when downloading
use local file->HTML only.. but while choosing the file location to save give extension as XLS. -
Hi ALV masters,
Plz help me ..
I have an ALV grid report where i have the data in my final table t_final.
now i'm trying to populate the fieldcat using FM reuse_alv_fieldcatalog_merge but its not at all getting populated.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = l_repid
I_INTERNAL_TABNAME = 'T_Final'
I_INCLNAME = l_repid
CHANGING
CT_FIELDCAT = T_FIELDCAT[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
Please help me and if possibl try to send som sample code also.
Thanks in advance..Hi Mukesh,
this is my code.
plz tell where i'm going rong..
*& Report ZMMR_CHANGES *
Title : Material Master: Display Changes *
Description : This ABAP report will collectively list all material *
master changes to the fields specified in the selection*
criteria. *
Request No : SRDK922644 *
Author : Praveen Reddy *
Created on : 14-FEB-2007 *
REPORT ZMMR_CHANGES
NO STANDARD PAGE HEADING
message-id ZSPR.
TYPE-POOLS : SLIS.
TABLES : CDHDR , " Change document header
CDPOS , " Change document item
MARAV , " View Table for Logical DB MGM
MARC , " Plant Data for Material
MVKE . " Sales Data for Material
SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN BEGIN OF BLOCK GENERAL WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS :
S_OBJCLS FOR CDHDR-OBJECTCLAS ,
S_MATNR FOR CDHDR-OBJECTID ,
S_WERKS FOR MARC-WERKS ,
S_VKORG FOR MVKE-VKORG ,
S_VTWEG FOR MVKE-VTWEG ,
S_TABNAM FOR CDPOS-TABNAME ,
S_FNAME FOR CDPOS-FNAME ,
S_CHGIND FOR CDPOS-CHNGIND ,
S_DATE FOR CDHDR-UDATE ,
S_USER FOR CDHDR-USERNAME .
SELECTION-SCREEN END OF BLOCK GENERAL.
SELECTION-SCREEN END OF BLOCK A.
*Data : G_WERKS LIKE MARC-WERKS ,
G_VKORG LIKE MVKE-VKORG ,
G_VTWEG LIKE MVKE-VTWEG ,
G_DESC LIKE MARAV-MAKTX .
TYPES : BEGIN OF TY_FOR_DISP ,
OBJCLASS LIKE CDHDR-OBJECTCLAS ,
OBJID LIKE CDHDR-OBJECTID ,
WERKS LIKE MARC-WERKS ,
VKORG LIKE MVKE-VKORG ,
VTWEG LIKE MVKE-VTWEG ,
DESC LIKE MARAV-MAKTX ,
TABNAME LIKE CDPOS-TABNAME ,
FNAME LIKE CDPOS-FNAME ,
CHNGIND LIKE CDPOS-CHNGIND ,
UDATE LIKE CDHDR-UDATE ,
USERNAME LIKE CDHDR-USERNAME ,
VALUE_OLD LIKE CDPOS-VALUE_OLD ,
VALUE_NEW LIKE CDPOS-VALUE_NEW ,
END OF TY_FOR_DISP .
TYPES : BEGIN OF TY_CDHDR,
OBJCLASS LIKE CDHDR-OBJECTCLAS ,
OBJID LIKE CDHDR-OBJECTID ,
CHNGIND LIKE CDPOS-CHNGIND ,
CHANGENR LIKE CDHDR-CHANGENR ,
UDATE LIKE CDHDR-UDATE ,
USERNAME LIKE CDHDR-USERNAME ,
VALUE_OLD LIKE CDPOS-VALUE_OLD ,
VALUE_NEW LIKE CDPOS-VALUE_NEW ,
END OF TY_CDHDR .
TYPES : BEGIN OF TY_CDPOS,
TABNAME LIKE CDPOS-TABNAME ,
FNAME LIKE CDPOS-FNAME ,
CHANGENR LIKE CDHDR-CHANGENR ,
CHNGIND LIKE CDPOS-CHNGIND ,
TABKEY LIKE CDPOS-TABKEY ,
FIELDTEXT LIKE DFIES-FIELDTEXT,
UDATE LIKE CDPOS-UDATE ,
USERNAME LIKE CDPOS-USERNAME ,
VALUE_OLD LIKE CDPOS-VALUE_OLD ,
VALUE_NEW LIKE CDPOS-VALUE_NEW ,
END OF TY_CDPOS .
DATA : T_FOR_DISP TYPE STANDARD TABLE OF TY_FOR_DISP
WITH HEADER LINE ,
T_CDHDR TYPE STANDARD TABLE OF TY_CDHDR
WITH HEADER LINE ,
T_CDPOS TYPE STANDARD TABLE OF TY_CDPOS
WITH HEADER LINE .
DATA : G_LANGU LIKE SY-LANGU,
G_TABIX LIKE SY-TABIX,
G_DATE LIKE SY-DATUM.
DATA : G_WERKS LIKE MARC-WERKS ,
G_VKORG LIKE MVKE-VKORG ,
G_VTWEG LIKE MVKE-VTWEG ,
G_DESC LIKE MARAV-MAKTX .
*------ALV Grid Field Catalog Fields
DATA: T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
T_FIELDCAT_H LIKE T_FIELDCAT WITH HEADER LINE.
*------End
CONSTANTS : C_MATERIAL(10) VALUE 'MATERIAL' ,
C_OBJCLASS(10) VALUE 'OBJCLASS' ,
C_OBJECTID(8) VALUE 'OBJID' ,
C_WERKS(5) VALUE 'WERKS' ,
C_VKORG(5) VALUE 'VKORG' ,
C_VTWEG(5) VALUE 'VTWEG' ,
C_DESC(4) VALUE 'DESC' ,
C_TABNAME(7) VALUE 'TABNAME' ,
C_FNAME(5) VALUE 'FNAME' ,
C_CHNGIND(7) VALUE 'CHNGIND' ,
C_UDATE(5) VALUE 'UDATE' ,
C_USERNAME(8) VALUE 'USERNAME' ,
C_VALUE_OLD(9) VALUE 'VALUE_OLD' ,
C_VALUE_NEW(9) VALUE 'VALUE_NEW' .
*CONSTANTS: C_TABNAM_FOR_ALV_FM TYPE SLIS_TABNAME VALUE 'T_FOR_DISP'.
INITIALIZATION *****************
INITIALIZATION.
CLEAR: T_CDHDR,
T_CDPOS,
T_FIELDCAT,
T_FIELDCAT_H,
T_FOR_DISP.
REFRESH:T_CDHDR,
T_CDPOS.
CLEAR : CDHDR, " Change document header
CDPOS. " Change document items
****START-OF-SELECTION.
START-OF-SELECTION.
*-FETCHING DETAILS of Changes done
PERFORM SUB_GET_DETAILS.
Get the field description.
PERFORM SUB_CALL_DDIF_FIELDINFO_GET.
****END-OF-SELECTION.
END-OF-SELECTION.
*--DISPLAYING DATA IN ALV
PERFORM SUB_DISPLAY_ALV.
*& Form SUB_GET_DETAILS
This subrouting is used to get Final output which will shown in
ALV Grid From Table CDPOS.
FORM SUB_GET_DETAILS.
SELECT OBJECTCLAS
OBJECTID
CHANGENR
UDATE
USERNAME
INTO TABLE T_CDHDR
FROM CDHDR
WHERE OBJECTCLAS IN S_OBJCLS
AND OBJECTID IN S_MATNR
AND TABNAME IN S_TABNAM
AND FNAME IN S_FNAME
AND CHNGIND IN S_CHGIND
AND UDATE IN S_DATE
AND UDATE IN S_DATE
AND USERNAME IN S_USER .
IF SY-SUBRC <> 0.
WRITE:/ TEXT-003.
ENDIF.
LOOP AT T_CDHDR.
CLEAR T_FOR_DISP.
IF T_CDHDR-OBJCLASS = C_MATERIAL.
SELECT SINGLE MAKTX
INTO G_DESC
FROM MARAV
WHERE MATNR = T_CDHDR-OBJID+0(18)
AND SPRAS = SY-LANGU.
ENDIF.
T_FOR_DISP-DESC = G_DESC.
CLEAR G_DESC.
CLEAR T_FOR_DISP.
T_FOR_DISP-OBJCLASS = T_CDHDR-OBJCLASS .
T_FOR_DISP-OBJID = T_CDHDR-OBJID .
T_FOR_DISP-UDATE = T_CDHDR-UDATE .
T_FOR_DISP-USERNAME = T_CDHDR-USERNAME .
*ENDIF.
APPEND T_FOR_DISP.
ENDLOOP.
*ENDIF.
SELECT
TABNAME
FNAME
CHANGENR
CHNGIND
TABKEY
UDATE
USERNAME
VALUE_OLD
VALUE_NEW
FROM CDPOS
INTO TABLE T_CDPOS
FOR ALL ENTRIES IN T_CDHDR
CDHDRCHANGENR = CDPOSCHANGENR
WHERE
CHANGENR EQ T_CDHDR-CHANGENR
AND TABNAME IN S_TABNAM
AND FNAME IN S_FNAME
AND CHNGIND IN S_CHGIND .
AND UDATE IN S_DATE.
AND OBJECTID IN S_DATE
AND USERNAME IN S_USER .
IF SY-SUBRC <> 0.
WRITE:/ TEXT-003.
ENDIF.
*CLEAR T_FOR_DISP.
READ TABLE T_CDPOS
WITH KEY CHANGENR = T_CDHDR-CHANGENR.
CLEAR : G_WERKS,
G_VKORG,
G_VTWEG.
G_DESC .
IF T_CDPOS-TABNAME = 'MARC'.
G_WERKS = T_CDPOS-TABKEY+21(4).
ENDIF.
CHECK G_WERKS IN S_WERKS.
IF SY-SUBRC = 0.
T_FOR_DISP-WERKS = G_WERKS.
ENDIF.
IF T_CDPOS-TABNAME = 'MVKE'.
G_VKORG = T_CDPOS-TABKEY+21(4).
ENDIF.
CHECK G_VKORG IN S_VKORG.
T_FOR_DISP-VKORG = G_VKORG.
G_VTWEG = T_CDPOS-TABKEY+25(2).
CHECK G_VTWEG IN S_VTWEG.
T_FOR_DISP-VTWEG = G_VTWEG.
T_FOR_DISP-TABNAME = T_CDPOS-TABNAME.
T_FOR_DISP-FNAME = T_CDPOS-FNAME.
T_FOR_DISP-CHNGIND = T_CDPOS-CHNGIND.
T_FOR_DISP-VALUE_OLD = T_CDPOS-VALUE_OLD.
T_FOR_DISP-VALUE_NEW = T_CDPOS-VALUE_NEW.
APPEND T_FOR_DISP.
ENDLOOP.
ENDLOOP.
CLEAR T_FOR_DISP.
ENDFORM. " SUB_GET_DETAILS
*& Form SUB_DISPLAY_ALV
This Subroutine is used to display data to ALV Grid from internal *
tables T_CDHDR & T_CDPOS. which is filled in subroutine *
SUB_GET_DETAILS *
FORM SUB_DISPLAY_ALV .
BREAK-POINT.
DATA: l_layout type slis_layout_alv,
l_title type lvc_title,
l_repid like sy-repid.
l_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = l_repid
I_INTERNAL_TABNAME = 'TY_FOR_DISP'
I_INCLNAME = l_repid
CHANGING
CT_FIELDCAT = T_FIELDCAT[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
WRITE:/ 'ERROR IN CALLING ALV FM'.
ENDIF.
*----Change Field Heading We move All field data from T_FIELDCAT To
*----another Internal table with header line namely T_FIELDCAT_H
*CLEAR T_FIELDCAT_H[].
REFRESH T_FIELDCAT_H[].
BREAK-POINT.
MOVE T_FIELDCAT[] TO T_FIELDCAT_H[].
CLEAR G_TABIX.
LOOP AT T_FIELDCAT_H.
G_TABIX = SY-TABIX.
CASE T_FIELDCAT_H-FIELDNAME.
WHEN C_OBJCLASS.
T_FIELDCAT_H-SELTEXT_L = TEXT-004.
T_FIELDCAT_H-SELTEXT_M = TEXT-004.
T_FIELDCAT_H-SELTEXT_S = TEXT-004.
T_FIELDCAT_H-OUTPUTLEN = 15.
WHEN C_OBJECTID.
T_FIELDCAT_H-SELTEXT_L = TEXT-005.
T_FIELDCAT_H-SELTEXT_M = TEXT-005.
T_FIELDCAT_H-SELTEXT_S = TEXT-005.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_DESC.
T_FIELDCAT_H-SELTEXT_L = TEXT-006.
T_FIELDCAT_H-SELTEXT_M = TEXT-006.
T_FIELDCAT_H-SELTEXT_S = TEXT-006.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_WERKS.
T_FIELDCAT_H-SELTEXT_L = TEXT-007.
T_FIELDCAT_H-SELTEXT_M = TEXT-007.
T_FIELDCAT_H-SELTEXT_S = TEXT-007.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_VKORG.
T_FIELDCAT_H-SELTEXT_L = TEXT-008.
T_FIELDCAT_H-SELTEXT_M = TEXT-008.
T_FIELDCAT_H-SELTEXT_S = TEXT-008.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_VTWEG.
T_FIELDCAT_H-SELTEXT_L = TEXT-009.
T_FIELDCAT_H-SELTEXT_M = TEXT-009.
T_FIELDCAT_H-SELTEXT_S = TEXT-009.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_TABNAME.
T_FIELDCAT_H-SELTEXT_L = TEXT-010.
T_FIELDCAT_H-SELTEXT_M = TEXT-010.
T_FIELDCAT_H-SELTEXT_S = TEXT-010.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_FNAME.
T_FIELDCAT_H-SELTEXT_L = TEXT-011.
T_FIELDCAT_H-SELTEXT_M = TEXT-011.
T_FIELDCAT_H-SELTEXT_S = TEXT-011.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_CHNGIND.
T_FIELDCAT_H-SELTEXT_L = TEXT-012.
T_FIELDCAT_H-SELTEXT_M = TEXT-012.
T_FIELDCAT_H-SELTEXT_S = TEXT-012.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_UDATE.
T_FIELDCAT_H-SELTEXT_L = TEXT-013.
T_FIELDCAT_H-SELTEXT_M = TEXT-013.
T_FIELDCAT_H-SELTEXT_S = TEXT-013.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_USERNAME.
T_FIELDCAT_H-SELTEXT_L = TEXT-014.
T_FIELDCAT_H-SELTEXT_M = TEXT-014.
T_FIELDCAT_H-SELTEXT_S = TEXT-014.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_VALUE_OLD.
T_FIELDCAT_H-SELTEXT_L = TEXT-015.
T_FIELDCAT_H-SELTEXT_M = TEXT-015.
T_FIELDCAT_H-SELTEXT_S = TEXT-015.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN C_VALUE_NEW.
T_FIELDCAT_H-SELTEXT_L = TEXT-016.
T_FIELDCAT_H-SELTEXT_M = TEXT-016.
T_FIELDCAT_H-SELTEXT_S = TEXT-016.
T_FIELDCAT_H-OUTPUTLEN = 20.
WHEN OTHERS.
CONTINUE.
ENDCASE.
MODIFY T_FIELDCAT_H.
CLEAR T_FIELDCAT_H.
ENDLOOP.
*BREAK-POINT.
MOVE T_FIELDCAT_H[] TO T_FIELDCAT[].
*----End
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = l_repid
i_callback_pf_status_set = 'SET_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = l_title
is_layout = l_layout
it_fieldcat = t_fieldcat
i_save = 'A'
tables
t_outtab = T_FOR_DISP[]
exceptions
program_error = 1
others = 2.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-017.
ENDIF.
ENDFORM. " SUB_DISPLAY_ALV
*& Form TOP_OF_PAGE
This subrouting is used to show heading to ALV Grid. This
subrouting is called from subrouting 'SUB_DISPLAY_ALV', Function
'REUSE_ALV_GRID_DISPLAY' & export param 'i_callback_top_of_page'
*Form TOP_OF_PAGE.
DATA : L_HEADER TYPE SLIS_T_LISTHEADER,
L_HEADER_H TYPE SLIS_LISTHEADER.
DATA : L_FROMDAT(10) TYPE C,
L_TODATE(10) TYPE C.
*CONSTANTS : C_DOT(1) TYPE C VALUE '.',
C_L_HEADER_H_TYP(1) VALUE 'H'. "---ALV Grid Header Type
CLEAR : L_HEADER.
**--To Manage Date Format
CONCATENATE S_DATE-LOW+6(2)
C_DOT
S_DATE-LOW+4(2)
C_DOT
S_DATE-LOW+0(4)
INTO L_FROMDAT.
CONCATENATE S_DATE-HIGH+6(2)
C_DOT
S_DATE-HIGH+4(2)
C_DOT
S_DATE-HIGH+0(4)
INTO L_TODATE.
**---End
IF L_TODATE <> '00.00.0000'.
CONCATENATE 'Purchase Org:'(014)
S_VKORG-LOW
'PO changes from'(015)
L_FROMDAT
'To'(013)
L_TODATE
INTO L_HEADER_H-INFO SEPARATED BY SPACE.
ELSE.
G_DATE = SY-DATUM.
CONCATENATE 'CHANGES: '
G_DATE
INTO L_HEADER_H-INFO SEPARATED BY SPACE.
ENDIF.
Main report header
L_HEADER_H-TYP = C_L_HEADER_H_TYP.
APPEND L_HEADER_H TO L_HEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = L_HEADER
I_LOGO = ''.
*ENDFORM. "TOP_OF_PAGE
Plz look into this and suggest me ..thanks a lot. -
Error while doing the repository export
hi,
I am getting error while doing the export repository,Message: GEN-13, Additional Message: Dictionary is not available on this database, can anyone help me how to resolve this issue.
thanks,
Sundar MHi Sundar,
Please provide the export repository command, what you used and the log file to review.
The error "Dictionary is not available on this database" will pop up when Siebel Repository is not present in DB.
For export process you have to give repository name as "Siebel Repository" and it will export schema in to *.dat file.
NOTE: Do not change Siebel Repository name for export process.
Thanks,
Shilpi -
Hi all,
OS: OEL 6.3 64 bits
DB: 11.2.0.3
Grid: 12.1
While installing Grid Control 12c, the following error appears to me:
INFO: SaveInvWCCE JRE files in Scratch
INFO: oracle.installer.mandatorySetup property is set to false, so skipping the execution of additional tools
INFO: oracle.installer.installUpdates property is set to false, so skipping the checking of updates
INFO: Config Initialize JRE files in Scratch
INFO: no env vars set, no envVars.properties file is generated
INFO: none of the components are configurable
INFO: This is a shared oracle home or remote nodes are null. No copy required.
INFO: Adding iterator oracle.sysman.oii.oiif.oiifw.OiifwRootShWCDE
INFO: Updating the global context
INFO: Path To 'globalcontext.xml' = /gridControl/WLS/jdk16/install/chainedInstall/globalcontext
INFO: Since operation was successful, move the current OiicAPISessionDetails to installed list
INFO: Install Finished at: 2013-07-04_11-12-49-PM
INFO: The ARU ID found in shiphomeproperties.xml file is 226
INFO: ARUId present in shiphomeproperties.xml matches with the 64 bit OMS Platforms ARU ID 226, so -d64 is passed for wls install.
INFO: Executing the command /gridControl/WLS/jdk16/jdk/bin/java -d64 -Djava.io.tmpdir=/gridControl/WLS/.wlsinstall_temp -Xms128m -Xmx1024m -jar /u01/binaries//wls/wls1035_generic.jar -mode=silent -silent_xml=/gridControl/WLS/.wlsinstall_temp/wls.xml -log=/u01/oraInventory/logs/installActions2013-07-04_11-07-45PM.log.wls -log_priority=debug
INFO: Extracting 0%....................................................................................................100%
INFO: ERROR STREAM: *sys-package-mgr*: skipping bad jar, '/u01/binaries/wls/wls1035_generic.jar'
INFO: #
INFO: # A fatal error has been detected by the Java Runtime Environment:
INFO: #
INFO: # SIGSEGV (0xb) at pc=0x0000003a23689cdc, pid=24834, tid=139710737405696
INFO: #
INFO: # JRE version: 6.0_24-b50
INFO: # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
INFO: # Problematic frame:
INFO: # C [libc.so.6+0x89cdc]
INFO: #
INFO: # An error report file with more information is saved as:
INFO: # /tmp/hs_err_pid24834.log
INFO: #
INFO: # If you would like to submit a bug report, please visit:
INFO: # http://java.sun.com/webapps/bugreport/crash.jsp
INFO: #
INFO: Return value is 134
INFO: POPUP ERROR:Installation of Oracle WebLogic Server has failed, check log files for more details.
The line "skipping bad jar, '/u01/binaries/wls/wls1035_generic.jar'" is the one that's worring me. Can it be corrupt? Or it is something else?
Thanks in advance.Its too early to conclude the issue is a bug with out looking into the logs. For the same reason i requested you to open an SR so that we can have a look at the logs and identify the cause. If you are Oracle employee then you can share the VM details else we need logs to debug this further. If any one from your company can open an sr and share logs then that will be helpful. Can you also check if the shiphome that you downloaded is all correct and checksum/byte matches to what is mentioned on OTN.
-
ALV grid output issue to excel
Hi Experts
I have an ALV report which I want to Download to Excel( I am using excel 2003).
When I veiw the report it apperars ok. Their are around 90 columns in the Report
But when I export the alv I found that some columns are on the next line. Is there any way to resolve this issue
I want to export in excel without creating new rows of columns .
Thanks
VikrantHi,
please tell your abaper to move 90 fields to intenal table & have a look below code.
Here my internal table is i_downfinal.
DATA: FULLPATH TYPE STRING,
FILENAME TYPE STRING,
PATH TYPE STRING,
USER_ACTION TYPE I.
encoding TYPE ABAP_ENCODING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = 'File Download'
DEFAULT_FILE_NAME = 'C:\TEMP\zpmcs.xls'
WITH_ENCODING = 'X'
CHANGING
FILENAME = FILENAME
PATH = PATH
FULLPATH = FULLPATH
USER_ACTION = USER_ACTION
FILE_ENCODING = encoding
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
IF USER_ACTION <> CL_GUI_FRONTEND_SERVICES=>ACTION_OK.
EXIT.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FULLPATH
FILETYPE = 'DAT'
TABLES
DATA_TAB = I_DOWNFINAL
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to supress dialog while ALV Grid output is send to Spool
Hi,
I need to get the ALV grid output in spool.But when i am executing my program using ALV grid function module with print parameter passed,first its giving a popup with default printer and number of copies and when i press ok for the popup ,spool request is created.But i dont want this popup to come while executing my program.It should create the spool request directly. How to solve this issue.
Regards
ShibinHi Shibin,
Try the below parameter in IS_PRINT Structure:
is_print-print = 'N'.
This will Supress the Dialog and create a Spool with no Immeadiate Output.
Hope This Helps you..
Thanks & Regards,
Suresh Karri -
I am trying to export my portal PAGEGROUP plus other objects under it i.e. pages etc. and followed the instructions listed in:
http://download-uk.oracle.com/docs/cd/B14099_11/portal.1012/b14037/cg_imex.htm#i1030999
but when I run the .cmd script generated through portal after export I get the following error:
Verifying the environment variables...
Verifying the Oracle Client version...
export Mode Selected
Verifying the portal schema passed...
ERROR:
ORA-01017: invalid username/password; logon denied
SP2-0751: Unable to connect to Oracle. Exiting SQL*Plus
Error: Could not connect. Invalid Portal Schema, Password or Connect String
Export/Import aborted.Eventhough I successfully logged-on as a portal user through SQLPLUS / JDEVELOPER and em console. And am giving the same username/password when I run the script but somehow keeps giving me the above error. Here is my export command that I am using:
C:\Export>exportscript.cmd -mode export -s PORTAL -p <portal_password> -pu <portal_username>
-pp <portal_usernamepassword> -company <companyname> -c ORCL -d <dumpdfilename>
here ORCL is the connect_string.
Any help is appreciated.
ThanksI got it working so please disregard actually the PORTAL password wasn't correct I retrieved the password using the following:
C:\Export>ldapsearch -h localhost -p 389 -D "cn=orcladmin" -w <password> -b "cn=IAS
Infrastructure Databases,cn=IAS,cn=Products,cn=OracleContext" -s sub "orclResou
rcename=portal"and used the value for orclpasswordattribute as a portal password and it worked fine.
Thanks -
Error while downloading report into CSV or EXCEL
Hi All,
I am facing a strange problem while downloading data in excel or CSV format. I have created a report that is nothing but output of direct database request. The report is running fine and able to download data but since yesterday it is throwing error: -
[nQSError: 17001] Oracle Error code: 1455, message: ORA-01455: converting column overflows integer datatype at OCI call OCIStmtFetch.
[nQSError: 17012] Bulk fetch failed.
Sometimes it starts download and after fetching some data it throws this error. The report is bulky and generally it brings around 40 k rows.
Can anybody faces this error or have any idea about this. Please give some suggestion as I have searched it but not reached to any conclusion. Thanks in advance.
Thanks
AshokHi Thomas,
Following is the logic implemented in RFC which is giving XSTRING as export parameter
STEP1 create a dynamic internal table
Create field catalog for the table using LVC_FIELDCATALOG_MERGE
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcat
IMPORTING
ep_table = dyn_table.
CREATE EXCEL SHEET BY SENDING FIELD CATALOG AND DATA TAB
STEP2 # Convert text table to xstring.
CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
IMPORTING
buffer = l_content
TABLES
text_tab = lt_data_tab
EXCEPTIONS
failed = 1
OTHERS = 2.
STEP3 *# Psss Data to Netweaver
PERFORM pass_data_to_nw USING is_import
CHANGING es_attachment_metadata.
Maybe you are looking for
-
OTL- Timecard: How can associate Project with Time
Hello gurus, I have an OTL requirement where users are required to enter no more than 8 hours of sick time a week. I have an idea on how to accomplish this but I am not sure how to count the hours when Project = Sick. Can somebody give me an idea how
-
Changing the topic titles in jeopardy Captivate 8
Is there a way to change the topic titles in Jeopardy for Captivate 8?
-
Problem with Runtime.exec()
Hi, I'm having a problem with Runtime.exec() . I have a batch file with debug option to FTP the desktop file to mainframe. When I executed this in Windows it's shows me the responce from the server (like ' Transfer Completed' ) for my FTP commands. B
-
Tom Hogarty post about LR and ACR 4.1
http://blogs.adobe.com/lightroomjournal/2007/05/lightroom_and_camera_raw_41_1.html
-
Problem Installing AppLoader/​Download Location?
I get an error message when opening Desktop Manager that it cannot find AppLoader.msi and it not allow me to move past that point or cancel the install (I have to close the application through Task Manager). I have uninstalled and re-installed Deskt