Display documents (jpg,doc,tff,ppt,pps,xls,pdf etc) in web dynpro

Hi experts,
                I have a requirement to upload the document of any type (jpg,doc,tff,ppt,pps,xls,pdf etc)  to a Z table (may be in a binary format) in a web dynpro application.
I think this can be achieved through Fileupload view element.
In another  window, I need to display the document based on what is selected in the table row. Which control or method can display any type of document?  As far as I know, the office control view element can only display documents of type (.doc and .xls).
Please provide pointers on this or any example will help me.
Thanks,
AmitJain

Abhimanyu,
              Thanks for the reply. Wonderful it worked like a miracle.
Awarded full points.
Thanks
Code I used in the action:  onactionclick
METHOD onactionclick .
  DATA: content TYPE xstring.
  DATA:  lr_context_view_node          TYPE REF TO if_wd_context_node.
  wd_context->get_attribute(
      EXPORTING
        name =  `PDF`
      IMPORTING
        value = content ).
  CALL METHOD cl_wd_runtime_services=>attach_file_to_response
    EXPORTING
      i_filename      = 'Default_pdf.pdf'
      i_content       =   content
      i_mime_type     =   'pdf'
     i_in_new_window = ABAP_FALSE
     i_inplace       = ABAP_FALSE
ENDMETHOD.
Edited by: Amit Jain on Apr 2, 2009 5:46 PM

Similar Messages

  • Pdf output of web dynpro does not display in cProjects

    Hi,
    We created a custom web dynpro which calls a smartform and gives a pdf output. This pdf output is seen on the cProjects portal under a customized tab.
    The issue is, some users are able to see this pdf output on teh portal without any issues but others cannot view it in their system.
    When the first time the users try to view this they get a prompt for downloading activex from adobe ag and on accepting this they are able to view the pdf. This prompt does not come up for other users and hence they are not able to view the pdf output of the web dynpro.
    I checked the activex control settings in the IE options and they are all enabled. Still I do not get this pop up prompting for activex download.
    Are there any settings in the internet explorer or the system which have to be done to view the pdf on the portal?
    Any thougths on this will be extremely helpful.
    Thanks,
    SImmi
    Edited by: Simmi Balakrishnan on Aug 12, 2008 8:22 PM
    Edited by: Simmi Balakrishnan on Aug 12, 2008 8:24 PM

    Hi Simmi,
    two links might be useful to you:
    My struggles with the Adobe Document Services  
    In this SDN blog, Consultant Achim Hauck provides tips for installing Interactive Forms.
    My struggles with the Adobe Document Services in WAS6.40
    SAP Interactive Forms by Adobe - Configuration Guides
    SAP Interactive Forms by Adobe - Configuration Guides
    Kind regards,
    Angelika

  • Reading any format ( Irrespective of extenstion eg JPEG,XLS,PDF etc)

    Hi,
    I would like to know how to read any file from desktop  irrespective of any extension (.could JPEG,XLS etc ) and
    covert it into binary format and save it to another destination.
    Thanks

    Try method CL_GUI_FRONTEND_SERVICES=>FILE_COPY.
    FYI, I have deleted your other, similar question, please ask each question only once.
    Thomas

  • How to create a new file (doc, ppt or xls) using the secondary click??

    Is there any way to create a new file(text, doc, docx, ppt, pptx, xls or xlsx) using the the secondary click (on the desktop or any folder) just like creating a new folder using secondary click! Please do let me know!

    No. You need the Office applications to create them or another application capable of creating those types of files or at least saving files in those formats.

  • How to attach files like .doc, .xls, .pdf  and so on in Design Editor (WYSIWYG)

    Hi,
    I want to attach files like .doc, .xls, .pdf. etc in my Design editor, instead of importing those files. Is there any way to do that. Please help.
    Thanks,
    Vinay Jaassiel Kankipati
    Technical Writer

    Hi Vinay.
    Would these files be editable and if so, where would they reside? If you want people to be able to edit the files, you need to consider where the files are located. If you link directly to a file in RoboHelp, a local copy is copied into your project as a baggage file. If a user then clicks on the link, the local copy is opened and any edits can not be saved back to the WebHelp's output location. However if you were to create an image (like the ones you used above) and added a hyperlink to the file's location - i.e. on a network drive outside the project, this would enable users to edit and save changes to the original file location. Hope this helps.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • PDF's to Blackberry display "Document Conversion Failed"

    We are on XI 3.1 - Blackberry's are displaying "Document Conversion Failed" when trying to open PDF documents that were emailed from the Business Objects scheduler running Webi reports. These same PDF documents can be viewed on the desktop machines using Outlook. Does anyone know of any missing software or if configuration changes are needed on the Blackeberry?
    Any response would be greatly appreciated.
    Mike
    Edited by: Michael Isaac on Sep 21, 2009 10:09 PM

    Problem is solved after an upgrade to the BES server.
    Mike
    Edited by: Michael Isaac on Oct 13, 2009 5:29 PM

  • How to display pdf in Web Dynpro Page

    Hi Experts,
    I need to display the pdf file in web dynpro page. I am using  Web dynpro 7.1(CE), in that no ui element like Iframe. With Iframe we can display the pdf file in web Dynpro page in 7.0.
    But My problem is how display pdf with out using Iframe.
    Please any one tell how to display with any other UI elements.
    Regards,
    Sunil.

    Hi sunil..
    chk this link..
    <u><b>Pdf</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    <u><b>Adobe</b></u>
    /people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640
    <u><b>Configuration</b></u>
    http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
    <u><b>Adobe Document services</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2
    <u><b>Configuring Guided procedure of Interactive Forms</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
    <u><b>Forum Discussions abt Adobe Document Services</b></u>
    Re: Configuring the Destination URL for the Adobe Document Services
    Hop will this helpful for u..
    Regards,
    GS

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • Using document attribute of caf in web dynpro

    Hie Experts,
    could somebody give me some information how to use the document attribute of caf in my web dynpro model?
    I have created some application and entity services with simple attributes and document attributes.
    I imported the model into the corresponding web dynpro project and I am using them with the generated proxy classes. It's working fine, but I don't know how to use the document attribute.
    If I want to attach a document to an entity service, do I have to upload the file an fill the fields of document node or is there any operation in a proxy class where I can pass an InputStream and it is handled automatically?
    Best regards
    Manuel

    Vitaliano,
    You make a very good point.  And it is probably the way that we will go.  However, my task is to evaluate Web Dynpro and Visual Composer for our needs.  Especially since the graphing capabilities in Web App Designer are limited for our needs.  We will, at some point, have a need to combine warehoused information in BI with real-time data in R/3.  I'm anticipating that this is where Web Dynpro will be useful for us.  Therefore, my questions as stated regarding Web Dynpro.  I just find it strange that none of the SAP documentation elaborates on the topics that I am concerned with, even though tantalizing capability summaries are dangled throughout.
    Thank you.

  • Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application.

    Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application. But on my iPad now there are to application present Docemnt-2 (Free) and Document-2. I am not able to open any existing document using the upgraded version of application. How do I connect all the existing txt,PPT,XLS doccument to the new upgraded Document-2 application and then to edit it on my iPad.

    As suggested I had deleted the free application and did a hard restart the iPad. I have again copied the document using iTunes. But I am not able to edit any document using this app. Document 2 (paid version) supports editing features of the txt/ xls /ppt files. Is there any problem while loading the Document 2 app. If I reload then do I need to purchase again?

  • How do I convert .doc .ppt .xls .pdf to .swf by using flashpaper?

    I heard that FlashPaper can convert some documents to .swf and display them online automatically. Is there any FlashPaper APIs for embedding code in asp.net for free or purchasing it for using.
    I am working to make a website asp.net C# for storing document like .doc .docx .xls .xlsx .pdf and displaying them online. I wonder if I use FlashPaper. I work in field of Education.
    Any help is appreciated and respected.

    Hi Mike M, thanks God you still connect to someone like me ^^.
    There are some websites that I found on Internet:
    http://sach.tailieu.vn/xem-sach/7-thoi-quen-tao-gia-dinh-hanh-phuc.15926.html
    http://www.doko.vn/tai-lieu/nguoi-thong-minh-giai-quyet-van-de-nhu-the-nao-1762242
    http://123doc.vn/document/56819-ke-hoach-thanh-lap-quan-cafe.htm
    They display documents online like I told to you. How can they do?

  • Display BLOB objects (doc, pdf, jpg, etc) in Browser

    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by LP:
    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    <HR></BLOCKQUOTE>
    null

  • How to display.xls, pdf, .doc files in UIImageView within a UIScrollView.

    Hi,
    I am new to iPhone programming. I need some help.
    I want to display .xls, pdf, .doc files in UIImageView within a UIScrollView programtically how can i do this. What is the procedure.
    Pls. provide me a sample application.
    If anyone knows pls. respond it would be of great help for me.
    Thanks in Advance,
    Regards,
    Sreelatha.

    Hi Sreelatha. The best example code for your purpose is the Scrolling sample app I referred to previously. The word Scrolling in that post is a link to the download page. I think that code will answer all your questions about how to init a UIImage, then use it to init a UIImageView, and then position the UIImageView frame in a UIScrollView. Two cases are demostrated: 1) Scrolling horizontally through a series of images; 2) Scrolling both H & V over a single image which is several times larger than the window.
    You might also be interested in the PageControl sample app in case you want to add a page control to your scroll view.
    Reading your last post again... I sure hope we've been discussing images (like jpegs?) in this thread. This isn't about reading and rendering the actual xls, pdf and doc files, is it?? Of course the iPhone handles html beautifully, so for example, an html representation of a doc file would play nicely. But in that case you'd want a UIWebView, not a UIImageView.

  • SAP Portal Display Documents is hanging with Null Pointer Exception

    Hi I am having problems with an iview from the products section of SAP standard iviews
    In my portal page I have the following three iviews, find documents, display master data and display documents both the find docs and display master data work great, but the display documents seems to hang and a java Null Pointer Exception shows in the data frame of IE.  It hangs up the whole page and I have to keep hitting back button to close the window and open.  I have the following in config for web front end
    DOC_OBJ is mapped to DOKAR, DOKNR, DOKVR and DOKTL with default set.
    DOC_REQ is set to DOKAR default checked
    EQUI_REQ is set to EQUI-EQUNR default checked
    This is under SIMG_SPORT -> products -> select data fields for web front end
    Am I missing something?
    Cheers,
    Devlin

    The following code is your problem:
    //-------construct
    public void MySlide()
      contents = new Tile[ROWS][COLS];
      reset();
    }Constructors don't return anything including void. Therefore you really aren't calling the above method as you assume in your main method as it is not a constructor. Remove the void keyword and your initializing code will execute properly.

  • Oracle Text - Problem with filtering binary documents (.doc, .pdf, etc...)

    Hi, I have a problem with filtering binary documents (.doc, .pdf, etc...). I use SQL*PLUS for remote access to Oracle 10.2 on Linux and I create table:
    CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    I insert to this table:
    INSERT into test values(1, 'PATH/text1.doc‘);
    INSERT into test values(2,'PATH/text2.doc‘);
    and then:
    CREATE INDEX test_index ON test(text) indextype is ctxsys.context
    parameters (’datastore ctxsys.file_datastore
    filter ctxsys.auto_filter’);
    Message "Index created" is displayed, but objects: DR$test_index$I, DR$test_index$K, DR$test_index$N, DR$test_index$R and DR$test_index$P are empty => index wasn´t created probably.
    I don´t know, where is bug, either bug is somewhere in this code or on the server (wrong installation oracle or constraint privileges). Do you know in what is bug?

    The following is an excerpt from the 10g online documentation. Note the items that I have put in bold.
    "FILE_DATASTORE
    The FILE_DATASTORE type is used for text stored in files accessed through the local file system.
    Note:
    FILE_DATASTORE may not work with certain types of remote mounted file systems.
    FILE_DATASTORE has the following attribute(s):
    Table 2-4 FILE_DATASTORE Attributes
    Attribute Attribute Value
    path path1:path2:pathn
    path
    Specify the full directory path name of the files stored externally in a file system. When you specify the full directory path as such, you need only include file names in your text column.
    You can specify multiple paths for path, with each path separated by a colon (:) on UNIX and semicolon(;) on Windows. File names are stored in the text column in the text table.
    If you do not specify a path for external files with this attribute, Oracle Text requires that the path be included in the file names stored in the text column.
    PATH Attribute Limitations
    The PATH attribute has the following limitations:
    If you specify a PATH attribute, you can only use a simple filename in the indexed column. You cannot combine the PATH attribute with a path as part of the filename. If the files exist in multiple folders or directories, you must leave the PATH attribute unset, and include the full file name, with PATH, in the indexed column.
    On Windows systems, the files must be located on a local drive. They cannot be on a remote drive, whether the remote drive is mapped to a local drive letter."
    With accessible paths and files, you get something like:
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(1,'c:\oracle11g\banana.pdf');
    1 row created.
    SCOTT@orcl_11g> INSERT into test values(2,'c:\oracle11g\cranberry.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
           608
    SCOTT@orcl_11g> In the following, I used a non-existent path and non-existent file name, which produces the same results as when you use a remote path that does not exist locally.
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(3,'c:\nosuchpath\nosuchfile.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
             0
    SCOTT@orcl_11g>

Maybe you are looking for