Junk Characters while opening a file from webdynpro ABAP
Hi All,
We have a Webdynpro ABAP application , in that application from a link we are opening DOC,PDF,JPG........files . When we click on that link it is opening in a Junk charcters . We have another webdynpro ABAP application in portal , in that application the files are opening fine.
Could you please let me know why it is opening in a junk characters in first application?
Regards,
Krishna.
Hi ,
The files are opening fine in IE7 but when we try to open in IE8 and IE9 they are opening in a junk characters.
I am not sure in another webdynpro ABAP application the files opening correctly in IE 8 .
Regards,
Krishna.
Similar Messages
-
How to download file from Webdynpro ABAP?
Hello,
What is the best way to download a file from ABAP Webdynpro?
I tried calling method *cl_gui_frontend_services=>gui_download*
from within an Action of my WDA, but it got an error 06, which is "Unknown Error" (not very helpful).
The same code works when I execute it from a regular ABAP program.
I am not using ALV. I just created a file by reading a database with WDA selection fields, then transformed it to XML using CALL TRANSFORMATION.
Thanks,
ColleenYou can't use the GUI_DOWNLOAD, because you have no GUI present, which is the reason why you are getting the error. You will want to take a look at the class/method cl_wd_runtime_services=>attach_file_to_response
Regards,
Rich Heilman -
How to Download a PDF file from Webdynpro ABAP Screen
Hi,
I have developed a input form in webdynpro - ABAP(Not Adobe),
As I am not using above services here, but would like to download the information I am capturing into a PDF file.
can I do it without using adobe interactive forms ?
thanks
SiddharthHi siddharth,
My suggestion would be to create your output as a Smartform and call your Smartform in your View.
For more Click this link.
[HOW TO DISPLAY A SMARTFORM AS PDF DOCUMENT IN WEB DYNPRO FOR ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]
Regards
Bulent -
Unhandled exception while opening excel file from e-business suite form
Hello,
I am getting error ORA-106561 (Unhandled errorg) when I am trying to open excel sheet which is reside in my desk top from Oracle E-business suite customized form using dde.app_begin('C:\Program Files\Microsoft Office\Office12\EXCEL.EXE'||'d:\emp.xls' ,dde.app_mode_normal)
E-BUSINESS SUITE is in Unix server and EBS version is 10.5.10.2cu and hp Unix version is 11.11
Please help me out in the above issue
My objective is to open an excel sheet which is in my local disk and read and update the excel.
Edited by: user538673 on Jul 23, 2010 2:20 AMHello,
This is the standalone Forms forum here.
Please, ask your EBS questions on the E-Business Suite forum ;-)
Francois -
PROBLEM while using URL in order to open a file from a servlet
Hi,
I am having a problem while trying to open a file from my servlet by using URL connection. Following is my code sample. what happens is when I first run my project it opens the file but after that when I rerun it again and again it sometimes opens it and sometimes not. if it can't open it it gives an error saying "the file is damaged and couldn't be repaired". I don't get any exceptions. if you guys can help me I will appreciate it so much... thanks.
here is my code :
URL url = new URL("http://demobcs.ibm.com:81/test.pdf");
resp.setContentType(getContentType("http://demobcs.ibm.com:81/test.pdf"));
ServletOutputStream sos = null;
BufferedInputStream bis = null;
try {
sos = resp.getOutputStream();
} catch (Exception e) {
System.out.println("exception !!!!");
e.printStackTrace();
System.out.println("burada2");
try {
byte[] bytes = new byte[4096];
//bis = new BufferedInputStream(conn.getInputStream());
DataInputStream in = new DataInputStream(url.openStream());
//DataInputStream in = new DataInputStream(conn.getInputStream());
bis = new BufferedInputStream(in);
int j;
while ((j = bis.read(bytes, 0, 4096)) != -1) {
try {
sos.write(bytes, 0, 4096);
System.out.println("file is being read ...:");
} catch (Exception e) {
e.printStackTrace();
in.close();
bis.close();
//sos.close();
} catch (Exception e) {
System.out.println("exception :"+e.toString());
e.printStackTrace();
}You are writing (<filesize> mod 4096) bytes of crap at the end of the file. Use your variable j instead for the number of bytes to write in your loop.
-
Excel 2013 hangs while trying to open a file from network share
Hi,
I am having issue opening excel file from a network share. it happens randomly, the file opens and hangs abruptly. Nothing happens after that ( we can only move the cursor), if we click on the excel sheet we get a beep sound. after i kill the excel process
and open it again ,it works fine.
Where did the member use the Excel file? Local disk, SharePoint, File server, or network shared disk?
Network shared file and sometime locally
Does the issue occur in the special file or every file?
it happens randomly and the whole excel freezes. i have to kill the excel session.
Which Office version is the file created? Excel 2013 or early? If it is XLS format, please try to convert to XLSX to test.
Network file server has office 2010 and the user is trying to open it in excel 2013
Does the file have some macros?
Yes, they have macros in some files
Does the issue occur recently? If it is, have you installed some programs or update before you encountered it?
it happened before too.
Do you get some error message when Excel crashed?
Yeah. Attaching the error message from event viewer. We get file corrupt errors and below too.
Please suggestHi Suren424,
Since your first image showed that "To see if more information about the problem is available, check the problem history in the Action Center control panel." Please go to this path (Control Panel\All Control Panel Items\Action Center\Problem Reports)
to check the detailed information, and you might upload the screenshot or info here.
Then, please try the following methods and check if they are helpful:
1. File --> Options --> Advanced --> uncheck "Ignore other applications that use Dynamic Data Exchange (DDE)"
2. Turn off "Protected View" --> (File –-> Options –-> Trust Center --> Protected View --> Uncheck all options
3. I notice that >>Network file server has office 2010 and the user is trying to open it in excel 2013 <<, it also might be caused by the Microsoft Office File Validation for Office 2010, please try to change setting in server with
the link:
http://support.microsoft.com/kb/2501584
If you have any update , please feel free let us know.
Regards,
George Zhao
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "[email protected]" -
Strange question mark error while opening pdf files in adobereader from SAP
Hi Gurus
We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
This issue occurs few times a day
This issue does not occur in Windows XP.
Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
Environment
SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
Windows Vista Enterprise
Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11.
Please suggest
Thank you
PavanThank you for the quick reply.
We tried many notes from Service Market Place. Also, Windows Team is in contact with Adobe.
As per Adobe's suggestions, we tried changing preferences of Adobe Reader. We think it might be a problem with SAP Frontend.
Present status - Issue still exists. nothing works.
Thank you -
Unable to open .chm file from a link in Weblogic 7.0
Unable to open .chm file from a link in weblogic server. But the same
jsp code works in Websphere
Sample Code :
<!-- < a href="JavaScript:window.navigate('help/manual.CHM')">
Linked Text</a> -->
The above link, works well in websphere. help is a folder that
resides in the server. But when i tried to execute the same in
Weblogic, some junk characters appeared . so i tried to direct the
link to Display.jsp and passed the path of the chm file as the
parameter. I cleared teh out buffer using out.clearBuffer() . i set
the content type to application/x-msdownload and also set the header
to content disposition.
Nothing worked .
I also tried another way.. That is the following
I even tried including the mime type
<mime-mapping>
<extension>chm</extension>
<mime-type>application/x-msdownload</mime-type>
</mime-mapping>
in the web.xml file. and still it doesnt work
Nothing Worked . What should i do ? I need immediate help to sort out
this issue. Can anybody help me
- AngelThis could be a Launch Services issue. The following article describes how to manually reset Launch Services — the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
Resetting Launch Services
If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, take a look at this other article for general troubleshooting and cache-cleaning procedures. Actually, you should also verify/repair the startup disk (not just permissions), as described there:
Resolving Disk, Permission, and Cache Corruption
The most appropriate utility for this particular problem probably is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
Side effects of System cache cleaning
As an example, this is how you should proceed with OnyX:
1. Quit all applications.
2. Launch OnyX and enter your administrator password.
3. Go to Maintenance > Reset and check LaunchServices database.
4. Un-check any other pre-checked options.
5. Click the Execute button.
6. Restart the computer.
BTW, if you’re running Mac OS X 10.4 (Tiger), as your profile indicates, it would have been more appropriate to discuss this in the Mail & Address Book - Tiger forum. If the discussion applies to both Mail 1.x and Mail 2.x, it doesn’t really matter, but it’s difficult to know that in advance. -
Unable to open CS3 Files from within the application
Good Afternoon
I work as IT Support for company looking after 10 ADOBE Creative Suite 3 end-users.
One of my colleagues is unable to open Illustrator or Photoshop files from within their respective applications, but she is able to open them from outside ok.
I have reinstalled ADOBE CS3 and this appeared to resolve the issue, only for it to return again a day later.
She has no other applications or processes running during her attempt to open a file from within CS3.
She will click on Open and the 'Open File' window will flash up for a split second, then the whole application will be frozen. It is as if the 'Open File' window is there, but isnt there because we cant click on it, but the application thinks it is displaying and so she can not click on anything else. The only way to close the application is to end the process under Task Manager.
While I am sitting here tearing what little amount of hair I have on my head, can anyone point me in the right direction?
Is this a Windows problem or an ADOBE problem do you think?
I look forward to any replies.
Thank youHi Bob
Ok...
Opened illustrator but was unable to open the 'Open File' window.
Changed the screen resolution, it suddenly worked!
Changed the screen resolution back to as it was before, it also worked.
What could cause this do you think?
By simply changing the screen resolution and back again, the 'Open File' window displayed itself.
Very bizarre! -
Can't open INDD file from icon
I have an installation of InDesign CS3 (upgraded from CS2) that won't let the user open a file from it's icon. You get the error message of "<filename> is not a valid win32 application" The file will open if you open InDesign and use the file open menu. The icon isn't the InDesign icon either-looks like a doc file icon without Word installed. I've gone into File Types (from the Tools-Folder Options-File Type window) and tried to manually made the indd file open with CS3 but that still didn't work (oddly when I try to use the CS3 icon it too has a generic .exe icon).<br /><br />If I log in as myself (admin rights on the Windows XP) and once I did the above it worked for me. I gave the user full rights and tried the above again but it didn't work-still wouldn't open by clicking on the icon-just keep getting that error message. Any help would be great as I can't seem to come across anything googled that is helping.
This is a follow-up. My question has been answered in that did get to open the file as follows:
By trial and error (based on responses) basically I was able to open the file as a copy from inside InDesign. There are three options in the lower left had corner of the window, I picked copy after trying the other two. Up until this time I could not find any idlk file.
Once I opened the file I backed it up and made another copy that I opened. I went back to the original file and tried to open it from finder. It would not open. Still no sign of the idlk file. But when I went back to open the work copy it opened but now the idlk file popped up in the finder and it continues to do so every time I open any file associated. This idlk file comes up with an icon that says "Locked"
My only question now: Is there a way to unlock this file from whatever it is linking to? Does it make any difference at this point?
I have learned this is a temp file of sorts that prevents changes to the original file. I would like to unlock the file so that it not connected to anything.
I have moved or deleted all files that it might be linking to. I have shut down other computers and hard drives using the same network. The idlk file come up every time. It goes away when I close the file. I have also deleted it while the file is open. I deleted all attempts at creating Book files. I'v been through preferences and checked Assignments. It seems like once you make a copy of a file, the original is always looking for the copy? Or the copy for the original?
So I'm working and making separate files for each chapter so that I can set up a book and have back-up and maybe create a whole new Book file that isn't linked to anything else but maybe that's not necessary.
I've been working with InDesign for a long time and never encountered this phenomenon before.
Thanks again for your responses.
Jim -
Warning while downloading an Excel file from WD ABAP
Hi folks,
In one of requirements, Client wants to download all the data that is appearing on the screen ( WD ABAP Application ) to an Excel with a layout in different manner.
We achieved this with Simple Transformations.
Now the question is while downloading the excel file, the framework/other is throwing an Warning like
" The file you are trying to open, 'info.xls', is in a different format than specified by the extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now? "
Note: All the users of my client are using MS Office 2002 / 2003.
I am using the following code........!
*------ Call Transformation for Excel OUTPUT
CALL TRANSFORMATION ZEXCEL_OUTPUT
SOURCE
t_dates = t_dates
t_info = t_info
RESULT XML l_xml_string.
REPLACE ALL OCCURRENCES OF '<?xml version="1.0" encoding="utf-16"?>' l_xml_string WITH '<?xml version="1.0"?><?mso-application progid="Excel.Sheet"?>'.
**-- Call Function Module for converting string data to XSTRING
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = l_xml_string
mimetype = 'application/xml'
IMPORTING
buffer = l_xml_xstring
EXCEPTIONS
failed = 1
OTHERS = 2.
CALL METHOD cl_wd_runtime_services=>attach_file_to_response
EXPORTING
i_filename = 'info.xml'
i_content = l_xml_xstring
i_mime_type = 'application/vnd.ms-excel'.
With this code I am generating a file of type XML SPREADSHEET 2003. While opening this file I am getting the above message which the user unwanted......
Can any one help me on this -
> How to avoid this warning?
Thanks and Regards,
Aneel Danda
Edited by: danda aneel on Jul 13, 2010 1:43 PMFirstly, Thanks for Your quick Response, Thomas.
Even though what ever may be the file name I am passing either info.xml or Info.xls , In error info.xls is coming.
Kindly provide me an alternative on this XML doesn't seem like it would match the 'application/vnd.ms-excel'.
what is the supported format.?
Similarly, It is not considering the UTF-8 / UTF-16 for xml.........same result is appearing in the output.
Edited by: danda aneel on Jul 14, 2010 7:52 AM -
Getting error while opening Excel document from SharePoint site
Hello All,
I am getting following error while opening Excel document from SharePoint site.
This issue appears when we open Excel document from Windows>> Run using below mentioned command:
Excel.exe "{File Name}"
If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
Thanks,
Amit Bansal
Amit Bansal http://www.oops4you.blogspot.com/Hi Amit Bansal,
Thanks for posting in MSDN forum.
This forum is for developers discussing developing issues involve Excel application.
According to the description, you got an error when you open the document form SharePoint site.
Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
SharePoint 2013 - General Discussions and Questions forum.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thanks for your understanding.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
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 -
Opening Excel Files from DB (blob column)
My project has implemented a WEBUTIL solution to attach files into the database, view the files stored in the database (in a BLOB column), and remove the files stored in the database.
Everything has been running smoothly. We are in final testing and have found a couple of interesting scenarios ...
When a user tries to view an Microsoft Excel 2007 file from our application, the Excel file displays properly (as long as Microsoft Excel isn't already open - outside of our Oracle application). Once the Excel file is viewed, the system will not allow the user back to our application until after the Excel file is closed (we use the start /wait myExcelFile.xls ... command). This works perfectly for us.
The two scenarios we encounter occur when
1.) The user has Microsoft Excel open outside of our application and tries to open an Excel file from within our application, or
2.) The user has the file already open (either from within our application or outside of our application) and then tries to open the file from within our application.
Let me explain a little further because the above two scenarios are interrelated.
When a user has Microsoft Excel open (outside of our application), and then clicks the button to open the Excel file, the system will open the file as another window (within Excel). The system will allow the user to navigate back to our application (where as, if Excel is not open outside of our application, the system will not allow the user to navigate back to our application). Once the user navigates back to our application (while the file is still open), the user can click the button to view the file again. At this point, the user is displayed a WUT-105 error message (I assume b/c the system is trying to open a file that is already open).
I assume the two solutions are the following:
a.) Do not allow a user to open a file that is already open (not sure how to check this from within Forms ?)
b.) Do not allow a user to open an Excel file when another EXCEL process is already running (this will avoid allowing the user to naviagate back to our application)
I don't know if there is a better solution.
Do you experts have any recommendations?
We are using Oracle Application Server 10g R2 (10.1.2.0.2), Oracle Database 10g R2 (10.2), and Oracle Developer 10g (10.1.2.0.2)
I hope this all makes sense.
Thanks,
Mike
Edited by: user639843 on Oct 20, 2008 2:15 PM
Edited by: user639843 on Oct 20, 2008 2:20 PMThank you, Thank you, Thank you!!!!
I believe that will work (adding a sequence number to the end of the filename)!
We do not allow a user to update the file, only view. If a user wants to make a change, they need to remove the existing file (from the database), create a new file (outside of our application), and attach the file in our application (into the database). All updates occur outside of our application - we are not a document authoring system, just a document storage system.
Once again, many thanks on the solution!
Mike -
Error when opening PDF files from SAP.
Hi Gurus
I have posted this question in ABAP Development section also. Please read the below text.
We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
This issue occurs few times a day in Windows Vista.
This issue does not occur in Windows XP.
Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
Environment
SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
Windows Vista Enterprise
Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11.
Please suggest
Thank you
PavanNow I got to capture the screenshot, however not able to attach/upload here but it says:
'Reading Untagged Documents'
lets say i tried to open 6 page document then it said:
'This 6-page document is untagged and must be prepared for reading. While the document is being
analyzed, your assistive technology will not be able to interact with this application. '
then it asked for Reading options
then a checkbox for to confirm 'Always use the settings from the Reading Preferences (Do not show this dialog again)
then 'OK/START' and 'cancel' buttons
It seems, this is the problem with Adobe w.r.t Vista.
thanks
Bhudev
Maybe you are looking for
-
How can I remove apps from 7520 printer?
I added an app, but now I want to remove it, and maybe others. How? This question was solved. View Solution.
-
Error with OPEN DATASET Statement
Hi All, I have a an executable program which downloads data into applcation server using OPEN DATASET statement. Following is my code: OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. IF sy-subrc NE 0 MESSAGE e111 WITH te
-
idm cc 6.7 extension of internet download manager is suddenly disable and blocked in my add on extension ,i cant enable it,how can i bring it back and enable it ?
-
I am unable to sign into the App and iTunes Store.
Hi I recently bought an ipad mini , a few months old . Since yesterday I am unable to sign in to the app and iTunes Store. When I clink on a game link I want to install I am asked for my password and then a pop up appears saying I cannot connect to
-
Validate on allowed character set
Hi, I want to validate the Character set. Means, Now my User Interface taking all characters which are possible through key board like Japanese or Chinese characters. But I want to validate the character set. As per my knowledge , we need to che