且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将SAP CRM产品主数据页面的assignment block设置成只读

更新时间:2022-09-01 18:26:40

Metadata table for relationship:




This method can only set existing data to read only, but could NOT prevent user from creating new data in WebUI.




This method can allow you ( GenIL layer ) to add some post processing of data retrieved from API layer




It works as screenshot below.

How to disable these two buttons:




Approach 1: change enabled attribute in gt_button

Appraoch 2: hard code displayMode = read only





How to disable Edit List button:




Same idea: