on 07-23-2009 10:15 AM
Hi,
My requirements are as follows:
1.Upload any type of file on to server.
2. Download the same .
Using WD java.
Thanks,
Anumit
Hi,
Refer these links, step by step procedure is there.
https://wiki.sdn.sap.com/wiki/display/Snippets/HandlingUPLOAD%2CDOWNLOADfunctionalityin6.0
https://wiki.sdn.sap.com/wiki/display/Snippets/UploadingfilestoSAPServersfromLocalmachinefromwithinSAP+GUI
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There shld be some standard BAPI's or RFC to upload file to R3.
Try with..
GUI_UPLOAD , GUI_DOWNLOAD
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you want to upload a file in some file repository in the server. correct me if i am wrong..
If i am correct you can follow this approach
You can create an HTTP Alias in WAS.
You can create a folder in the desired path in the file system and you can metion an alias name for that path
in Visual composer.
Check this blog how to create an alias name :
/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
Acess this alias name from code and upload your file in desired location
You can do this by uploading and downloading the files from KM
You can check this sample example from SDN
Uploading and Downloading Files In Web Dynpro Java
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
Some more links regarding Uploading and DownLoading Files
Hope this helps you.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anumit
Please look into this blog hope you will get some idea...
/people/ruediger.bachmann/blog/2006/01/07/uploadingdownloading-files-intofrom-sap
Check out this threads
/thread/211145 [original link is broken]
check oout the help also
http://help.sap.com/saphelp_nw04s/helpdata/en/0d/13df3fa510031ee10000000a155106/frameset.htm
Thanks
Tulasi Palnati
Edited by: Tulasi Palnati on Jul 23, 2009 1:47 PM
Hi Anumit
Check this blog link.This link is helpful for you
Hope ur problem will resolve
/people/subramanian.venkateswaran2/blog/2006/10/02/enhanced-file-upload--uploading-and-processing-excel-sheets
Also this blog also give code for how to upload and down load file
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check the following blogs
/people/bertram.ganz/blog/2007/05/25/new-web-dynpro-java-tutorials--uploading-and-downloading-files-in-sap-netweaver-70
/people/subramanian.venkateswaran2/blog/2006/10/02/enhanced-file-upload--uploading-and-processing-excel-sheets
/people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer this links, step by step procedure is there.
/docs/DOC-8061#41 [original link is broken]
Uploading and Downloading Files In Web Dynpro Java
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
Some more links regarding Uploading and DownLoading Files
For uploading use this code
try{
String Upload=wdContext.currentContextElement().getResource().getResourceName();
FileOutputStream fout=new FileOutputStream(new File(upload));
}
catch(Exception e)
{
e.getStackTrace();
}
For download use this code
Create a context attribute and set calculated as true then u will get a getter method,In that u write code like this
IWDInputStream stream = null;
try {
stream = WDResourceFactory.createInputStream(new FileInputStream(new File(<give the location of a file u want to download>));
}
catch (Exception e)
{
e.printStackTrace();
}
return stream;
for open file u set "resource"as Resource type context attribute
Regards,
Sunaina Reddy T
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.