on 04-05-2010 7:26 PM
Hi,
I need to enhance the product search ( Component PRD01QR) with a new search criteria Division. Could you please advise me on how to achieve the functionality.
Regards,
Kamesh Bathla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jegadesh,
I already saw that thread, i tried enhancing the search structure with division and used the dataelement CRMT_DIVISION. Also, i maintain the entry in table crmc_prsea_attr with attribute ID and settype id, but after that when i try to open the view in web UI, its giving me the dump saying that metadata not found. Also, where do i need to write the code to filter the search results by division?
Regards,
Kamesh Bathla
Hi,
I am able to see the field in UI and I also implemented the dropdown by IF_CRM_PRIL_SEARCHEXIT~CHANGE_DQUERY_DEF_EXTENSION of BADI CRM_PRIL_SEARCHEXIT. Where do i need to write the filter logic to filter the product by Division. Right now if i select division, its not getting any result.
Regards,
Kamesh Bathla
Redefine the EH_ONSEARCH method. You will be getting the result even if you do not specify the Division parameter.
Now get the Division value from the UI and in case it is not initial filter the values which belongs to this division and the put all the selected entities in the result collection and then show it in the result.
Regards,
Harshit
Hi Kamesh,
For achieving the above functionality, there are two steps:
1. Enhance the search structure which you have already completed successfully. Add the additional attributes in BOL structue and make them available in UI.
2. Enhance the standard search.
For this, there is a standard BADI definition in CRM: CRM_BADI_RF_Q1O_SEARCH. You need to create a filter dependent implementation for this. In the filter value, specify the name of your search object. In your case, its 'ProdAdvSearchRgProducts'. In the search method of this implemented class, you'll receive your search attributes value in the importing parameters. Write your own dynamic query here based upon your selection criteria and send result list in ET_GUIDLIST structure as returning parameter.
The same result list will be populated in the result list of UI.
The same concept can be adopted for enhancing any search in UI.
I hope my answer helps.
Thanks
Vishal
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.