Disable Adobe Reader Toolbar in Webdynpro


Last week I was searching for a way to disable the Toolbar of the Adobe Reader in a Webdynpro application. I needed this when working for a NL 4 Business customer

SAP provided a way in the Form but that did not seem to work in Livecylce 8.0.

After a lot of searching on the Net and trying a lot of code I finally found a way to Hide / Disable the Toolbar of the Adobe Reader in the SAP Webdynpro application.

It is actually very easy if you know it. ;-)

You can disable the ToolBar of Interactive Form by writing a few lines of Code in WDDOMODIFY Method of the used View.

Add the Following Lines of Code in the WDDOMODIFY Method in the view.

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 ).

The user can reactivate the Adobe Acrobat Reader toolbar by pressing F8.

Theo van der Sluijs

Theo van der Sluijs (1975) is Software Development Manager at Bax-shop.nl. You can read more in dutch on his “Dutch Blog“, he also created Gebruikmaar.nl. He is a member of the Board of the Dutch Flex Usergroup and Goesweb.net.

Google+ Twitter LinkedIn 



VN:F [1.9.13_1145]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
Disable Adobe Reader Toolbar in Webdynpro, 10.0 out of 10 based on 1 rating

Related Posts

One comment

  1. Your solution is good.
    is there any way to hide/visible individual buttons on Tool Bar.
    I want to hide the Save button only but not entire tool Bar.

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes