cancel
Showing results for 
Search instead for 
Did you mean: 

How to set button INVISIBLE in standard component FITV_POWL_ASSISTANT

former_member222068
Active Participant
0 Kudos

Hi Team,

My requirement is to set buttons INVISIBLE of standard component. I have enhanced component and view. But i am not able to set the button to invisible. properties of the UI elements are in read only mode.

Can some one suggest me.

Thanks & Regards,

Sankar Gelivi

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You cannot directly change the properties of standard component UI elements. You have to enhance the component and delete the UI (Remove element) and create a new UI element of same type and bind to the same attribute and set the visible property.

Check this document for reference.

OR, create a post exit in WDDOMODIFYVIEW method and set the visibility dynamically using set_visible( ) method of UI element.

sample:

     lr_button ?= view->get_element( 'BUT' ).

      lr_button->set_visible( abap_false ).

Hope this helps u,

Regards,

Kiran

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Sankar,

You can do it as below

Approach1:

  •      Enhance the view , use, post exit of WDDOMODIFYVIEW( ) and set the visible property of button as below

               lo_btn->set_visible( cl_wd_button=>e_visible-none ).

Aproach2:

  • Enhance the view
  • Go to the button ( ui element tree )  and right click and chose the "Remove Element" as below

         

Note: you can undo the element deletion if required

Approach3:

use the personalization/customization either by using admin mode or application configuration.

Hope this helps you.

Regards,

Rama