Skip to Content
avatar image
Former Member

How to upload pdf files

Hi ,

I have a webdynpro application where in the users will be entering some data and they have an option to upload supporting documents.

Request you to guide me on how can i upload the pdf documents from presentation server using webdynpro upload.

How can i store such data and i also have to show the files uploaded as hyuperlinks so that user can click and view them.

Any clue is highly appreciated.

Thanks,

Ajay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 11, 2011 at 12:58 PM

    Hi Ajay,

    You have to use Upload Ui element and Interactive form element.

    Once you click on upload button, the data will store in datasource ( in xstring format ) parameter of upload ui element.

    you have to convert that data into pdf format. Once you converted, the same you have to bind to PDFSOURCE of interactive UI element.

    So now pdf will display .

    If you want some hyper links means,create one more view.. insert the Interactive UI element. and create linktoaction ui element in first view, in that action write code to navigate to that view.

    Its bit complicate, if you follow steps correctly then its easy

    Regards

    Srinvias

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 11, 2011 at 10:24 AM

    Hi Ajay,

    Using FILE_UPLOAD UI element you can upload files..

    Please check this..

    http://help.sap.com/saphelp_ERP2005/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm

    http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP

    Upload PDF file to Webdynpro

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 12, 2011 at 05:27 AM

    Hi ,

    Upload you file thru application server and create a document in DMS for this file so that you can get URL of your file .

    use bapi_document_create to create document in DMS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      Thanks for your valuable inputs.

      Alas we don't have a DMS system to store the attachments.

      I am able to read the pdf file using upload UI element into a Xstring. When i navigate to next screen i need to show the same pdf on click of a button ( no need to store ).

      any clue on how this xstring pdf data can be show in pdf format?

      Many thanks,

      Ajay