cancel
Showing results for 
Search instead for 
Did you mean: 

More than 5 entries found; limit search criteria or change settings

Former Member
0 Kudos

Hi Experts,

I have developed a custom component and view of result table type. so when i run this component then in webui HOME page iam getting this information message as "More than 5 entries found; limit search criteria or change settings". I tried deleting this message from global message container also but its not working.

Any idea why thie message is coming??

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you wanna get rid of this message, you need to find where its coming.

To find that set the parameter BSPWD_USER_LEVEL to 9 in Su3 user params.

then when you hover your mouse on the message in webui, u wil be able to mgg type, id, number, with that you can trace down.

I guess this might be coming from the search method of this BOL object. You need to search for the message usig crm_message_search and delete it using crm_message_delete.

Hope it helps. Satish

former_member193357
Participant
0 Kudos

Hi Satish.

Thanks for ur reply....

I have already got the message number and id by debugging it...

Also i have tried to delete the message form the global message container but its not working...

Regards..

ratna_rajeshp
Active Participant
0 Kudos

Hi ,

Can you please let us know how are you filling the data in the result table.

Regards,

Ratna Rajesh

Former Member
0 Kudos

Hi,

Thanks for your prompt reply..

I have writrten my login in DO_INI_CONTEXT..refer below how iam filling my data....

lr_core ?= cl_crm_bol_core=>get_instance( ).

lr_core->load_component_set( 'BT' ).

lr_query ?= cl_crm_bol_dquery_service=>get_instance( 'BTQAct' ).

ls_parameter-name = 'MAX_HITS'.

ls_parameter-value = '05'.

append ls_parameter to lt_parameter.

lr_query->set_query_parameters( it_parameters = lt_parameter ).

data: lv_date type string.

clear lv_date.

lv_date = sy-datum.

call method lr_query->add_selection_param

exporting

iv_attr_name = 'END_DATE_RANGE'

iv_sign = 'I'

iv_option = 'LT'

iv_low = lv_date.

lr_coll ?= lr_query->get_query_result( ).

if lr_coll is bound.

me->typed_context->btqract->collection_wrapper->set_collection( lr_coll ).

endif.

Regards.

former_member214667
Contributor
0 Kudos

Hi Hemant,

The source of the message you are receiving are the following lines of your code:


ls_parameter-name = 'MAX_HITS'.
ls_parameter-value = '05'.
append ls_parameter to lt_parameter.

lr_query->set_query_parameters( it_parameters = lt_parameter ).

By this code, you are setting maximum number of results for the query to 5. And since your search fetches more than 5 results, the corresponding GenIL is adding that message. Basically, whenever any search fetches results more than the number specified in max_hits, this message is added. This is standard in CRM Web UI.

So, you can get rid of this message by:

1. removing above piece of code (the default max_hits is 100)

2. set a max hits greater than 5 if you have some specific requirement on number of records to be fetched

Regards,

Shiromani

Former Member
0 Kudos

Hi Shiromani,

Thanks for ur reply.

I have changed my report and set the max_hits to 100. Now iam not able to see that message but another problem is now that for some user that particular assignment block is display and for some its not. there is no problem on authorization point of view..I tried to set the external breakpoints also but tht view is not getting called only.

I guess its because i have set max_hit to 100 and the query is fetching more than 100 results !!!! Is this the issue??

Any idea in this issue.

former_member214667
Contributor
0 Kudos

Hi Hemant,

New issue means new thread.:) If your original query is solved, you should close this thread <<text removed>>.

Regards,

Shiromani

Edited by: Matt on Aug 10, 2011 7:49 AM