cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance Product Search PRD01QR by Division

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please check the below thread and follow the steps mentioned.

Revert if you have any questions.

Hope this solves ur problem.

Regards

Jgds

Former Member
0 Kudos

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

former_member189678
Active Contributor
0 Kudos

You need to maintain the entries in table CRMC_PRIL_OBJ as well.

Regards,

Harshit

Former Member
0 Kudos

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

former_member189678
Active Contributor
0 Kudos

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

former_member193352
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Vishal,

I will try this way out in few days time, I will surely let you know if I am able to enhance the product search by division.

Regards,

Kamesh Bathla

Former Member
0 Kudos

Hi All!

I tried to do this, but isn't working. I am debbuging ProdAdvSearchRgProducts object at the search moment, and there is not a call to CRM_BADI_RF_Q1O_SEARCH BADI (I put a breakpoint in the GET BADI command).

Any idea?

Regards,

Julio Cesar

Answers (0)