cancel
Showing results for 
Search instead for 
Did you mean: 

PCUI: Where can I get the 'filter'ed object list from search results?

Former Member
0 Kudos

Does anyone know how I can get the filtered object list from the search results area in PCUI.

Example: In Accounts screen a saved query is run. User then uses the filter to select only BP's in 'MI'. I want the resulting list of BP's

The MAC~READ method does not get hit when the filter is used. Does filtering take place on the front-end?

Thanks!

Brant

Brant

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Solved on my own with different approach. I used advanced search with multiple queries for search group 'ACC'. I combined a relationship search with my EEW structure (bus000_eew ) then created an implementation of BADI CRM_ACC_SEARCHQUERY (which is called by fm COM_BSP_SEARCH_BP as part of MAC CL_BSP_ACC_ACCMOD, IF_CRM_BSP_MODEL_ACCESS_ILQUERY). The badi has IS_SEARCH_CRITERIA (type bus000_eew) as an import parameter and table CT_PARTNER_KEYS as a changing parameter. You are passed the initial query results (list of partners) in CT_PARTNER_KEYS . In the badi, creating a select using the EEW fields for all partners in CT_PARTNER_KEYS you can return the partners that meet your criteria in CT_PARTNER_KEYS. This in effect allows an advanced search of EEW fields and relationship fields to limit the advanced search results in PCUI

Former Member
0 Kudos

Hi Harsh, Debasish;

I am using MAC CL_BSP_ACC_ACCMOD. If I put breakpoints in the QUERY and READ methods, the breakpoint does not get hit when I enter the filter criteria. The READ method does get hit.

Thanks;

Brant

Message was edited by: Brant Berg

I still can't get at the filtered values. Any ideas?

Former Member
0 Kudos

Hi Brant,

All search based actions are passed to 'QUERY' method. You may need to enhance this method of the respective MAC.

I am not sure which MAC you are using ? . I am working on Service Order and the Query method in this application's MAC calls FUNCTION 'CRM_BSP_OIC_1O_SEARCH_FROM_RF' passing the lt_search of TYPE crmt_name_value_pair_tab to filter the search result list. There is also a method modify_searchlist in my MAC.

So you may have to consider modifying the above Name Value pair to get the filtered search result.

Query method than passes the result object list to the Read method to display its content.

Thanks

Harsh

Former Member
0 Kudos

Hi,

Didn't quite get the exact requirement of yours. But can't you use the MAC~QUERY method for this ?

Thanks, Debasish