Display an archive (in Xstring) in WD abap

Hi all,
I need display a file (pdf, word, excel, images, ....).
I have the content of the file in xstring and I need display it in acrobat reader, word, excel, .... and I want not show it in internet explorer.
I have tried it using the cl_wd_runtime_services=>attach_file_to_response method but this show a dialog to choose "Save, Open, Cancel"and I only want open the file without show the dialog.
Can anybody helps me?
Thanks a lot for.

Kata,
use a file download element and bind the data property to the context attribute(of type binary) to which this binary content is bound to and set the behavior property to openinplace
Thanks
Bala Duvvuri

Similar Messages

  • Problem viewing .xlsx and .xlsm file in DMS using Display from Archive Link

    Hello All,
    We are using IXOS as a content server for storing the documents through SAP Archive Link.
    We are not storing any documents in SAP DMS.
    The client has an requirement to manage .xlsx and .xlsm documents.
    1. xlsx - We defined a new document class xlsx under SAP NetWeaver ..-> ArchvieLink  and made the required mime and sheet settings. This allows to upload a .xlsx file to IXOS server succesfully (using Check in Archive) link.
    But whenever we try to view the file using "Display from Archive", the browser gives a warning message that the file is in different format than xls. Do you want to still open (Standard Excel application message). On clicking yes, the file opens in .xls format instead of .xlsx.
    The client doesn't want to change the format to .xls. What can be done to preserve the .xlsx files.
    2. xlsm - Any clue as to does SAP ECC 6.0 support this file type for DMS? And if how the config settings are to be done?
    I will be grateful any help.
    Thanks.
    Ketki

    Hi Ketki,
    based on your description I think that maybe SAP note 1289314 could help here and made sure that the local copy also has extension XLSX or XLSM.
    Best regards,
    Christoph

  • Don't want display the archive partners in Interaction Center Winclient

    Hi All,
    While searching for the business partners in the Interaction Center Winclient ( Transaction Code : CIC0),  we don't want to display the archived business partners . Please provide your valuable suggestions.
    Thanks in advance.

    Hello,
    the only standard way can be seen in note 813540.
    In CIC0, when you select for business partner and "Select related
    business partner screen" appears for this BP, there is a list of icons
    below this screen. There should be also "Change layout" button (
    between "print" and "Choose layout" buttons). When you click on the
    button "Change layout", you may choose additional fields as described
    in the Note. I saw this fields (hidden) in your systems, so the Note is
    implemented already. Add these fields from 'hidden' section to 'Line 1'
    section. Click 'copy' button and fields should be there finally
    visible. I hope it helps you a little bit.
    Regards, Gerhard

  • Comas(,) are not getting displayed in the output while using OO ABAP

    Hi All,
    I am using ABAP objects to display the ALV report in which there is a requirement to output Quantity fields. The Quantity fields are getting displayed without comas ','. Please help me in getting back the comas in the output.
    Eg:
    Below logic is used in my program.
    Class name: cl_salv_form_layout_grid
    Code:
      obj_footer->create_text(
            row    = v_row_cnt
            column = v_col_cnt
            text   = Quantity).
    Expected output:
    39,545.000
    Current Output:
    39545.000
    Thanks in advance for your help.
    Thanks & Regards,
    Siva.

    Hi,
    Please check if the images are in the server and in the /images alias path.
    thanks,
    Sharmila

  • Read some HR archive files (object PA_PIDX) using Abap report

    Hi experts,
    an ABAP program that is supposed to read some HR archive files (object PA_PIDX) but all we can read is the object, we cannot access the individual lines. Please help
    My code
    Output of the report as well as output of archive program
    Cycles comptab. archivés
    0000000038
    0000000040
    0000000044
    0000000045
    0000000047
    0000000050
    Cycles comptab. ignorés (pour détails voir protocole de job)
    0000000001  Simulation
    0000000002  Simulation
    0000000003  Simulation
    0000000004  Simulation
    0000000005  Simulation
    .....etc
    Please help
    Edited by: Blaiso on Apr 1, 2011 5:54 PM
    Edited by: Blaiso on Apr 1, 2011 5:59 PM
    Moderator message: please post only relevant code parts, your post must be less than 5000 characters to preserve formatting.
    Edited by: Thomas Zloch on Apr 2, 2011 9:59 PM

    Hi Ajay,
    1.  You have to create a separate field catelogus and AIS according to your requirement with the required fields you want . Because the standard structures and field catelogues contains many fields from all tables. So before doing the read operation you have to deactivate the standard AIS and activate your newly created AIS .
    2. Can you give some more details for this question to be answered.
    3. The important archiving tables used are ARCH_IDX,ARCH_RPRG,ARCH_DEF.
    4. While scheduling the Read process in batch mode , it will give you three criterias to be entered.
         . Spool Parameters
         (ii). Start date
         (iii). Archive selection of files.
        Unless you enter values for any one of these options , You cannot execute the batch job.
    Hope this would help you.
    Regards - Swarna.

  • Display SMART form as PDF in WD ABAP

    Hi ,
    To display smart form as PDF  , I am following  the SDN article :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true
    In my component  , I have created the view VIEW_PDF, for this . I have created Adobe interactive UI element, and bind the property source to the attribute (XSTRING) where I will  get PDF (after OTF conversion).
    First of all I am using the FM SSF_FUNCTION_MODULE_NAME and usingf the import parameter fm_name .
    Then using this FM
    CALL FUNCTION lv_fm_name
      EXPORTING
       OUTPUT_OPTIONS             = lwa_output_options
        GW_VENREQDAT               = lwa_venreqdat
        GW_REQHEADER               = lwa_venreqhdr
    IMPORTING
       JOB_OUTPUT_INFO            = lv_ssf_output.
    from smart form ZVM_SFM_SUMMARY,I want to get  the data in OTF format using the importing parameter JOB_OUTPUT_INFO of the above FM.
    But I am not able to retrieve the data .Please direct me , where am I missing?
    For converting it to PDF , I am using the FM CONVERT_OTF .
    regards,
    amit

    You may continue like this there after...
    call function w_fmodule
        exporting
          control_parameters = w_cparam
          output_options     = w_outoptions   ":lv_output_options
          user_settings      = ' '
        importing
          job_output_info    = t_otf_from_fm
        exceptions
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          others             = 5.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      t_otf[] = t_otf_from_fm-otfdata[].
      call function 'SSFCOMP_PDF_PREVIEW'
        exporting
          i_otf                    = t_otf
        exceptions
          convert_otf_to_pdf_error = 1
          cntl_error               = 2
          others                   = 3.
      if sy-subrc <> 0.
    *    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      data: l_dummy type standard table of tline,
      pdf_data type xstring,
      pdf_size type i.
      clear: pdf_data, pdf_size.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
    *      max_linewidth         = 132
        importing
          bin_filesize          = pdf_size
          bin_file              = pdf_data
        tables
          otf                   = t_otf[]
          lines                 = l_dummy
         exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          others                = 5.
      if sy-subrc <> 0.
    *    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      data lv_source like ls_pdf-source.
    * navigate from <CONTEXT> to <PDF> via lead selection
      lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
    * get element via lead selection
      lo_el_pdf = lo_nd_pdf->get_element(  ).
    * get single attribute
      lo_el_pdf->set_attribute(
        exporting
          name =  `SOURCE`
          value = pdf_data ).
    Regards
    Gopi

  • Problem with Table display in Adobe Form of Web Dynpro ABAP

    Hi Team,
    I'm trying to display a table in Adobe Print Form (not interactive). The table is bound to the context node in the Web Dynpro ABAP where the cardinality is 0:N. I get a short dump. Don't know what to do here. I'm able to display individual fields from my context successfully. Looks like something is missing when I try to display a table. Any pointers to display a data table in Adobe? Any step by step example you know of where I can find out what I did wrong? Many thanks for your time
    We are on support pack SP06 on 2004S release.
    DUMP INFORMATION:
    Short text                                                               
        Access via 'NULL' object reference not possible.                 
    What happened?                                                           
        Error in the ABAP Application Program  The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    An exception occurred that is explained in detail below.                    
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CREATE_PDF" "(METHOD)", nor was it propagated by a RAISING clause.

    Hi Thomas,
    We upgraded our system(2004S) to SP10 so that we can use the ADOBE form printing in Web Dynpro ABAP but could not apply note 1034425 because of the validity constraints in SNOTE. All the pre-requisite notes are already in the system apart from one note 1029721 which talks about supporting input helps. We don't want to use input helps in our system and cannot upgrade to SP11 because of problems with Business functionality.
    Questions:
    1) Is note 1034425 absolutely dependent on 1029721?
    2) If NOT, can someone please correct the validity so that we can implement using SNOTE.
    3) Would it be OK if we manually apply the changes specified in 1034425 without implementing 1029721?
    4) If all of the above is not applicable, is there any other note which fixes the above mentioned short dump.
    Your help in this matter will greatly help us in using the ADOBE services provided by SAP WDA.
    Thanks much

  • Outlook 2013 Won't Display My Archived Mail PST Files

    Hi there,
    I have recently upgraded to Outlook 2013 from 2010. I have archived mail in PST files going back many years. I managed to open the first one I tried (Outlook 2003 archive) but noticed it wouldn't display sent items on a common search. I then clicked on the
    name bar to sort by name and it did do it. Later when I went back in it wouldn't display any sent items; it just has the "thinking" dots moving at the top. I left it for 3 hours but nothing. I then closed the archive and moved the PST file to my
    C drive and tried again; nothing. I opened another PST file but still nothing shows.
    Does anyone know what could be causing this? I'm thinking of going back to Outlook 2010 but would rather get 2013 to work properly.
    Regards
    Ross
    Ross Bevin

    Hi Ross,
    From the description, the problem is that the archive.pst file you created in Outlook 2003 doesn't display anything when opened in Outlook 2013, right? If I've misunderstood something, would you please provide a screenshot so that we can understand this
    issue more clearly? 
    What's the file size of the PST file? It may cause unexpected problem if the file size exceed the limit. See:
    http://support.microsoft.com/kb/982577
    In addition, we can try to use the Inbox Repair Tool to scan and repair the PST file to check if it helps:
    http://office.microsoft.com/en-in/outlook-help/repair-outlook-data-files-pst-and-ost-HA102749454.aspx?CTT=1
    Please let me know the result.
    Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Display pdf of an xstring directly in ERP

    Hi,
    I am trying to generate a pdf-file out of an xstring-object which I got from the pdf creation in webdynpro.
    I want to display the pdf directly in the erp-system. Does anybody know how to convert the xstring to pdf and how to directly show the pdf without saving it to harddisk?
    Thanks in advance,
    Patrick

    Check this out -:)
    <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/SAPPDFViewer">SAP PDF Viewer (Code Gallery)</a>
    Greetings,
    Blag.

  • How to display Table in Interactive PDF with WD-ABAP

    hi All,
    I have to display a tablewith 4 rows in Interactive PDF form, and i am using WD ABAP.
    These are the steps i have followed.
    1. I have created a table line for the required table
    2. Dragged the table line from data view to body page.
    3. Wrapped the table in subform ,and made it to type "Flowable".
    4. Unchecked the check box saying repeat row for each data item for table and for the header row.
    Now when i preview it works fine and display 4 rows, but when the same PDF is called through Web Dynpro component, it shows an error that related to SOM Expression of that line type.
    Any idea how to get rid of this error..??
    If somebody could also let me know if the steps followed to display the table are correct...??
    All replies will be appreciated.

    Solved it myself, changes the cardinality to 1:N of the context node

  • How can we display photo of particular person on webdynpro abap view

    hello gurus,
                     i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.
    in my requirement i have one view.in that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.
    could you please any one suggest me on this and could any one send me the sample code if possible.
    regards,
    babu.

    Hello Babu,
    I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same
    1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )
    2. then bind the path of the image in Mime folder to the Source property of the Image UI Element
    3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.
    4. to persist the image in DDIC table, create an attribute of type RAWSTRING.
    5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.
    Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.
    Hope this helps you.
    BR, Saravanan

  • Standard program to display which tables are used by Webdynpro ABAP program

    Hi Gurus,
    I am working on a couple of enhancements in SAP Promotion Management for Retail (SAP PMR) which works on the principle of Floor Plan Management.
    I was wondering if anyone would know of a standard program to display the tables used by Webdynpro ABAP?
    (or)
    Where can I get info of SAP Tables associated to SAP PMR?

    Hi,
    I am not aware of any standard reports that displays the tables.
    If I have to view the tables, I would go to se80, give the package and view all the tables in the package.
    Regards,
    Daz.

  • Displaying header in ALV By using OO ABAP

    Hi,
    I have displayed ALV Grid by using OO ABAP.
    Would you please tell me how to disply header for this ALV by Using OO ABAP.
    Moderator Message: Please search for available information.
    Edited by: kishan P on Nov 22, 2010 8:22 PM

    Hi,
    Try this way
    form built_sort_table.
      data ls_sort_wa type lvc_s_sort.
      ls_sort_wa-spos = 1.
      ls_sort_wa-fieldname = 'MATNR'.
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
      ls_sort_wa-spos = 2.
      ls_sort_wa-fieldname = 'STATUS'.
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
    endform.                              
    then
      call method grid1->set_table_for_first_display
        exporting
          it_list_commentary = gt_header[]
          is_layout          = gs_layout_tree
        changing
          it_sort            = gt_sort[]
          it_outtab          = gt_yitm[]
          it_fieldcatalog    = gt_fieldcat_lvc[].
    aRs

  • Brainstorming imported Archives (JAVA) versus Z-TABLEs (ABAP)

    Hi everybody,
    we got very complex processes and I would like to ease them:
    Instead of fixedValues in Message-Mapping we use CSV-files and store them in the imported archives.
    In different message-mappings we read the CSVs via UDF.
    The problem is that the CSV get often updated by the R/3-agents. So we have a lot of administrative work to communicate with the agents, import the files, transport and so on.
    Thats the reason I am thinking of creating z-tables where the agents can maintain the values instead of updating the CSV. Also the agents would be able to transport the z-table entries.
    But as the z-tables are resided on the ABAP-stack we would have change our graphical message mappings to ABAP-Mappings. This would be to much work for us and is not practicable.
    Do you see a workaround or a best practice I do not see?
    Thanks Regards
    Mario

    Hi,
    Instead of doing all this work, you can do in simple
    Use RFC LOOKUp in XI Mapping to pull the values based on the input value and Maintain the ZTable in ABAP Stack of XI or in R/3 itself.
    RFC Lookups
    The specified item was not found.
    Use this crazy piece for any RFC Mapping Lookups!
    REgards
    Seshagiri

  • Get and display saved/archived PDF from application server

    Hi!
    I have a program which uses OPEN DATASET and function modules ARCHIVOBJECT_CREATE_FILE + ARCHIV_CONNECTION_INSERT to save and archive PDF documents.
    How do I <b>retrieve</b> these PDF files (I need to create a list of PDF documents that complies to certain criteria)? Is there a function module I can use?
    How do I <b>display</b> the PDF (selected from my list of PDFs by the user), can method EXECUTE of class CL_GUI_FRONTEND_SERVICES be used?
    Thank you very much for all your help!
    - Mari Virik

    ...

Maybe you are looking for

  • Centro & Treo 650 will not sync with Windows 7

    The 6.2 software will not work with windows 7. I have a new computer and can not get the phones to hot sync with my new computer. The Bluetooth does not recognize either of the phones. None of the other Bluetooth devices nor my car recognizes the pho

  • Questions and Answers Database for HE&R

    Hello Everyone, I'm looking for Questions&Answers Database regarding HE&R. I couldn't find anything about interview questions and answers cookbook, file etc. for Higher education&Research. If anyone has the related documentation, can you please share

  • ISight/Photo Booth/iChat Background?

    Whenever I am in Photo Booth or iChat and I want to take a picture or chat using one of the backgrounds (Paris, etc.) I step out of the frame when prompted to do so, but then when I step back in, my face is covered up in random places by the backgrou

  • Is it my new V25 tools that is causing my google maps to freeze and not be interactive?

    I have 19 articals in the folio builder all starting with content that includes a google map. Everthing was fine, testing well on the desktop and through the folio producer to the iPad. That all stopped with the v25 upload, the maps are there but roc

  • Error - Enter rate/USD rate type

    Hi We are with SRM 7.0 Getting below error while going for shop. any  inputs please ? " Enter rate / USD rate type M for 23.11.2011 in the system settings " Thanks Nag