cancel
Showing results for 
Search instead for 
Did you mean: 

How to - Add New Search Criteria to Opportunity Search screen?

Former Member
0 Kudos

Experts,

How do we add a new search criteria to the Opportunity Search?

This search criteria is not available in Displayed and Available Search Criteria.

I want to add search by 'State/Region' in the Opportunity Search screen, but it it not available in Available Search Criteria.

How can i do this?

Any help would be appreciated.

Thanks,

Abhinav

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Issue resolved.

Thanks everyone..

former_member570975
Discoverer
0 Kudos

Hello,

Could you please explain as to how you resolved this ? If possible share the code snippet for searching Opportunity by State/ Region ?

I too have a similar requirement and do not know how to code it in the BADI implemented.

Any help is appreciated.

Former Member
0 Kudos

Hi Vinod,

Is it possible to share any document if you have, to enhance ES_CRM_RF_Q1O_SEARCH.

I am bit worried as I dnt want to create a mess in system( i created before).

Thanks,

Mahesh

Former Member
0 Kudos

Thanks for the information.

Now if I understand it correctly.

I need to enter the ENH Spot as ES_CRM_RF_Q1O_SEARCH.

Click on Implement ENH SPOT.

Give soem ZZ name to Enhancement IMPL?

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Abhinav,

Available search criteria will only have attributes which are part of your query / dquery object used in that search view. Not all the fields will be available search criteria, especially when this field is not in your BO.

I have recently done such requirement where I needed to add Region field to Service Request search for users to search Service Requests based on the region of the sold to party. If your requirement is similar then you can take the help of below post

You basically need append the field to search and result structures depending on your requirement and write the logic in required BAdI's

http://wiki.sdn.sap.com/wiki/display/CRM/How+to+add+an+existing+field+to+a+search+page+of+a+differen...

If I am not wrong the Enhancement Spot, BAdI names would be

ES: ES_CRM_RF_Q1O_SEARCH

BAdI:CRM_BADI_RF_Q1O_SEARCH

for manipulating the search criteria and

ES: CRM_BADI_RF_Q1O_READ

BAdI: CRM_BADI_RF_Q1O_READ

for manipulating the search result.

Regards

Vinod

Former Member
0 Kudos

Hi Vinod,

I also have the similar kind of requirement wherein I  need to add 2 fields(IDNUMBER and IDTYPE) from table BUT0ID on the service request search criteria.

I have added the 2 fields in CRMST_QUERY_SRV_REQ_BTIL(Dynamic query object) and CRMST_QUERY_R_SRV_REQ_BTIL(result Query object). I have then moved the 2 fields from Available to displayed fields.

I can also see the fields on the search criteria. but once I enter any value to it and click on Search it ends to dump.

Can you please help me in this regrad. I am new to SAP CRM Technical. Step by step process will be very helpful..

Thanks.

Mahesh.

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Mahesh,

Yes this happens because the standard search method does not know what to do with the extra criteria you are passing. You need to handle it via a BAdI. Keep an external break point in Search method, then find the relevant  badi( which should be the same as I mentioned in above post) using get badi/call badi and then proceed with defining what should system do with these two fields you added.

Regards

Vinod

former_member570975
Discoverer
0 Kudos

Hello,

Could you please share the code snippet for searching Service Request by State/ Region ?

I too have a similar requirement and do not know how to code it in the BADI implemented.

Any help is appreciated.