且构网

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

如何隐藏SAP CRM搜索页面的某些搜索条件

更新时间:2021-11-12 12:09:36

Go to UI workbench:

如何隐藏SAP CRM搜索页面的某些搜索条件

And we can see the entries in search attribute drop down list is rendered via this method in controller:

如何隐藏SAP CRM搜索页面的某些搜索条件

so we can just redefine controller method:

如何隐藏SAP CRM搜索页面的某些搜索条件

For example, if we DO NOT want the product_id appear in UI as search attribute, the solution is simple:

如何隐藏SAP CRM搜索页面的某些搜索条件

After that we cannot see product id in search attribute drop down list any more:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ktSAjkHQ-1580390330845)(https://upload-images.jianshu.io/upload_images/2085791-0319d71cdfaff730.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

Note

(1) There is NO WAY to remove these search fields from configuration in work bench via ABAP code

如何隐藏SAP CRM搜索页面的某些搜索条件

(2) There is NO WAY to hide those fields in overview page via ABAP code. The visibility control could only be done based on assignment block level, not field level.

如何隐藏SAP CRM搜索页面的某些搜索条件

We can also configure the attributes by design layer.

如何隐藏SAP CRM搜索页面的某些搜索条件
如何隐藏SAP CRM搜索页面的某些搜索条件

T-Code: BSP_DLC_SDESIGN

如何隐藏SAP CRM搜索页面的某些搜索条件

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。