on 11-26-2008 5:23 AM
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
Hi Manish I have similar requirement can u plz share how did you solve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carsten,
Thanks for the reply.
Actually my requirement is that , when user click on a button , in the background i have to convert the internal table into XML file and save it on the application server .
Now i have the part of converting internal table to XSTRING but i am not able to save the file on application server .The solution you have suggested will give an popup for the user to open/save file .
My req is to save the file without this popup , directly to application server.
Please help
Manish
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.