Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 24, 2010 at 12:21 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 24, 2010 at 12:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded