Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to upload pdf file to Application server

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

Former Member
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question