Currently Being Moderated

How to hide the Settings button in WD CATS

Introduction


The Settings button in Record Working Times is rendered by the WD ALV component usage of WD CATS. In order to hide the button you have to implement a WD enhancement to the initialization of the WD ALV component usage within WD CATS. In this example only the weekly view is covered, implementation is similar for other views. ERP 6.0 EHP6 SPS04 was used as a reference system.

 

The Settings button is visible by default.

wd_cats_settings_enabled.png

Implementation

 

In ABAP Workbench (SE80), select "Web Dynpro Comp. / Intf." from the dropdown, input HRESS_C_CATS as component, expand the Views folder and double click V_RECORD_WEEK. Go to the Methods tab and select Enhance from the toolbar. Input a name and a description to your enhancement. Scroll left in the list of methods and create a Post-Exit method for the method INITIALIZE_ALV. See the attachment for the coding of the Post-Exit method. Save, activate and Test.

 

Result

 

The Settings button isn't visible anymore.

wd_cats_settings_disabled.png

Conclusion

 

I think SAP should introduce an application parameter in the standard WD CATS application so that WD configuration could be used to decide whether the Settings button is visible or not.

Comments

Delete Document

Are you sure you want to delete this document?

Actions