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

Re: How to Enhance Service request Search Criteria

$
0
0

Hi Mahesh,

 

Try the below mentioned approach to achieve your requirement.

 

1. Create Value attributes(for ID Type and ID number - ZZIDTYPE & ZZIDNUMBER) to the standard search context node.

2. Define value help for these attributes by redefining the get_v_* method for both the attributes.

3. Redefine the EH_ONNORMALSEARCH method defined in the IncidentViewset controller class. In this method, add the code to check if the customer search attributes, ZZIDTYPE or ZZIDNUMBER is specified as search criteria. If so, identify the BP number for the specified ID type and number by searching in the BUT0ID table. Once the BP number is identified as the search criteria, BU_PARTNER. Then remove the ZZIDTYPE and ZZIDNUMBER from the search criteria and then trigger the search.

 

Other option is to trigger the search without these ZZ attributes and then filter the results based on the BP found from these ZZ attributes. This will be expensive as the search will fetch everything and then unwanted records are filtered.

 

Hope this helps.



Viewing all articles
Browse latest Browse all 8627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>