Download functionality in  WebDynpro

Hello,
My WebDynpro application must support download functionality. I have implemented this with the help of FileDownload component. So the user can start Webdynpro application in browser and download some xml files.
But additionally it must be possible to access the download of file directly by URL: for example
<i>URL download = new URL(urlToWebDynpro);</i>
// get file
Is it possible to do with WebDynpro?
Thanks in advance
With best regards
Belenki Michael

Hello Michael,
I can think of no way how you could make your Web Dynpro application act like a servlet and return a file instead of an HTML page containing a UI.
Inside your Web Dynpro application, you can find out a URL that can be used from outside to download a certain file, even one that is stored in a context attribute. But that would be of limited use because your other Java application on the outside has no good way to learn that URL.
Thus I agree with Stefan that it sounds more promising to directly program a servlet in this case.
Best regards,
     Thomas

Similar Messages

  • Download functionality in EXCEL and PDF format to the  Webdynpro iView

    Hi Expert,
                      I am using NW 7.0 ehp1 sp3. I developed some Webdynpro RFC model application for the product catalog of the material related data.
    Now my requirement is to provide the download functionality in EXCEL and PDF format to all of these Webdynpro (java) iView.
    How we can achieve this requirement? In which part of the webdynpro application we have to write the code?
    Someone can help me very clearly in steps to achieve this?
    Thanks,
    Kundan

    Hi,
    I don't think it is possible to redirect the html stream of the Web Dynpro iView to a PDF / Excel document, since it essentially would mean you have to call the Web Dynpro application again, maintaining the state and context of the iview itself
    However, using (for instance) the JExcelApi (Excel) or iText (PDF) you could create documents using the data displayed in your Web Dynpro iView, which has the added benefit you could design and layout your PDF / Excel documents in a more suitable layout for printing (most WD applications look horrible when printed)
    Cheers,
    Robin

  • How to replace obsolete download function module in ECC6.0?

    Hi Experts,
    How to replace obsolete download function module in ECC6.0?
    Thanks,
    Adi.

    Hi,
    DOWNLOAD is obsolete FM in ECC 6. To get the same functionality , we need to use
    CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG  method (It provides the File selection feature)
    and
    GUI_DOWNLOAD function module.(It downloads the internal table from program to presentation server)
    Please see the example below:
    Example:
    *CALL FUNCTION 'DOWNLOAD'
              EXPORTING
                   FILENAME            = p_filename
                   FILETYPE            = ‘DAT’
              TABLES
                   DATA_TAB            = T_DOWNL
              EXCEPTIONS
                   INVALID_FILESIZE    = 1
                   INVALID_TABLE_WIDTH = 2
                   INVALID_TYPE        = 3
                   NO_BATCH            = 4
                   UNKNOWN_ERROR       = 5
                   OTHERS              = 6.
    *End of deletion CH01-
    Replacement Method for above code:
    DATA: l_filename    TYPE string,
           l_filen       TYPE string,
           l_path        TYPE string,
           l_fullpath    TYPE string,
           l_usr_act     TYPE I.
    l_filename = P_filename.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        DEFAULT_FILE_NAME    = l_filename
      CHANGING
        FILENAME             = l_filen
        PATH                 = l_path
        FULLPATH             = l_fullpath
        USER_ACTION          = l_usr_act
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF sy-subrc = 0
          AND l_usr_act <>
          CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = l_fullpath
       FILETYPE                        = 'DAT'
      TABLES
        DATA_TAB                        = T_DOWNL
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.

  • Urgent : file upload / download functionality in oracle portal page

    Hi friends
    I am new to portal development and am working on oracle portal 9i rel2 . I need to know how to put the file upload and download functionality in any page. the functionality given in oracle portal user guide is not user friendly (i.e in the content area add item of type file" ) .... i need to now is their any way to achieve the simple , one button click upload download functionality ..like we do in yahoo mails etc.
    any help will be highly appreciated.
    regards
    Dheeraj

    Well, I do not know the exact location of the document, however you can find the document to do this in modplsql User Guide ..(File Upload/Download).
    I am pasting some hint:
    e.g.
    Create an html form..code something like this:
    <html>
    <head>
    <title>test upload</title>
    </head>
    <body>
    <FORM      enctype="multipart/form-data"
    action="pls/mydad/write_info"
    method="POST">
    <p>Author's Name:<INPUT type="text" name="who">
    <p>Description:<INPUT type="text" name="description"><br>
    <p>File to upload:<INPUT type="file" name="file"><br>
    <p><INPUT type="submit">
    </FORM>
    </body>
    </html>
    Create a table
    (who varchar2(..).
    description varchar2(..),
    file varchar2(..));
    Your procedure something like this:
    procedure write_info (
    who in varchar2,
    description in varchar2,
    file in varchar2) as
    begin
    insert into myTable values (who, description, file);
    htp.htmlopen;
    htp.headopen;
    htp.title('File Uploaded');
    htp.headclose;
    htp.bodyopen;
    htp.header(1, 'Upload Status');
    htp.print('Uploaded ' || file || ' successfully');
    htp.bodyclose;
    htp.htmlclose;
    end;
    You should be able to download/access the file using the following URL format:
    http://<host>:<port>/pls/<dad>/docs/<file_name>
    Where file name is = Look for the value in the "myTable" > file.
    Do tell how you get on this.
    Thanx,
    Chetan.

  • The download function is not working....!! When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads...

    The download function is not working....!! I don't use any add-ons like idm or dap,etc.... When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads... I am currently using Firefox 7.0.1....... Nothing is being downloaded, and I am forced to use IE8 for everything... I even tried re-installing, but doesn't help... I am using Windows 7

    TonyE is correct the plugin version comes with Adobe's Reader X.
    The failure in communication is two parted:
    1. Reader X is not Acrobat (Mozilla Plugin Checker)
    2. Acrobat is not mentioned in the Reader X download Page (Adobe)
    therefore confused clients.
    For readers '''CAUTION''' check the minimum requirements for Reader X.
    Here: [http://www.adobe.com/products/reader/tech-specs.html Adobe's Reader X requirements link]
    Do not waste the time to download (80+MB and Site is Slow) if your machine does not have the resources to execute it. ie. '''aging''' Hardware
    Unfortunately the Adobe DLM only checks the requirements after it has
    downloaded BEFORE the install occurs.
    This is '''very expensive''' for both the sender and receiver
    It might be why they called it READER X and READER 9 will not sense an update...
    Another Software company pushing Hardware antiquity...

  • PO Upload and Download functionality

    Hello All,
    We are using SRM_SERVER 5, Version 4, SP 5 and have configured Standalone scenairo.
    Need to know if Download and Uplaod functionality is applicable for Purchase orders with in SRM version 4. These options are available with Contracts and Bid invitations but not for Purchase orders.
    Any help will be appreciated.
    Regards,
    Upendra.

    Hi Upendra,
    You can do a downgrade of the upload/download functionality from SRM 5. We did it at our client and works perfectly.
    Kind Regards,
    Tom

  • Problem using in download function

    Dear Experts,
    I am using download function to download values from application server to desktop.
    After downloading the output is like the foollowing.
    0    temp     30    bar(kg)
    But now the user requirement is I have to print it like the following.
    0/temp/30/bar(kg)
    I have to delete the space and have to give '/' sign.
    Please help me to fix this.
    Thanks in Advance
    Ansuman Parhi

    Hi,
      THis is a simple conversion.
       First Upload file from application server using dataset concept and Store Internal table of Char field like
       Begin of itab occurs 0,
         Data(200) type c,
       End of itab .
       then Split that into some fields  space
      Loop at itab.
          Split itab-data at  ' ' into  fields,
          Concatenate fields into itab-data seperated by '/'
          Modify Itab.
      endloop.
      Then download this.

  • Uploading/Downloading Files in Webdynpro ABAP

    Hello,
    I am trying to Upload/Download Files in Webdynpro ABAP using the following link:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
    It works fine and the file(either .doc or .txt) gets uploaded successfully. But when I download it ,it is not able to retrieve the contents.
    May be the SAP ECC system does not work with Microsoft Office 2007.
    Please help.
    Thanks.

    I guess it has problem with .doc extension but
      .txt you can read
    and also .docx and .xlsx will provide the content
    it is only this .doc and .xls which will create problem.
    e.g. .docx after downloading will give one .zip file.
    change its extension to .doc or .docx. the content will be there.
    thanks
    sarbjeet singh.

  • Uploading and downloading files in webdynpro abap

    how to up load axl file and download file in webdynpro abap application .

    Hello Pradeep,
    you might see the following documentation for [Download|http://help.sap.com/saphelp_nw70/helpdata/EN/09/a5884121a41c09e10000000a155106/frameset.htm] and [Upload|http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm] containing also names of Web Dynpro Components as reference.
    Best regards,
      Andreas

  • Bridge CS6 download function freezes.

    What is causing the Bridge download function in my CS 6 to freeze up?  Bridge in my CS 5 continues to work properly.  How to resolve?

    No experience with network nor Windows but Bridge CS6 changed to 64 bit and also changed its database from MySQL to SQLite (and I don't know anything about this technical stuff myself I'm afraid).
    Did you already used the advanced Find option in the edit menu (cmd + F) and inhere selected the parent folder on your source and included both options to include all subfolders and non-indexed files?
    This first time may take long but after finished indexing it should work faster.

  • Add "resume download" function to my program

    Hi,my program is more complete now,and now I want to add the resume download function,I've search on net,and here but I haven't found nothing.I use my own protocol(see this to read the source: http://forum.java.sun.com/thread.jspa?threadID=5220335 ).
    I think that I've use the byte buffer...or no?Boh...
    Can u help me?Thanks to everyone!!!

    ChuckBing wrote:
    What "net" were you searching on? The first few hits here are what you are asking about.
    http://www.google.com/search?q=java+resumable+download
    There they are.
    You can also trying searching this forum's old threads for something on the topic.
    Edited by: Masterkeedu on Oct 18, 2007 9:47 AM

  • Download function module is obsolute

    How to handle importing parameters of Download Function module in unicode conversion.
    If i am converting my SAP from Non unicode to unicode environment how should i handle the importing parameters od download Function module in Cl_gui_frontend_services=> gui_download because there is only one importing paramter in that , where as in download function module i have 3 importing parameters

    Hi,
    Please see the below code .
    Function module u2018DOWNLOADu2019
          CALL FUNCTION 'DOWNLOAD'
            EXPORTING
              filename = p_file
              filetype = 'WK1'
            TABLES
              data_tab = i_table.
    would be replaced with:
    data: gd_file type string.
    DATA: ld_filename TYPE string,
          ld_path TYPE string,
          ld_fullpath TYPE string,
          ld_result TYPE i.
    types: t_uctable like line of i_table.
    data:  it_uctable type standard table of t_uctable.
      gd_file = p_file.
      shift gd_file RIGHT DELETING TRAILING '\'.
      shift gd_file RIGHT DELETING TRAILING '/'.
      shift gd_file left DELETING LEADING space.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          DEFAULT_EXTENSION = 'WK1'
          default_file_name = gd_file
          INITIAL_DIRECTORY = gd_file
        CHANGING
          filename          = ld_filename
          path              = ld_path
          fullpath          = ld_fullpath
          user_action       = ld_result.
      check ld_result eq 0.
      gd_file = ld_fullpath.
      gd_file = p_file.
      it_uctable[] = i_table[].
      CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename = gd_file
        filetype = 'ASC' " DAT,WK1
        Append   = ' '   "if mode = A then this would be X
      CHANGING
        data_tab = it_uctable
      EXCEPTIONS
        OTHERS   = 1.

  • Print Function in webDynpro

    Dear VS and All
    Pls guide me how to take print in webdynpro
    Send me the code one by one i.e From the scratch.
    B'cos i am new to webDynpro.
    So for i didn't get clear idea.
    Regrads
    Dhinakar

    Hi,
    Implementing print in Webdynpro is possible.Please have a look at the following thread
    Re: How to start the Print function in webdynpro
    Regards,
    Vijith

  • Download function module

    Hi all,
    My requirement is to replace download function module with cl_gui_frontend_services=>file_save_dialog.
    When i give the window title it is not getting reflected in the save dialog box.how am i to get it ?
    thanks in advance.

    class cl_gui_frontend_services definition load.
    <b>data : l_title type string value 'FILE SAVE',</b>
           l_fname type string,
           l_path type string,
           l_fpath type string,
           l_enc type abap_bool value 'X',
           l_ini type string value 'C:\',
           l_usr type i ,
           l_dname type string . " value 'C:\abc.xls'.
    data :begin of idata_tab occurs 10,
          a1 type c value 'A',
          b1 type c value 'B',
          c1 type c value 'C',
          end of idata_tab.
    move p_fname to l_dname.
    call method cl_gui_frontend_services=>file_save_dialog
       exporting
         <b>window_title = l_title</b>
         default_file_name =  l_dname
         with_encoding   = l_enc
        INITIAL_DIRECTORY = L_INI
       changing
          filename = l_fname
          path     = l_path
          fullpath = l_fpath
          user_action = l_usr
       exceptions
          cntl_error = 1
          error_no_gui = 2
          not_supported_by_gui = 3 .

  • How to create download function in JSP?

    Can I know how to make a download function in JSP? Any sample?. Thank You very much!

    http://forum.java.sun.com/thread.jspa?threadID=5312541&tstart=0
    Sorry but whining about it in duplicate threads doesn't help.
    HELP DENIED!

Maybe you are looking for

  • BIS Contact/Calendar Sync Broken and Unreliable

    I'm a Google Apps reseller in Canada.  Recently, making Blackberrys play nice using BIS has been an absolute horror story.  A quick breakdown of the recent history of the Blackberry: -Originally, did not support any sync of contacts and calendars nat

  • WAD - Export to Excel: Information from Web Item "FILTER_PANE_ITEM"

    Hi all In a report header I would like to display all the restrictions (filters) that have been placed on a query. I do this by adding a FILTER_PANE_ITEM in the web application. I works fine in the IE: In the top of the report all restrictions are di

  • Classical report printout

    Hi,    I created a classical report in that the output which display  i want to take a printout.here i my case if i give print it is not taking.even i tryed in the SP01 it created a spool request only i cannot take the printout.so hoe to solve this i

  • Configure FTPS sender and reciver communication channel.

    Good Morning, I am reading blog for my FTPS for secure connection: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/964f67ec-0701-0010-bd88-f995abf4e1fc Please tell me the concept of client and server certificates server certificat

  • Host Adapter DOCUMENT_WRITE_PREPROCESS Event, not enough time

    Dear all I want to do some stuff before the document saves. I use the Host Adapter with Illustrator When I register a handler: AIEventAdapter.getInstance().addEventListener(AIEvent.DOCUMENT_WRITE_PREPROCESS,handler); the function gets called when sav