on 2006 Feb 08 11:10 PM
I greatly appreciate feedback if anyone has an insight on question below.
In some R3 transactions there is a download button that when clicked it brings up file system explorer that allows a user to choose a file. When a file is chosen, it is saved on R3 as attachment. Next if the user clicks on upload button it shows the list of attachments and when choosing an attachment it launches that file. For example if the file selected is of type text, it launches notepad displaying the text file..
Does anyone know how to accomplish this task from WebDynPro?
I think there must be a BAPI written to download or upload a file to R3 and then some WebDynPro RFC modeling and code to get/send the binary file to R3 and launch it. In case of an upload but do not know how to do it quite yet specially the Bapi side.
Thanks and Regards,
Fereidoon
Thank you everyone for the hints. File upload/download I believe only saves a file within your WebDynPro application. In my case I need to save the file in R3 and retrive it from R3.
What Valery is saying (WebDynPro can not launch files) could be a problem. The only thing that comes to my mind is an RFC model that exceutes Bapi call to do the task. The draw back will be SapGui needs to be installed locally. I am surprised that WebDynPro does not address this problem better as I see it more common that it seems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
FileDownload makes a binary stream to be available to us as a file. I assume we can write RFC's so read data from R/3 and give the output as binary stream.. This you can read from a WD application and link to FileDownload. The same way .. you have to go for the help of a ABAP program which will take a input as binary stream and write the file in R/3.
Will it suit your scenario ?
Regards
Bharathwaj
Hi,
Does anyone know how to accomplish this task from WebDynPro?
Yes. This might not fit your specs exactly.. But will surely accomplish the task..
Check FileDownload and FileUpload UI Elements in this link.
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/frameset.htm">UI elements Library</a>
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo,
there is a special Web Dynpro Java tutorial dealing with Uploading and Downloading files.
Regards, Bertram
Fereidoon,
In WD (browser client) download is possible, embedding for ceratin types (PDF, MS Office etc) possible as well. Launching external programs is not available
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.