on 07-16-2007 4:01 PM
Hi SDN.
I am want to give same functionality i.e. present in CL_GUI_FRONTEND_SERVICES such as create directory, create folder file etc in a web dyn pro.
Is there any class similar to CL_GUI_FRONTEND_SERVICES for WD4A?
If there no similar class then please tell me the alternative way for solving above problem.
This is would be of great help.
Regards,
Rahul.
To download a file on desktop you can use method of class" cl_wd_runtime_services"
cl_wd_runtime_services=>attach_file_to_response( ). I have provided a code to download a file to desktop.It may help you to gain a good understanding.
call transformation ('ID') source tab = itab_sflight[] result xml xml_out.
CALL FUNCTION 'CRM_IC_XML_STRING2XSTRING'
EXPORTING
INSTRING = xml_out
*
IMPORTING
OUTXSTRING = content.
conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
DATA: lv_filename TYPE string.
* attach the first file
conv_out->convert( exporting data = xml_out IMPORTING buffer = content ).
cl_wd_runtime_services=>attach_file_to_response(
i_filename = 'Sales_order_release.xls'
i_content = content
i_mime_type = 'application/msexcel'
i_in_new_window = i_in_new_window
i_inplace = i_inplace ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WD4A application runs in a Browser where security does not allow a lot of things...
So what you can do is upload or download; no way to execute a command or browse the PC filesystem.
You should find what you are looking for in the following pages:
http://help.sap.com/saphelp_nw04s/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/13/a1764299d76255e10000000a155106/content.htm
Sergio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.