SAP CRM creates search Help in the Web UI

Source: Internet
Author: User

In most cases, providing search Help for a specific field in the Web UI requires that search help be created in the transaction SE11.

  (Note: You can also provide search Help by creating a class in SE24 and implementing the If_bsp_wd_custom_f4_callback interface.) )

Let's start by creating search Help in SE11.

Go to transaction SE11, create Search Help, enter the values shown in. Here we want to provide a search Help for the Partner feature field in the Search view.

  

  

Selection method is the name of the table in which the value resides. Activate search Help.

Go to the fields in the user Interface component Workbench that need to provide search help. Here we want to provide F4 search Help for the Partner function field summarized in the search view.

Expand this field to generate the V-getter method.

  

After the method is generated, copy and paste the code in.

  

For the convenience of developers, SAP provides standard class CL_BSP_WD_VALUEHELP_F4DESCR. We only need to use some information to create an instance of the class (to provide search Help).

    1. Help ID: The search Helper ID that was created in SE11.
    2. Input Mapping: Provides a mapping between context node properties and search Help properties. Here we provide F4 Help for the Partner function field. In line 9th, we've already put ' STRUCT. PARTNER_FCT ' was assigned to the context_attr of input mapping. On the next line, we map it to the ' partner_fct ' in the SE11 search Help.
    3. Output mapping: Once the user selects the value in the F4 help, we need to return the selected value to the corresponding field. This information will be given by the output mapping. In lines 14 and 15, we have passed the value from ' PARTNER_FCT ' to the property ' STRUCT in the context node by telling the framework. PARTNER_FCT '

Activate the method and test the app.

  

We can see that there are two fields above the graph, partner function, and the search for the entry text. These fields appear here because we filled out ' 1 ' and ' 2 ' in the Spos field when we created the search Help in SE11. If you make this column blank, these fields do not appear.

Select any value that will be automatically passed to the Partner function field.

We can set the initial limit value of the search result by sending the following parameters:

' \ ' ' z*\ '

Comment out the ' structu ' on line 9th. PARTNER_FCT ', uncomment the value above. Activate the method and test the app. At this point your F4 will be shown below, and all entries beginning with z will be searched by default.

  

This article link: http://www.cnblogs.com/hhelibeb/p/6000412.html

Original link: providing F4 help

SAP CRM creates search Help in the Web UI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.