Error while opening the EXCEL Sheet from a Report Program
Hi All,
I am getting an error saying 'SYLK: File Format is not valid' when my program is trying to open an excel sheet. I am using the function module WS_EXCEL to download it to excel sheet.
Following is the code:
Excel download
types: begin of t_excel,
c01(20),
c02(20),
c03(20),
c04(20),
c05(70),
c06(20),
c07(20),
c08(20),
c09(20),
c10(20),
end of t_excel.
data: a00_excel type standard table of t_excel.
concatenate 'C:\' sy-repid sy-uzeit 'FILE01' '.xls' into z_fname.
condense z_fname no-gaps.
call function 'WS_EXCEL'
exporting
filename = z_fname
tables
data = a00_excel
exceptions
others = 1.
if sy-subrc ne 0.
message e019(zsd).
Download to Excel failed.
endif.
a00_excel contains the data that is to be downloaded into the excel sheet. I used the same code in the other program it is working fine. If you see in the type declaration for C5 its 70 characters, i tried putting it as same as others to 20... still it doesnt work.
Thank You,
Suresh
Not sure man, your code works ok for me.
report zrich_0001.
types: begin of t_excel,
c01(20),
c02(20),
c03(20),
c04(20),
c05(70),
c06(20),
c07(20),
c08(20),
c09(20),
c10(20),
end of t_excel.
data: a00_excel type standard table of t_excel.
data: x00_excel like line of a00_excel.
data: z_fname type string.
x00_excel-c01 = 'A'.
x00_excel-c02 = 'B'.
x00_excel-c03 = 'C'.
x00_excel-c04 = 'D'.
x00_excel-c05 = 'E'.
x00_excel-c06 = 'F'.
x00_excel-c07 = 'G'.
x00_excel-c08 = 'H'.
x00_excel-c09 = 'I'.
x00_excel-c10 = 'J'.
append x00_excel to a00_excel.
x00_excel-c01 = 'K'.
x00_excel-c02 = 'L'.
x00_excel-c03 = 'M'.
x00_excel-c04 = 'N'.
x00_excel-c05 = 'O'.
x00_excel-c06 = 'P'.
x00_excel-c07 = 'Q'.
x00_excel-c08 = 'R'.
x00_excel-c09 = 'S'.
x00_excel-c10 = 'T'.
append x00_excel to a00_excel.
concatenate 'C:' sy-repid sy-uzeit 'FILE01' '.xls' into z_fname.
condense z_fname no-gaps.
call function 'WS_EXCEL'
exporting
filename = z_fname
tables
data = a00_excel
exceptions
others = 1.
if sy-subrc ne 0.
message e019(zsd).
* download to excel failed.
endif.
Regards,
Rich Heilman
Similar Messages
-
Getting Error while overiting the excel sheet
Hello,
My requirement is to overwrite the excel sheet instead of appending the next records. What I do to achieve this is drop sheet first then create sheet again. While doing this in execute sql task I am getting errors.
[Execute SQL Task] Error: Executing the query "CREATE TABLE `testtt` ( `case` VARCHAR(10), `case1` VARCHAR(50) ) " failed with
the following error: "Cannot modify the design of table 'testtt'. It is in a read-only database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not
established correctly.
Same error for drop too. This is working fine when I do locally but when deploy it on server I get this type of errors. I assume this might be issue with accesses.
Please suggest me.
Ramu GadeHi Naveen,
Thanks for your reply. I am dropping the excel sheet and then creating the excel sheet and then exporting the data from database to this sheet. The whole idea is to avoid appending of the records to this sheet, it should be new records all together.
I am not sure if deleting the entire excel file and then creating the excel sheet will work. And other thing is that it works locally but when I point that package in my sql agent job then it fails with above error that I have mentioned in my first
conversation.
Please suggest.
Regards.
Ramu Gade
Why not create a excel template before hand which you can copy,rename and use each time. This will avoid appending records each time
See this as an example
http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Error while opening the website linked from my weblogic
Hi..
I upgraded my UCM 10g to 11g.
When i try to open the website . i get the following error.
The dynamic application file is not at the specified location ('/u02/ContentServer/UCM/stellent/server/weblayout/groups/public/documents/gmkp_search_primary/~edisp/gmkp_search_primary.hcsp').+
Can any one tell me wht is this error and how to solve this .. ?Not sure man, your code works ok for me.
report zrich_0001.
types: begin of t_excel,
c01(20),
c02(20),
c03(20),
c04(20),
c05(70),
c06(20),
c07(20),
c08(20),
c09(20),
c10(20),
end of t_excel.
data: a00_excel type standard table of t_excel.
data: x00_excel like line of a00_excel.
data: z_fname type string.
x00_excel-c01 = 'A'.
x00_excel-c02 = 'B'.
x00_excel-c03 = 'C'.
x00_excel-c04 = 'D'.
x00_excel-c05 = 'E'.
x00_excel-c06 = 'F'.
x00_excel-c07 = 'G'.
x00_excel-c08 = 'H'.
x00_excel-c09 = 'I'.
x00_excel-c10 = 'J'.
append x00_excel to a00_excel.
x00_excel-c01 = 'K'.
x00_excel-c02 = 'L'.
x00_excel-c03 = 'M'.
x00_excel-c04 = 'N'.
x00_excel-c05 = 'O'.
x00_excel-c06 = 'P'.
x00_excel-c07 = 'Q'.
x00_excel-c08 = 'R'.
x00_excel-c09 = 'S'.
x00_excel-c10 = 'T'.
append x00_excel to a00_excel.
concatenate 'C:' sy-repid sy-uzeit 'FILE01' '.xls' into z_fname.
condense z_fname no-gaps.
call function 'WS_EXCEL'
exporting
filename = z_fname
tables
data = a00_excel
exceptions
others = 1.
if sy-subrc ne 0.
message e019(zsd).
* download to excel failed.
endif.
Regards,
Rich Heilman -
Field value is truncated while downloading to excel sheet from ALV report
Hi All,
I developed ALV report and displaying output.
In that output i had a filed VBRP-PRODH filed.
In the output it is coming correctly but while i click downlaod to excel the valus is truncted.
for Example the value for VBRP-PRODH is 03322764170100201
while downlaoding this one to excel it is showing 3322764170100200
Any inputs please..
Regards
JaiWrong forum..post in ABAP
-
Error while opening the backup information fom Maxdb
Hello All,
I am getting the below error while opening the backup information from Maxdb.
Backup history file /sapdb/data/wrk/<sid>/dbm.knl corrected in line <xxxx> ; 2012-02-21 07:30:25 can not be convert in to a signed 32 bit integer value
The full line is as below from the dbm.knl file:
4F4337C5014C|LOG_000030571|SAVE WARM|2012-02-21 07:16:03|2012-02-21 07:20:49|2012-02-21 07:20:53|2012-02-21 07:21:04|2605155691|2605244F433A01014E|LOG_000030573|SAVE WARM|2012-02-21 07:26:09|2012-02-21 07:30:24|2012-02-21 07:30:25|2012-02-21 07:30:41|2605326357|2605411689| |<SID>_LOG | 85344| 0| 0| |
I am able to open and check this line in the file dbm.knl ; But, i am not getting why this error is occurring while opening the backup information from Maxdb. I am able to view the backup logs through LC10.
Currently i am getting this error and when i am click on cancel (or ok) getting the blank page. I am not able to view the backup logs form Maxdb.
Please give me some hint to resolve this.
Regards,
Nagendra.Hi,
Use below procedure
1. Go to /sapdb/SRD/data/wrk
2. cp -rp dbm_knl dbm_knl_OLD
3. vi +<Line in which the corruption occured> dbm.knl
see there must be a corruption in the given line and it will specified with a green color
delete that part and make the format as per the above line
4. save the file
5. execute the procedure again from Database studio or Database Manager
(Note: Make sure that you have taken the backup first of dbm.knl file Because any extra entry may cause another corruption)
(FYI : This file is only log file of successful backups and returns the return-code)
Regards,
Paramvirsinh Jetawat
SAP BASIS Consultant -
Need to open the excel sheet in the selection screen
Hi All,
my requirement is to upload the data from excel sheet but that excel sheet have mutiple tabs and all individual tab have mutiple records inside. I need to open the excel sheet from selection screen and select dynamically any tab and i need to put all the records into internal table of that paricular tab.
Please suggest how it can be done.
<removed_by_moderator>
Thanks,
Madhu
Edited by: Julius Bussche on Oct 21, 2008 11:41 AM>
madhu singh wrote:
> Thanks for reply but this FM is actually transfer the tha data frrom excel sheet to the internal table. which we can use later before that i need to open the excel sheet on the selection screen.
it depends on which event do you call the FM. If you call in INITIALIZATION (or LOAD-OF-PROGRAM) than the Excel sheet will be uploaded before the selection screen appears at all. The problem with the above FM is that it will upload the actual tabstrip of the sheet, probably not what you want (and definetly no multiple ways). To upload data form Excel from multiple tabs, you need to code it on your own with the help of OLE commands. -
Error while opening the BO report
Dear Experts,
Am getting following error while opening the reports through Xcelsius.You cannot amke a connection to the BusinessObjects web service ( LO 02010)
Failed to get the document information. (LO 26315)
Some objects are no longer available in the universe .See your BO admin ( Error : WIS 00001)
Actually am the BO administrator , Yesterday I 've changed license key for Xcelsius and BO Enterprise...Hi ,
You can view the following URl ,which may be helpful for you.
Live office excel error
-Thanks, -
Error while opening the application help
Hello,
We are trying to open the application help from the R/3. It is giving
us the follwoing error.
This is linked to the knowledge warehouse server 6.20.
Error:
SAP Internet Knowledge Server
The IKS cannot display the page you asked for.
Please contact the administrator if this problem persists.
Additional infomation:
RFC Error: System exception raised, connection closed (SIW_IKS_VAR_GET)
RfcRc: <3>, ErrorInfo:
The confuguration looks fine as per the note # 381266.
The help is working fine previously.
Thanks in advance.
Best regards,
Madhav.Hi Arun,
Error due to incorrect installation of life cycle designer.
check the below links for solution.. ( same issue ).
Error Message "Error while Opening the Document"
Error - Adobe Live Cycle designer
Regards
Srinivas -
I have a WL 9.2.1 running on Sun solaris o/s .....it is failing to start thowing the following exception
<Mar 19, 2009 5:21:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was a
n error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:44)
at weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start(DiagnosticFoundationService.java:107)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS0
00000.DAT"
at weblogic.store.io.file.Heap.open(Heap.java:166)
at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:350)
at weblogic.store.PersistentStoreManager.createFileStore(PersistentStoreManager.java:202)
at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:61)
at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:42)
... 4 more
Caused by: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
at weblogic.store.io.file.StoreDir.throwIOException(StoreDir.java:213)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:103)
at weblogic.store.io.file.Heap.open(Heap.java:164)
... 9 more
Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11
at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:51)
at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:95)
... 10 more
i went ahead and checkd the file and the privs on the file they look correct -rw-r--r-- ...but when i just restart it ..it starts with no errors the next time......What could be the issue.....please help
Then only reason i could think of is the size of the file is 35MB now...is this the problem....if yes....is there a way to automaticaly rotate this file ....The root cause appears to be right in the stack trace:
Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11I think this indicates that either the file was either locked (because another instance of WebLogic had it opened), or that the file was unavailable for some reason. WebLogic locks files as a safety precaution to prevent misconfigured setups (multiple domains sharing the same directory and store name) from attempting to share the same file.
I don't think that this message necessarily means there is a file corruption.
As for rotation, the file store automatically adds new files as needed (I think its 1 file for every 2GB of data). The "diagnostics" file store is generated by the optional diagnostics feature, and I think that this feature has options for controlling the amount of stored data.
Tom -
Error Message "Error while Opening the Document"
Hi Friends,
I have a problem while opening the SFP transaction and Clicking on the Layout Tab the SAP System is giving an error message saying "Error while Opening the Document".
I have tried testing on several systems like IDES, ERP, Retail systems. But it is giving me same error. Is this the problem with ADOBE LIVECYCLE DESIGNER?
And when I click on the Performance Assistant it has given me some information:
Error while opening document
Message no. SOFFICEINTEGRATION143
Diagnosis
An error occurred in the desktop application while opening a document.
Friends can you help me in solving this problem.
Thanking yoy in Advance
Pradeep GoliPradeep,
Maybe Live Cycle Designer has not been uninstalled correctly from your system. So goto the following lcaotions and remove the Designer folder if you find them:-
C:\Program Files\Adobe
C:\Documents and Settings\<your-username>\Application Data\Adobe\
Alternatively try installing Live Cycle Designer on some other machine in your network and see if you encounter the same error.
Similar thread for reference : Error - Adobe Live Cycle designer
Chintan -
Hi Techys,
can you give me the suugestions for below error in sharepoint 2010.
Error: "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file.
User having the contribute permission.
as a admin i can open the document without any error.
user wants to open the document via online and VPN connection.
while the user seeing the document info the below error is indicationg .
Offline Copy, Work book is readonly Mode.
The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file which was upto date.
Many Thanks,
MadhuMake sure that the user is able to access workstream from the site collection through VPN. If the user is able to access already, try to download the file locally and see if the data is getting loaded and upload again.
--Cheers -
Error while opening the receipt entry form in AR module.
Error while opening the receipt entry form in AR module. We have created one new responsibility of Receivables for new operating unit . When we open the corresponding
forms , we are getting the error message as :
NO_DATA_FOUND
FRM-40735: PRE-FORM trigger raised unhandled exception ORA-20002.
Kindly help in resolving.
We have ERP version of 11.5.10.2Please also see the following docs.
Transactions Workbench Error: Listing of ORA Errors [ID 1336495.1]
FRM-40735 ERROR OPENING LIFE EVENT REASONS FORM BENLEVRS [ID 1517593.1]
APP-AR-96996: The Defined Sales Representatives Have Incorrect Id'S [ID 437107.1]
ARXSUDRC Receipt Classes Errors With APP-AR-96994: Please Define Sales Representatives [ID 357454.1]
Thanks,
Hussein -
Error while opening the database.--urgent---pls help...
Hi,
Got the below error while opening the database.
Database version is :10.1.0.4.0
database is in noarchive log mode.
the database is coming in to no-mount state and mount state quite easily but not able to open the database.
Got the below error while opening the database.
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
Mon Sep 29 15:32:39 2008
Errors in file /xxx/udump/aaa_ora_18737.trc:
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
Mon Sep 29 15:32:41 2008
DEBUG: Replaying xcb 0xc0000000350c1c18, pmd 0xc0000000353b21f0 for failed op 8
Doing block recovery for file 2 block 9483
No block recovery was needed.
on Sep 29 15:34:01 2008
Errors in file /xxx/udump/aaa/bdump/aaa_pmon_18723.trc:
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
Mon Sep 29 15:34:04 2008
Errors in file /xxx/udump/aaa/bdump/aaa_pmon_18723.trc:
ORA-00600: internal error code, arguments: [4194], [37], [31], [], [], [], [], []
PMON: terminating instance due to error 472
Instance terminated by PMON, pid = 18723
Please help me....................Hi..
This ORA-600 refers to a mismatch has been detected between Redo records and rollback (Undo) records.Is better to lock a call with oracle support.Secondly, apply latest patch on the DB.
I had expereiced the same error, but my DB was in open mode, so i created a new undo tablespace and changed the undo_tablespace parameter and it worked.
Anand -
Getting error while opening the workbook
Hi,
I am getting one error while opening the workbook.
Error: The Dependency "Join condition" is not found in EUL.
Basically, the workbook was working fine. But we droped some joins and recreated new joins. After this change, our worknbooks starts giving this error.
Please advice.
Where i can get the dependency information in EUL?
Thanks, rajeshThis has to be one of the most 'pain in the butt' errors you can get (well ... 0000 - normal successful completion is another).
Although I've seen this one for years, these days I'm finding many more examples that are happening to me with this (simply the environment I'm in) and in many cases, requires rebuilding the workbook again. For example, sometimes I put in the join that I think it's having a problem with, but the existing workbook simply won't run. Recreating the workbook exactly the same gets it to work properly. Maybe it's a 4.x thing (version I'm on these days) ... but just a warning that you may well have to rebuild.
Russ -
i am getting the following error message while opening the fire fox browser "sript file:///programe % 20 files/siber%AT% 20roboform/Firefox/components/ref helper.JS:510 in English
ls -l /var/run/lighttpd/
And how are you spawning the php instances? I don't see that in the daemons array anywhere.
EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
You will note that with pre-spawned information, the config looks different[1].
You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
[1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"
Maybe you are looking for
-
Hi Experts, i have configured name space prefix in sld.In NDS it is showing all name spaces.but when i want to create database table in java dictionary dc it's not allowing me to create a table.it is prefix is invalid erorr. what might be the reaso
-
Flash SWF Performance Testing and Data
Looking for some recommendations on tools that can be used independent of the source (that is just on the swf) to check for Frames Per Second, total size and how often the movie loops. Needed for Flash Banner ad quality assurance.
-
I was setting up my pop's new iPhone 4. When I was setting up the Safari Browser, it asked what I thought was which search engine I wanted to use, so I entered Google. Problem is that I somehow made the Safari Browser open up into a Google Browser.
-
Most recent 5 entries on front .mac podcast page
I'm trying to use a .mac account to get podcasts on the iTunes store. I've got everything set up, but only the 5 most recent podcast entries show up on the front page of my .mac podcast page. Older entries get pushed into the archive page. Then, on t
-
Version management in ABAP query
Hi, How to retrieve a infoset &Query using version management, but unfourtunately there is no option for this.Can u n please tell me how is this possible?