Display pdf into an abap webdynpro view: disable navigation

Hello
is it possible to disable the navigation panes and/or the toolbar and/or statusbar of acrobat reader inside your abap webdynpro application?
When you specify for example #navbar=0 as parameter then you disable the navigation pane.
Eg: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cfb80249-0801-0010-3eaa-829afeac170f#navpanes=0 and https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cfb80249-0801-0010-3eaa-829afeac170f
Is it possible in an abap webdynpro with a interactive form element?
Thanks
Luc

Hi Luc M,
We can Disable the ToolBar of Interactive Form, this can be done by writing the Code in WDDOMODIFY Method of the respective View.
Do add the Following the Lines of Code in the WDDOMODIFY Method
DATA: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
           LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INTERACTIVE_FORM_UI_ELEMENT_NAME' ).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->set_hide_toolbars( abap_true ).
***With the above code you can only disable the ToolBar.
Regards
Pradeep Goli
Edited by: Pradeep Goli on Mar 17, 2009 2:45 PM

Similar Messages

  • TABLE DATA in PDF FORM  Through ABAP WEBDYNPRO

    Hi Friends,
    I have to Populate  SAP TABLE like MARA,VBRK table into PDF form throught ABAP Webdynpro.
    Can you send STEP by STEP Example Doc.
    Thanks In Advance.
    Gautam.

    Hi,
    To display the Table in the Adobe Form you must create a WebDynpro Context.
    In WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes FIELD1 and FIELD2 and so on.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.
    *Declare the TYPES
    TYPES : BEGIN OF TY_TABLE,
    FIELD1 TYPE SOMETYPE,
    FIELD2 TYPE SOMETYPE,
    END OF TY_TABLE.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0.
    SELECT FIELD1 FIELD2 FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And now goto Layout and give the TemplateSource and after that it asks for the interface name fill on that and select the relevant context. Now the LiveCycle Designer opens. There goto DataView pallette, there you can see the context of the webdynpro, now you simply drag and drop that table, a table is being created in the Layout Designer.
    Regards
    Pradeep Goli

  • How do you display a new image in  webdynpro view?

    How do you display a new image in  webdynpro view?
    Where is the image stored and how do we specify the image path?

    hi ,
    The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
    saveur image   as mime
    with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
    Right click on ur component->mime object->import
    In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
    also refer the SAP online help :
    http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
    to knw more abt mime repositories.
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    regards,
    amit

  • Display Word Document in ABAP WebDynpro

    Hi All,
    We have a number of word documents stored in the Business Document Navigator (Transaction OAOR) that we would like to display within a simple ABAP WebDynpro.  Demo program SAPRDEMO_FORM_INTERFACE shows how to retrieve a document from BDS via class cl_bds_document_set.  However, I am not seeing a similiar program for ABAP Web Dynpro.
    I was hoping that WebDynpro test application IOS_TEST_SIMPLE_MS would do the trick; however that appears to only work for a MIME repository object.  Is there a way to display these documents through ABAP WebDynpro?  Can anyone point me to a sample program?  Thanks.
    John

    Hi John
    Have a look at this thread [     Approach content repository other way then URL approach  |Re: Approach content repository other way then URL approach;.
    Thomas Jung delivers some (as always) excellent answers to a very similar problem. If the document is in DMS or BDS really doesn't matter so if I were you I would follow the "cached response" path.
    Also, do a google-search for --  abap "cached response" -- and you will find some additional links here (Thomas has even more to offer...).
    If you do follow this path please share some details as a follow up in this thread for the benefit of the community at large.
    Regards, Johan

  • Display Smartform Pdf output in ABAP Webdynpro application

    Hello,
    there is a solution for displaying Smartform output in Java Webdynpro application in this forum. Since i want to start an project in ABAP Webdynpro i need a solution for this technology since i don't want to recreate all the paperwork again using Adobe. Is there any solution available?
    Thanks
    Udo Ahle

    Hello,
    this is the solution which i was able to implement using the hints given by Heidi and Thomas. Thank you for the support. With this solution it is possible to reuse oldstyle sapscripts and smartforms in todays environment.  Here is the sample code which solves the problem:
    In WDA you define for example a pushbutton to start the display of the PDF.
    In the onaction method you implement:
    method ONACTIONSHOW_PDF .
      data LX_pdf type xstring.
    * get PDF from existing sapscript or smatform
      call function 'Y_PDF_GET' destination '46c'
        IMPORTING
          ex_PDF = LX_PDF.
    * append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'Hello.PDF'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = 'X'
        i_inplace       = 'X' ).
    endmethod.
    The function 'Y_PDF_GET' is implemented as follows:
    FUNCTION Y_PDF_GET .
    *"*"Local interface:
    *"  EXPORTING
    *"     VALUE(EX_PDF) TYPE  XSTRING
    *"  TABLES
    *"      ET_OTF STRUCTURE  ITCOO OPTIONAL
      data: lf_filesize type i,
            lt_otf type table of ITCOO,
            lt_lines type table of tline,
            tline type tline.
    * start sapscript or smatforms and return
      perform make_otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        TABLES
          OTF                = lt_otf
       EXCEPTIONS
         MEMORY_EMPTY       = 1
         OTHERS             = 2
      et_otf[] = lt_otf.
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         FORMAT                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
       IMPORTING
         BIN_FILESIZE                = lf_filesize
        TABLES
          OTF                         = lt_otf
          LINES                       = lt_lines
       EXCEPTIONS
         ERR_MAX_LINEWIDTH           = 1
         ERR_FORMAT                  = 2
         ERR_CONV_NOT_POSSIBLE       = 3
         OTHERS                      = 4
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * convert tline to xstring as needed in
    * in web dynpro            
      field-symbols <X>.
      data: st(268) type c.
      data l1 type i.
      data len type i.
      data maxline type i value 134.
      l1 = 0.
      loop AT lt_lines INTO tline.
        clear st.
        st+l1(maxline) = tline.
        len = maxline + l1.
        l1 = maxline - strlen( tline ).
        ASSIGN st TO <x> TYPE 'X'.
        CONCATENATE ex_pdf <x>(len) INTO ex_pdf.
      endloop.
    ENDFUNCTION.
    The make_otf for sapscript is the following:
    * the next attribute enables the otf output.
    * no other output will be generated
    <b>options-TDGETOTF = 'X'</b>
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
    *         APPLICATION        = 'TX'
    *         ARCHIVE_INDEX      = ARCHIVE_INDEX
             ARCHIVE_PARAMS     = ARCHIVE_PARAMS
                DEVICE             = DEVICE
                DIALOG             = ' '
                FORM               = FORM
                LANGUAGE           = language
               OPTIONS            = OPTIONS
    *     IMPORTING
    *          LANGUAGE           =
    *          NEW_ARCHIVE_PARAMS =
    *          RESULT             =
           EXCEPTIONS
                CANCELED           = 1
                DEVICE             = 2
                FORM               = 3
                OPTIONS            = 4
                UNCLOSED           = 5
                OTHERS             = 6.
    *... make some write forms
      data lT_OTF     type table of     ITCOO.
    * get the otf data
      CALL FUNCTION 'CLOSE_FORM'
    *     IMPORTING
    *          RESULT   = result
           TABLES
               OTFDATA  = lt_otf
           EXCEPTIONS
                UNOPENED = 1
                OTHERS   = 2.
    * put otf into memory for later usage
      if not lt_otf is initial.
        CALL FUNCTION 'SAVE_OTF_TO_MEMORY'
    * EXPORTING
    *   MEMORY_KEY       = 'DEF_OTF_MEMORY_KEY'
          TABLES
            OTF              = lt_otf.
      endif.
    For Smartforms technology it is possible to implement the same concept.

  • How to display HTML files using ABAP Webdynpro?

    Hi,
    I have a html index file and a bunch of other files accessed by the index file  in a specific directory on the SAP server. I'd like to display the index file via ABAP webdynpro and allow the users to click on what they need to see. How can I achieve this using utilizing the ABAP webdynpro technology ?
    Thanks!

    Hi Thomas,
    Thanks for taking the time to answer my question.
    I have the main html file and all other files needed by the main file in one directory on the application layer of SAP. I'd like to provide the user with a link, by clicking on which they should be able to get to the main html file using the browser. This is just a standalone application.
    I can try the approach using BSPs, however, I'm new to that area. Could you point me in the right direction to get started?

  • Include SAP standard transaction screen in ABAP webdynpro view?

    Hi all,
    Any body have idea on how to create SAP transaction screen in WebDynpro view?
    ex : i have requirement like i need IB52 transaction in webdynpro view, so that it will be called this view from EP iview to do some process.
    Regards,
    Rajesh Yadla

    Hi,
    you can use a IFRAME and run a Portal transaction Iview for IB52 inside the WD-IFRAME.
    For that you first have to create an iview for the Transaktion IB52 inside your Portal.Then call the preview of the Iview. This Preview-URL(or the PCD) you can call as source inside the WD-IFRAME. For me this works fine.
    Regards
    Frank

  • Custom ABAP Webdynpro ESS iView Navigation

    Hi,
    Do anyone know how we can configure the out of the box SAP Business Package ESS applications to navigate to a custom page?
    Just for example, there is a button 'Create Expense Report'  in 'All my Trips and Expenses' ABAP Webdynpro app (FITV_POWL_TRIPS), on click, it takes the user to the out of the box 'Create Expense Report' page. Now, if I need to configure this button to take the user to another custom page, how can I achieve that? Is there a configuration that can be changed or we need to change the code?
    Any help will be appreciated!
    Thanks
    Kiran

    Hi,
    This will require slight modification of webdynpro abap application.
    1. Copy this web dynpro application and create a just look alike copy of it in a new package. This is done in se80 transaction. Do this only after creating a new transport package and a workbench request for it. Your basis consultant will do this.
    2.  Examine this button in the correspondiong view. It should contain the parameter for you url , Change this url to your required url in the same way.
    Thanks,
    Harish

  • Display Archived Document in Abap Webdynpro without opening new window.

    I would like to create a wd4a application that receives the parameters of Archive ID and Doc ID and displays the archived document.  The document is stored as a pdf on SAP's content server.  Currently the webdynpro will open a separte blank Window.  I have not defined any view elements to the embedded view because I do know which view element I should to display the archived documente.  I have a url to the document and it will get displayed by creating an new window by executing  the code below to launch the file in a separate window.   The Adobe Viewer creates a new window to view the document.  Does  anyone know what view Uielement I should use to view the document in the main window and main view?
    Thank you
    Tom
    data ld_url type dms_url.
    data ls_message type bapiret2.
      call function 'SCMS_AO_URL_READ'
        exporting
          MANDT               = SY-MANDT
          arc_id              = id_archive_id
          doc_id              = id_arc_doc_id
          COMP_ID             =
          DOCUMENT_TYPE       = ' '
          PDF_MODE            = 'A'
          HTTP_URL_ONLY       = ' '
          DP_URL_ONLY         = ' '
           loc_info            = 'F'
          LIFETIME            = 'T'
          NO_CACHE            = ' '
       importing
         url                 = ld_url
       exceptions
           error               = 1
           others              = 2
    assert sy-subrc = 0.
    added by YINS Mar.05 2007
      if sy-subrc <> 0.
        ls_message-type = 'E'.
        ls_message-id = sy-msgid.
        ls_message-number = sy-msgno.
        ls_message-message_v1 = sy-msgv1.
        ls_message-message_v2 = sy-msgv2.
        ls_message-message_v3 = sy-msgv3.
        ls_message-message_v4 = sy-msgv4.
        append ls_message to wd_this->mt_messages.
       wd_this->flush_messages( ).
        return.
      endif.
      data:
        lr_api_comp_controller  type ref to if_wd_component,
        lr_window_manager       type ref to if_wd_window_manager,
        lr_window               type ref to if_wd_window,
        ld_url_str              type string.
      lr_api_comp_controller = wd_this->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      ld_url_str = ld_url.
      lr_window = lr_window_manager->create_external_window(
          url   = ld_url_str
      lr_window->open( ).

    I found a solution after much troubleshooting including uninstalling/reinstalling Office 2010 which didn't solve the issue. 
    Here it is:
    When Outlook or some other Office program is minimized in the taskbar and won't open, right click the taskbar to bring up task manager. 
    Right click the program in the task manager list that is giving trouble and click Maximize.  You should now see a full screen.
    This worked for me and solved the "open and stays minimized" delima.  Hope this helps you too.  Cheers :)
    Thanks a bunch this saved me a potential headache!

  • Calling smartform and displaying ALV grid in ABAP WEBDYNPRO

    Hi all,
    I am new to ABAP web dynpro.I ahve few custom reports which are simple ALV list reports which I now need to convert to ABAP web dynpro application .
    For one particular report,based on the selection screen input,I need to display the ALV list and when I select the records from the ALV list,I need to call a smartform on clik of a push button.
    My questions:
    1. Im using 'REUSE_ALV_GRID_DISPLAY' FM  to display the o/p in my report.Is there any similar FM in webdynpro ABAP which will display my list in ALV GRID in my web dynpro application??/
    2. How to call a smartfrm in ALV grid in web dynpro??
    Edited by: abap_1000 on Jan 9, 2011 6:09 PM

    Hi,
    You can search SDN, there are several posts available. Just to get some idea, you can check --
    [Beginneru00B4s questions on WDA ALV;
    [Reg ALV Display;
    For clicking event on ALV --
    [Reg Row Data fetching on click in ALV;
    For ALV display on WDA --
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true]
    Thanks.
    Kumar Saurav.

  • Display PDF from BAPI in Webdynpro

    Hi all,
    I have a BAPI that returns a PDF file as a TLINE table, and I need to display the result in a Java Webdynpro, do you guys know how I can do that? Thank you in advance.

    Hello SAPer
    The TLINE table is not basically a PDF file but an OTF file. I suggest you to call one more BAPI 'Convert_OTF' that takes this TLINE table as input and returns a pdf_file.
    Then in JAVA Web Dynpro, use the following code in your action handler after calling the respective RFC :-
    byte[] pdfContent;
    String pdfFileName = null;
    pdfContent = wdContext.current<Bapi_name_OutputElement>().getE_Pdf_File();
    pdfFileName = "<name>"
    IWDCachedWebResource pdfResource= WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);                                         
    try
    wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),pdfFileName,true).open();
    } catch (WDURLException e)
    msgMgr.reportException(e.getMessage(),false);
    I hope this helps you.
    Regards
    Kapil.

  • Abap webdynpro layout and application not displayed

    Hi Gurus ,
        We have upgraded the SAP HR system from ECC6.3 to ECC6.4 and netweaver from 7.0 to 7.1 .
        Following are the list of error in EHP4 system ,
                    1)  Layout of ABAP Webdynpro Component are not displayed .
                    2)  Any ABAP WEBDYNPRO Application is not displayed by tesing in SAP-R3 and also in ESS .
        error are as follows while trying to view layout in abap webdynpro application :
        http://dv.hr.co.in:4567/sap/bc/wdvd/painting.html?_vdrespkey=4IS29CT7NDRIOI511AFI0R1E3&_vdframe=painting&sap-client=435
          If any one have information for this kindly let me know .
    Thanks :
    Vishwas
    Edited by: vishwassap on Aug 12, 2010 7:17 AM

    Hi,
       Thanks for reply ,
       Above mention is not link ,its an error in pop up inside layout of view .
      I resolve this problem by deploying mime object by program in R/3 , so that i can able to view layout .
      But still application is not displayed it shows error like
      1) 'UCF_LoadingPlaceHolder' is undefinged by testing through R/3 and starting view is not opened .
      2) 'UCF_Image' is undefined by testing through portal but starting view is opened here .
      3) while navigating from one view to any view or window is not possible , it gives error
      4) When I navigate from one view to other .
      The following error text was processed in the system D36 : The ASSERT condition was violated.
    The error occurred on the application server RELSRMSR2_D36_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: DISPATCH_NW7_EVENT of program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR_LS==========CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Edited by: vishwassap on Aug 13, 2010 8:31 AM

  • Adobe Reader XI enterprise deploy-disable display PDF in browser?

    There appears to be conflicting information about Adobe Reader XI and how to pre-configure the "disable display pdf in browser".
    The Enterprise Administration Kit/Guide says you can do this via the MSI Property:
    DISABLE_BROWSER_INTEGRATION = YES
    However, acrobat help, indicates you can ONLY do this manually via individual browser add-ons.
    I have the redestributable version from Adobe and I used the Enterprise Guide to make the AIP and used the Customization Wizard to create the package and am using the properties line when the msi is installed to disable the display
    so which one is right?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • Adobe Reader 9.1  Disable Display PDF in browser

    Is there a registry setting I tweek to uncheck the box for Display PDF In Browser?  The only ones I could find grayed out the box but it didn't un check the box.

    I'm just confirming what anhnguyen7902 posted.
    This was tested against Acrobat Reader 9.3.1. I exported all of the registry keys from HKEY_CURRENT_USER\Software\Adobe\ with the "Display PDF in browser" setting enabled and disabled. Below are the only relevant differences when changing this setting from within Acrobat Reader.
    With the setting enabled, keys under [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals] are...
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals]
    "bHostBasedCM"=dword:00000001
    "iPSLevel"=dword:00000000
    "sProofingSpace"=hex:55,2e,53,2e,20,57,65,62,20,43,6f,61,74,65,64,20,28,53,57,4f,50,29,20, 76,32,00
    "bDisplayedSplash"=dword:00000001
    With this setting DISABLED, keys under [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals] are...
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals]
    "bHostBasedCM"=dword:00000001
    "iPSLevel"=dword:00000000
    "sProofingSpace"=hex:55,2e,53,2e,20,57,65,62,20,43,6f,61,74,65,64,20,28,53,57,4f,50,29,20, 76,32,00
    "bDisplayedSplash"=dword:00000001
    "bBrowserIntegration"=dword:00000000
    The difference being the bBrowserIntegration key being present and set to dword:00000000 when this option is DISABLED, but the key being completely removed when the setting is ENABLED.
    While writing this post, I decided to test it against Acrobat Reader v4.2.1. The results were the same.
    Hope this helps.

Maybe you are looking for

  • No connection between iphone 4s and car-adapter

    Hello, Have a question to iphone 4s in connection with my car - adapter for Volkswagen (Adapter-Article.No. 3C005143CD) My phone, updated to 5.1.1 (9B206) and since then is that impossible for bluethoth-connection. Is that correct or anyone to find a

  • Problem in Dynamic ALV - inserting values in proper field of a table.

    Hi gurus, As per the user requirement I need to create a dynamic alv report. The fields will be display according to the period entered. I have already build the alv and it is working fine. But My questio is how can I append data into internal table

  • Bill due date

    Can I choose my own billing due date?!

  • Pls: I have some problems with GOP java card. who can help me?

    hello, all I am going to install my cap file into Global Open Platform Card( S1-TiEx-S32J, which uses GP2.0.1) now. but, I have failed. I use J2SDK1.4.2.10 when I compile the java file. And use Java Card 2.2.1 Development Kit when I convert to cap fi

  • Sending Mail when at Home

    I use mail when I'm at school and it works great. I am home for spring break and although I can recieve mail I can't send it. I figure I'm using a different server so I need to change the outgoing server. Can anyone tell me how I find it and change i