首页 > 应用开发 > IT综合 > SAP CRM Advanced search和Simple search里Max hit表现行为的差异

SAP CRM Advanced search和Simple search里Max hit表现行为的差异

原创 IT综合 作者:i042416 时间:2020-08-20 12:31:48 0 删除 编辑

We could observe the different behavior of search max hits in product advanced search and simple search. For Advanced search: if we maintain an invalid max hit number:

the default 100 could automatically be restored:

However this is not possible in simple search view. After an invalid max hit is typed, the error message is displayed, but the invalid content is still there.

The reason is the max hit field in Simple search is implemented via a pure input field, and conversion exception occurs here:

The exception information is written into the error message internal table:

And the rendering logic for inputField is, if there is an invalid content typed by end user (line 66), the invalid content will be kept in UI ( line 79)

And the logic in method is_attribute_valid in line 66 is just check whether the error message table in errors variable ( type cl_bsp_messages) is empty or not.

The solution for the max hit in simple search:

Since the design to use inputField as max hit could not be changed, however we could still change the implementation in method CL_PRDIOQR_ESSEARCH_CN00~SET_MAX_HITS: if method if_bsp_model_util~convert_from_string is NOT used, the framework handling for inputField will NOT set the invalid flag any more.

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量