File download in CRM WEB UI

Hi ,
I am using web ui .
I have a requirement of converting an internal table to xml file & download it to application server .
I have converted the file to xml but not able to save the file to application server  .I am currently using CL_CRM_FRONTEND_SERVICES=>GUI_DOWNLOAD method to download on application server  , but it is throwing an exception of "flush" but at the same time if i am calling this method from a report through SE38, it is working fine .
Is there any other method that is to be used for CRM WEB UI to download a file on desktop / application server .
Manish

GUI DOWNLOAD will not work in WebClient, as it is a completely different technology. You will have to use some kind of technology that uses HTTP. Just like in the Internet.
When you have got your content ready, maybe it is an option for you to transform it to XSTRING. There are some function modules in FM Group SCMS_CONV. Once you have got the XSTRING you can set it on a response object of class CL_HTTP_RESPONSE. Create a new one.
Now declare yourself an URL. In your viewcontroller you have got access to the variable RUNTIME.
concatenate runtime->application_url '/234234234.xml' into lv_url'
when you have both you can upload the content to the server cache:
cl_http_server=>server_cache_upload( url = lv_url response = lr_response ).
now you can access the content under the created URL lv_url.
On the BSP page you could for instance do this using javascript:
window.open( lv_url ).
This should open a dialog for the user with save option.
cheers Carsten

Similar Messages

  • How to open a file browser in CRM Web UI without THTMLB tag "fileUpload"

    Hello,
    can someone help me solving this question:
    How can I open a file browser in CRM Web UI without using the THTMLB tag "fileUpload"?
    The THTMLB tag has the disadvantage that after having uploaded the file the file name disappears.
    Thanks a lot.
    Best regards,
    Michael.

    Hello, Michael.
    I've got what you mean now. Seems that this is a standard behaviour of this tag. And it has a background which I can only guess - you press Upload, upload is done, field is emptied shown that it is ready to upload next file.
    I suppose you should handle such situation in your onUpload method. And set some indicator (text field below the fileupload tag, icon somewhere near, disabling fileUpload's bttons etc.) on the screen accordingly.
    For instance, your button "Start import" at the bottom of the window already knows about it (it switches from disabled to enabled when you press "Upload").

  • Securing file download with standard web security and ssl

    Hi,
    I want to put some files for download in my webapp. At the same time, I want to protect these files using standard servlet security and ssl. So I added <security-constraint> in my web.xml and configured tomcat to allow SSL connection. Now I got the files protected as I expected. When I try to access the file directly from browser, tomcat shows me the login page. However, after correct login, I.E. pops up an error saying something like "Internet Explorer cannot download XXX from XXX. The file could not be written to the cache.". The log file showed the following exception:
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset by peer: socket write error
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1154)
         at com.sun.net.ssl.internal.ssl.AppInputStream.available(AppInputStream.java:40)
         at org.apache.tomcat.util.net.TcpConnection.shutdownInput(TcpConnection.java:90)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:752)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset by peer: socket write error
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1443)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1407)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:64)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
         at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:400)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:961)
         at org.apache.coyote.Response.action(Response.java:182)
         at org.apache.coyote.Response.finish(Response.java:304)
         at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
         at org.apache.catalina.connector.Response.finishResponse(Response.java:473)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         ... 4 more
    Caused by: java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:283)
         at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:272)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
         ... 15 more
    I've tried separating concerns, for example protect files but not require SSL, and enable SSL but do not protect files. Both works respectively but not together. I also tried using a download4j's DownloadServlet. Still doesn't work.
    Have any of you encouter the same situation? If so, could you enlight me what I did wrong? It maybe just a simple SSL configuration or something. Thanks in advance!
    Jack

    My environment setup is:
    JDK 1.5.01
    Tomcat 5.5.7
    For downloading files, I just use plain old <a href> method. I simply right-click the link and choose "save target as...".
    Thanks,
    Jack

  • File DownLoad from R/3 to Local Disk through Web Dynpro

    Hi,
    I have a zebra print spool, to be saved in the local disk. For this, I have an RFC which will store the document in Portal Server KM folder and will give the file name for web dynpro app. The web dynpro app will search the KM Directory, and will enable the user to save the file on the local disk.
    Is it right approach? Is there any other approaches which would be efficient. BTW, I have files from 4k to 12k size. Can I directly attach it to the context variable and store it directly onto the local disk.
    I am running Netweaver2004 SP16. I cant use Input stream, does this affect the performance?.
    Thanks, I appreciate your time.

    Hi Raj,
    you have the name and the full path of the file you can access the file through FILE IO as the file is on portal server only and then you can use the File Download UI in web dynpro to download the file
    Ninad

  • Can not open file download prompt in portal web app.

    Hi folks,
    I am migrating existing Struts app into portal web app and currently stuck on the following problem.
    In existing app, Struts action calls servlet that generates excel file, sets response headers:
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition","attachment;filename=thename.csv");
    that brings up "file download" prompt window.
    In portal app, the same code writes excel file content into browser window instead of the prompt.
    Has anyone had to deal with similar problem? Any help will be greatly appreciated.
    Alex.
    Version of portal used is 8.1 SP5
    Struts - 1.1

    Problem is resolved. For those who might be interested - specifying redirect=true on forward to servlet did the trick.

  • I am a new iPhone 4s owner. I have a tone in iTunes that I downloaded from the web as a m4r file. Why won't it sync to my iPhone so I can set it as a ringtone.

    I am a new iPhone 4s owner. I have a tone in iTunes that I downloaded from the web as a m4r file. Why won't it sync to my iPhone so I can set it as a ringtone?
    Lois

    Yes, the tone is available and checked in iTunes under the Tones library.
    Yes, it is also listed under the Tones tab for my iPhone, but it is grayed out.
    Yes, tones are selected under "sources" in General Preferences, along with everything else.
    SyncTones was NOT selected under the Tones tab for my iPhone. I did so and it synced.
    Thanks for your help!
    Lois

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • Web browsing and file downloads stops

    Hi Guys,
    I've been looking at a few posts but not seen the answer yet.  I'd be grateful if someone could help me out or point me in the right direction.
    I had BT Infinity 2 installed with the HH5 on Friday.  I have problems with browsing web pages.  When I click a link most of the time the page loads quickly without issue, but then occassionally the page wont load and the page will 'stick'.  It sometimes take 30-60 seconds for the page to fully load, or there is a timeout.  Usually, by reloading the page it resolves this and the page loads really quickly again but within a minute you will have the same issue.
    Also, I have downloaded a few files, from 300mb to 1gb.  Just like web browsing, the file download will stop and the only way to resume the download is to reboot the HH5.  I had to reboot the HH5 five times to download the full 1gb file.  I checked the connection and it's not dropping so I wonder why the connection just stops or sticks for a while.
    I know it can take a while for the connection to settle down but it shouldn't stop working.
    Am hoping someone could help me out with this as i need this for my business.
    With thanks,

    I would leave it alone for the next few days and do not keep restarting the Homehub. This will cause DLM (Dynamic Line Management) to kick in and lower your speeds because it will interpret the restarts as a fault. It is normal for the speeds to fluctuate during the training period. If things do not improve after the ten day training period post back for more advice.

  • Web Pages and file download corruption Cisco VPN

    We have a problem our users are having. Clients are having problems using Cisco 5.06 VPN along with Internet Explorer. Quite often web pages hang or load incorrectly or unformatted. Also links to documents or downloads are downloaded unusable (i.e. a PDF file that is corrupt). If you refresh the page or retry the download it will work eventually. None of these problems exist while they are directly on the corporate network. (Win7 32-bit OS)
    Our standard corporate VPN installation package uses Cisco VPN 5.0.06.0160 which installs version 3.22.4.17992 of DNE (Deterministic Network Enhancer), It also installs the DNE Update version 4.9.1.1837. This combination works correctly in our standard corporate build. The problem exists in two of non-standard builds on a couple different hardware models.
    If I uninstall the DNE update and the VPN client and just install the VPN client by itself without the DNE Update (which leaves the client at 3.22.4.17992 for DNE) the problem goes away and the web pages load correctly and the files download properly.
    I have tried the latest DNE, and updates to the NIC driver without success. Any suggestions or logic to why the newer versions of DNE will not work. The hardware we are using are high end HP and Dell Mobile workstations that are only about a year old. We have a problem our users are having. Clients are having problems using Cisco 5.06 VPN along with Internet Explorer. Quite often web pages hang or load incorrectly or unformatted. Also links to documents or downloads are downloaded unusable (i.e. a PDF file that is corrupt). If you refresh the page or retry the download it will work eventually. None of these problems exist while they are directly on the corporate network. (Win7 32-bit OS)
    Our standard corporate VPN installation package uses Cisco VPN 5.0.06.0160 which installs version 3.22.4.17992 of DNE (Deterministic Network Enhancer), It also installs the DNE Update version 4.9.1.1837. This combination works correctly in our standard corporate build. The problem exists in two of non-standard builds on a couple different hardware models.
    If I uninstall the DNE update and the VPN client and just install the VPN client by itself without the DNE Update (which leaves the client at 3.22.4.17992 for DNE) the problem goes away and the web pages load correctly and the files download properly.
    I have tried the latest DNE, and updates to the NIC driver without success. Any suggestions or logic to why the newer versions of DNE will not work. The hardware we are using are high end HP and Dell Mobile workstations that are only about a year old.

    I would leave it alone for the next few days and do not keep restarting the Homehub. This will cause DLM (Dynamic Line Management) to kick in and lower your speeds because it will interpret the restarts as a fault. It is normal for the speeds to fluctuate during the training period. If things do not improve after the ten day training period post back for more advice.

  • Why do complete web pages download as a file and a folder on macs as opposed to the single file downloads in safari?

    Is it necessary to have both a folder full of files and a individual file appear whenever I want to download a complete web page in firefox. This is not the case in safari. It is inconvenient to have to keep two icons for every web page, and if I put the file icon into the folder of other files that download with each web page it is not a simple click of an icon to open the page offline. I have to go into the folder and find the file icon. Am I missing some setting to make this work as easily in firefox as it does in safari? Thanks.

    Safari use webarchive format. http://en.wikipedia.org/wiki/Webarchive
    Firefox doesn't include a similar feature, but a feature like that can be added via either the MAF extension or the UnMHT extension. <br />
    https://addons.mozilla.org/en-US/firefox/addon/mozilla-archive-format/?src=search <br />
    https://addons.mozilla.org/en-US/firefox/addon/unmht/?src=search

  • CRM 2015 Installing fails: Action MicrosoftCrm.Setup.Server.BackupUpgradeDataAction Failed Could not find the file 'C:\intpub\wwwroot\web.config'.

    I don't have many issues... but when I do it is usually a bad one.   
    I took my CRM 2013 install running on Server 2008 and did an upgrade to server 2012 R2.  No issues.   All updates applied.  From there I run the CRM 2015 installer to run the upgrade..... Yes, running as admin, and after the "Pre Flight
    Check"  everything is good.   From there the install starts to copy files.....  I get this error. 
    00:16:43|   Info| CrmAction execution time; BackupUpgradeDataAction; 00:00:03.0020974
    00:16:43|  Error| System.Exception: Action Microsoft.Crm.Setup.Server.BackupUpgradeDataAction failed. ---> System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\web.config'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
       at Microsoft.Crm.Setup.Server.BackupUpgradeDataAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    I am finding no references to this issue any where.   Looking for suggestions.   It appears that this file does not actually exist.   Somewhere during the upgrade maybe it got deleted.     I have put an old web.config file in this
    path, rebooted everything and still get the same error.
    Looking for some suggestions.
    Pierre Hulsebus

    Sounds like a problem with the information about where the Crm website is installed. Crm uses 2 registry values 'website' and 'websitepath' under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM. Do these look correct, and is the Crm website under c:\inetpub\wwwroot,
    or elsewhere ?
    The last part of the 'website' value is the website id, which you can see in IIS Manager
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • I downloaded the latest Adobe Reader when prompted. Since then I cannot use Safari File Print to print web pages - the printer dialogue window opens but the page is blank. Also, when I try to use the safari Help button,the dialogue box is blank.

    I downloaded the latest Adobe Reader update when prompted. Since then I cannot use Safari>File>Print to print web pages - the printer dialogue window opens, but the page remains blank. Also when I try to use the Safari Help button, the dialogue box opens but remains infuriatingly blank. Can anyone help me to solve this problem?

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I am having problems downloading files from the web. After a number of files are downloaded, the system become sluggish, and then hangs. I traced the problem to the download history file: downloads.sqlite.

    After downloading a number of 1.0 MB files, the system became very sluggish, and I started to get lots of (Not Responding) messages when trying to download or just use Firefox for browsing. Using Performance Monitor, I observed that the Firefox executable was growing larger and larger - up to as large as 1.2 GB on a system with 2.0 GB memory. Page faults were off the chart.
    Looking for a similar problem, I found one that discussed the downloads.sqlite file becoming corrupted. I first noticed that this file was over 600 MB in size, so I deleted it. I then downloaded additional files, and observed that the new downloads.sqlite file would increase in size by about 150% of the size of each file that was downloaded. Once it would get up to 500 MB in size, the system started slowing down again.
    I don't know the purpose of this file, but it appears that it keeps a full copy of every file downloaded, which may be the function of a download history file, but it does not seem correct that the file should grow in size without limit, and thus impact the system.
    I would also appear that the Firefox executable is trying to read the entire contents of this file each time a new file is downloaded, which does not seem right.
    Temporary fix is to periodically delete the downloads.sqlite file when it gets too large and starts impacting performance.. Apparently it is smart enough to open a new file if the old one is not found. I am not sure what the correct behavior for this file should be. Apparently is does not re-initialize when a new Firefox session is initiated.
    Please feel free to contact me if more information is desired. I'm not sure what details you might need to troubleshoot this type of problem.

    Hi Katy, and a warm welcome to the forums!
    What is the exact name of the file?
    Is it aim.bin?
    Which requires either Stuffit Expander, or the Unarchiver to deflate.
    http://www.apple.com/downloads/macosx/systemdiskutilities/theunarchiver.html

Maybe you are looking for

  • Closing an open path

    I have a path that, although it looks closed, is open so does not fill correctly. How do I close it? I'm using FW8 on OS X. Thanks, Jake. P.S. Apologies if I'm being dumb and have missed something obvious!

  • [SOLVED] No sound in browser

    Hi everyone! I recently moved from Ubuntu to Arch (Yeah!). Everything was fine, the installation was quite easy and I found everything I needed with on the official repos and AUR. I only have one major problem: There is absolutely no sound in my brow

  • Query Functionalities affected after Java patch application 20

    Hi , We applied Java Patch 20 to our Development System.After this application we are getting Error in running the Bookmarks,error while creating complex formula and the functionalities like Back to Start,Back one Navigational Step are not working pr

  • Epson C86 won't print Black Economy Print Settings for Excel spreadsheet

    Re: Epson C86 MS Excel 2004 for Mac Version 11.5.5 When I try to print an Excel spreadsheet using the Epson C86 advanced printer setting of black economy, the C86 will not print economy, it prints standard black. All other apps, such as MS Word, Safa

  • Selection of transport service provider in SAP APO

    Hi For each transportation lane there will be 4 transport service providers in SAP APO SNP,customer want high transportation cost service provider to be selected for planning.kindly advise on this