Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Enhance Opportunity Search WEBUI (CRM 7.1)

$
0
0

Hi Experts

 

When searching for an opportunity You can enter CATEGORY_ID as search parameter.
Then You get a Value Help where You can make a search for a CATEGORY-ID in all the hierarchies.

 

What I need is to restrict the search to an exact HIRERACHY-ID! By using a default value for the HIRERACHY-ID

 

I found an example by jaya Kumar: http://scn.sap.com/docs/DOC-26636

 

So I tried to add an extra search field to CRMST_QUERY_OPP_BTIL by an Append Structure.
The field I added (ZZKATEGORI) has the same definition as the Product Hiearchy ID (CRMT_PROD_HIERARCHY)

 

Then I went to Customizing:
SPRO->Customer Relationship Management->UI Framework->Design Layer->Copy SAP Design Objects
to enable the new field in Design Layer.

 

Now I can go to transaction BSP_WD_CMPWB Component BT111S_OPPT and in the configuration of view: Search I can add the new field ZZKATEGORI

 

So far so good. Now I can see the field in the possible search files of an Opportunity.

 

The next step was to implement the BADI CRM_BADI_RF_Q1O_SEARCH, filtervalue BTQOPP.
I have now made the code in IF_CRM_RF_Q1O_SEARCH~SEARCH which results in the correct found Opportunities.

 

But now I need to add Value Help to the new field ZZKATEGORI.

And the value help should be the same as for CATEGORY_ID.

This existing Value Help is component: PRCAT_APPL viwe: CategoryAdvancedSearchEV.

So:

- How to add this existing view as value help on my field ZZkategori?
- And how to restrict the search to only one exact HIRERACHY-ID (User should not enter this value!!)

 

Hope You can give me some hints

Best regards
Carsten


Viewing all articles
Browse latest Browse all 9159

Trending Articles