cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload pdf file to Application server

Former Member
0 Kudos

Hi,

I am trying to upload PDF file from presentation server to application server using WD ABAP , For this i am GUI_UPLOAD and ARCHIVFILE_CLIENT_TO_SERVER function modules but function modules are showing errors when uploading file

but same function modules are working fine in normal programming method.

I am getting below errors:

when i used GUI_UPLOAD : Exception condition "NOT_SUPPORTED_BY_GUI" raised.

when i used ARCHIVFILE_CLIENT_TO_SERVER :

RFC server sapftp cannot be started - 1: Program no longer started via RFC. No return possi

Please give the code to upload file to application server

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You won't be able to use any SAPGUI based function modules from Web Dynpro becuase there is no connection to the SAPGUI.

Why not just use the Web Dynpro FileUpload UI element. Then once the content is in memory on the application server, you can write it to the file system fo the Application Server using the OPEN DATASET TRANSFER TO DATASET and CLOSE DATASET commands.

Former Member
0 Kudos

Thanks.

saravanakumar_mac
Participant
0 Kudos

Hi Thomas,

My requirement is KM content image need to display in interactive form using WDA.

And Image need to upload into KM content using WDA application.

Need ur help.

Answers (1)

Answers (1)

ChrisPaine
Active Contributor
0 Kudos

Hi Rahki,

if you search the forum you will find responses to the gui upload issue - the main point is that you are not able to use logic which depends on the GUI framework within Web Dynpro, instead you have to use WD components like the FileUpload UI element.

It is part of the forum rules to search for answers before posting, please do have a quick search - even searching for "[NOT_SUPPORTED_BY_GUI|http://www.sdn.sap.com/irj/scn/advancedsearch?query=not_supported_by_gui#sdn_content_category_value_forums]" should direct you to multiple other posts where others have had the same issue.

Good luck in finding these posts, I hope you solve your issue soon and next time please search before posting.

Thanks,

Chris