cancel
Showing results for 
Search instead for 
Did you mean: 

Prefill search attribute in ERP_S/ErpOrdSQ

Former Member
0 Kudos

Hello,

i use the search for ERP quotations and ERP orders in CRM 7.0 webclient UI.

The issue i face is, that if someone executes the search without filling out search attributes this takes very long.

Could one of you please assist how to prefill one of the searchattributes:

For example: timeframe "is later than" 01.01.actual year.

Or do you have better ideas to avoid search without criteria?

Thank you

Best regards

Manfred

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manfred

You can enhance the search component and then prefill the default value for any attribute in DO_PREPARE_OUTPUT method of the view controller class.

Best Regards

Bhavishya

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ManniF,

You can add th hidden search criteria in method EH_ONSEARCH.

This field should need not be available in UI (but should be a valid field using which the ERP Orders can be searched).

Add this field to the query service in method EH_ONSEARCH using method ADD_SELECTION_PARAM.

Just after you get the result(after execution of method GET_QUERY_RESULT), remove the search parameter.

Take a look at method EH_ONSEARCH, you will undestand the code.

Regards,

Masood Imrani S.