cancel
Showing results for 
Search instead for 
Did you mean: 

Issue for Hide fields and buttons in applications WD ABAP

Former Member
0 Kudos

Dear Experts.

I need hide the button Add Rail of the Web Dynpro component FITE_VC_SERVICE_REQUEST that is in the Views V_SERVICES.

I am using the following code:

cl_fitv_wd_util=>ui_set_visible( io_view = view iv_id = 'ADD_TRAIN' iv_visible = abap_false ).

But the system hide others buttons of the toolbar(Add Flight, Add Hotel, Add Car Rental, etc).

How can hide this button with ID = ADD_TRAIN, and that this not hide the other buttons?

Thanks ,

Regards

Juan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Juan,

this happens when other UI elements visibility is also binded with the same attribute, with which 'ADD_TRAIN' is binded.

You can not achieve this directly with the code because when u are making 'ADD_TRAIN' invisible then automatically other fields will become invisible, because all are binded with the same attribute for visibility control.

What you can do is, in the enhancement only directly delete the UI element( From the layout) for 'ADD_TRAIN'. now create one more UI elemnt for 'ADD_TRAIN'. do not bind the visibility of this UI. Now control the visibility in the modify for this new UI element.

Regards,

Pankaj Aggarwal