on 06-24-2009 6:45 AM
Hi all,
I am new to webdynpro for abap....
Can anyone tell me how to upload the image and how to down load the same image.
thanks,
viswa
Hi,
You can use the FileUpload UI element in your view. The 'Data' property of the Fileupload UI element can be binded to a context attribute say 'Data' of type XSTRING. Once the user browses for a file you can use a button say 'Upload' in your view, on clicking the button in the view you can read the value of the attribute 'Data'(Which will contain the content of the file) and save it in your table or in the repository.
The filedownload UI element has a OnClick event. Onclick you should read the same file content in XSTRING format from your table/repository and then call the method cl_wd_runtime_services=>attach_file_to_response to save it to disk.
I hope this answers your question.
Best Regards,
Viqar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai powerstar,
please check this link it help u lot.
http://www.google.co.in/search?hl=en&q=howtouploadanddownloadpictureinwebdynproabap&meta=&rlz=1R2GGLT_enIN333&aq=f&oq=
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you need to first bring the image into your sap system.
that you can achieve by right clicking you application and then clicking on create mime object.
check out this link too:
then you have to insert an image ui element in your view.
check out the link:
http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
according to you req i think you need to upload and download the image file in your system using a button. so for this you can follow the below link:
hope this will surely help you!!!
thanks & regards,
punit raval.
Edited by: punit raval on Jun 24, 2009 9:56 AM
hi,
you can use the File upload UI Element in the same way as shown in that document.
the file upload and file download UI element allows you to upload and download several different format files.
check this link below:
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
hope this will surely help you!!!
Thanks & Regards,
Punit Raval.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.