cancel
Showing results for 
Search instead for 
Did you mean: 

upload & download files

Former Member
0 Kudos

Hi,

My requirements are as follows:

1.Upload any type of file on to server.

2. Download the same .

Using WD java.

Thanks,

Anumit

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi All,

Still the question is unanswered. We need to upload files from local m/c to DMS by Webdynpro application.

Was anyone implemented this??

Please give me the sol ASAP.

Thanks,

Anumit

Former Member
0 Kudos

Hi,

There shld be some standard BAPI's or RFC to upload file to R3.

Try with..

GUI_UPLOAD , GUI_DOWNLOAD

Regards

Raghu

Former Member
0 Kudos

Hi,

Can anyone provide me end to end (WD to R/3) steps to upload and download files ??

Thanks,

Anumit

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40db4a53-41a9-2910-d4a2-9c28283f...

Uploading and Downloading Files In Web Dynpro Java

/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081...

http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm

Uploading and Downloading Files In Web Dynpro Tables

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982c...

Some more links regarding Uploading and DownLoading Files

Hope this helps you.....

Former Member
0 Kudos

Hi Saleem,

I want to upload files into sap R/3 system.

Thanks,

Anumit

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks to all for quick response.

I forgot to write the following;

I want to upload/download the file into R/3 system.

Thanks,

Anumit

Former Member
0 Kudos

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

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e0812...

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a...

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081...

http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm

Uploading and Downloading Files In Web Dynpro Tables

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982c...

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