We plan to activate Enhanced Material Search with TREX and BO BUS1001006.
My question is: How/Where can I place code/logic to skip records (MARA) and not send them down to the TREX index for BUS1001006 (standard materials) ?
We have setup some/many "dummy" MARA records that have a certain "Z" Material Type value. I do not want these MARA records of this specific type to be sent to the TREX system and be included in the Index, that will be searched on by EMS later.
By not putting all these records into the TREX index, will also help the response time of the EMS search results, along with not consuming up the TREX space.
I've researched Note 1131559 and other notes around TREX, BUS1001006, and CL_WSD_ERP_SU_BUS1001006, however, can't find the proper place to add logic/custom code to skip sending down to TREX these MARA records.
Hoping someone has already done this and will know where this can be done.
Thanks for your help on this.
David
You should be able to put your code in the method GET_ATTRIBUTE_VALUES. It has been about a year since I messed with it but I think you can control it at line 48. There is a select on MARA that I believe controls (or at least creates a master list) the materials that will be indexed.
The following helped me when I worked with TREX. I was able to adapt these to other indexes as well as custom indexes.
Enhanced Material Search with Creation - Part 4: How to create new Search Criteria w/o modification
Add a comment