How to set SAP CRM relationship assignment block to read only

247 阅读1分钟

Created by Wang, Jerry, last modified on Jan 14, 2017

In codeployment, those attributes which have counterpart in S4 should be treated as read only in WebUI. Take Locations assignment block for example:
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:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":