Friday, July 6, 2007
File Locking Problem in Webdynpro ABAP
In the previous days I had been busy with my work which explains why I had been mostly off the blog.
But I have something intresting to share, I have had a problem while downloading a Excel file using Webdynpro ABAP Download link. The error message:
"The file is Locked for editing by another user. Click read only or click notify to open read only"
This caused me to try a lot of things, finally I was able to resolve it using HTTPWatch.
This issue will come up when the file you have sent to the client doesn't go as an attachment. If you have to send it as an attachment set the Behaviour attribute of FileDownload UI element to 'allowSave' by using the dropdown.
Another thing I realized during a discussion was that you should not specify the mime type as 'application/vnd.ms-excel', since this becomes Microsoft Excel specific, instead specify the mime type as 'x-excel/application'.