Last week I was searching for a way to disable the Toolbar of the Adobe Readernin a Webdynpro application. I needed this when working for a NL 4nBusiness customer
nSAP provided a way in the Form but that did not seem to work in Livecylce 8.0.
nAfter a lot of searching on the Net and trying a lot of code I finally found anway to Hide / Disable the Toolbar of the Adobe Reader in the SAP Webdynpronapplication.
It is actually very easy if you know it. 😉
nYou can disable the ToolBar of Interactive Form by writing a few lines of Codenin WDDOMODIFY Method of the used View.
nAdd the Following Lines of Code in the WDDOMODIFY Method in the view.
nDATA: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
nLR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
nLR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( ‘INTERACTIVE_FORM_UI_ELEMENT_NAME’n).
nLR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
nLR_METHOD_HANDLER->set_hide_toolbars( abap_true ).
The user can reactivate the Adobe Acrobat Reader toolbar by pressing F8.