Skip to Content

Blogs about the Enhanced Material Search:

*********************************************************  
The Enhanced Material Search with Creation can be enhanced modification-free with additional customer specific Search Criteria via the Search Engine Service in the TREX index for standard materials and on the dynpro UI of the Enhanced Material Search.

**** if you are using Enterprise Search / Embedded Search this article is not applicable > please read this blog ****

Through this simple development steps you are able to create and use your own search criteria in Enhanced Material Search.
Here is how it works:
Step 1: Get customer specific field information into TREX
In the first step please follow SAP note 1131559 Symptom 2 (create a copy of the standard class CL_WSD_ERP_SE_BUS1001006 and extend the class with your own data fields you would like to include in the TREX index BUS1001006.

In case you copied the existing class you have to maintain the new class in customizing:

Go to transaction ses_Admin > goto > Customizing > Business Objects and Indexes > select “BUS1001006”, double click on “Settings for Business Object” and maintain the new class.

In any case (new class or modification of the extsing class) you have to delete the whole index BUS1001006, and recreate it again. After recreation, you have to run a full indexation.

If you would like to use your own Search Criteria on the UI screen of the Enhanced Material Search follow step 2:
Step 2: create own search criteria on the UI of the Enhanced Material Search
To use additional search parameters in the Enhanced Material Search functionality you have to append the additional fields to the existing structure WSD_MS_INPUT_FIELDS .
Definition of the additional fields within the DDIC: Component and component type are always the data element of the additional field itself.
Afterwards you can define these fields as search criteria within the Enhanced Material Search in IMG: Logistics General > Material Master > Enhanced Material Search with Material Creation > Define Search Parameters for Material Search.
That’s it. Enjoy!
Best regards,
Dr. Ingo Woesner

Product Manager
Suite Development – Multi Channel

SAP AG

P.S. Blogs about this and other Sales Order Enhancements are collected here:
Sales Order Enhancement Series: Overview

To report this post you need to login first.

10 Comments

You must be Logged on to comment or reply to a post.

  1. Kevin Barrett
    Hi Ingo,

    In reference to step 1 where we add our own fields to the Full test search. We are trying this out in our developmenet box and have followed all the steps outlined in the OSS note.

    In testing we find that if we populate full text with the full content of the value in the new field and leave Fuzzy Search Un-checked we recieve the material expected. However the same search with Fuzzy mode checked does not return a result.

    Is there another step that needs to be considered to make this new field work in Fuzzy Mode? 

    thanks,

    regards,

    Kevin.

    (0) 
  2. chirantan chanana

    Hi Ingo,

    I am trying to add a Storage Location to Material Search(VA02). As you have stated above. I have completed Step 1 and Step 2 as well.

    However, when I go to VA02 and try Enhanced Material Search I get a message –

    ————————————————————————————————-

    Material search customizing has invalid entry;  – <fieldname>

    Message no. WSD_MESSAGE007

    Diagnosis

    The Enhanced Material Search Customizing contains an entry unsupported either by the Search Engine Service (SES) business object class or by the component.

    System Response

    The exception text displays the relevant attribute name.

    Procedure

    Ensure that all Customizing table attribute names are spelled properly and are supported by both the component and the SES business object class.

    Procedure for System Administration

    Ensure that a valid SES business object class is specified for the material master business object.

    ————————————————————————————————————————

    I have double checked the attribute many times and it is OK.Am I missing something.

    Any advice.

    PS : Is there any config at TREX side that needs to be done?

    Thanks,

    Chirantan

    (0) 
    1. Ingo Woesner Post author

      Hi Chirantan,

      this can’t be much.

      Did you modify the existing TREX class  CL_WSD_ERP_SE_BUS1001006or created a new one? 

      In case you created a new one you have to maintain the new class in customizing:

      Go to transaction ses_Admin > goto > Customizing > Business Objects and INdexes > select “BUS1001006” and doubleclick on “Settings for Business Object” and maintain the new class.

      In any case (new class or modification of the extsing class) you have to delete the whole index BUS1001006, and recreate it again. After recreation, you have to run a full indexation.

      If this doesn’t help please open an OSS ticket on component SD-MD-MM-CS.

      Best regards,

      Ingo

      (0) 
      1. chirantan chanana

        Thanks Ingo..I ran a few test runs using COM_SE_SEARCH_TEST and it seems to be working fine now. It would be safe to assume that attribute has been added to TREX Engine and is working in expected manner.

        However, I am still get the same message as earlier –

        “Material search customizing has invalid entry;  – <fieldname>”….

        Would it be correct to state that something is still not right in the second step?

        Thanks again for your help.

        Thanks,

        Chirantan

        (0) 
        1. Ingo Woesner Post author

          Hello Chirantan,

          please create an OSS ticket on component SD-MD-MM-CS and send me the ticket number to ingo.woesner@sap.com

          I am curious to see the reason of the error. In case I missed something in the blog I will add the missing part.

          Best regards,

          Ingo

          (0) 
  3. R. F.

    Hello Ingo,

    I have a little question about the dynamically generated search criteria screen.

    We have successfully added the 2 fields VKORG & VMSTA as search criteria (in structure WSD_MS_INPUT_FIELDS and in customizing).

    The program works fine, but the dynamically generated screen 0110 of the FG WSD_MATERIAL_SEARCH has now the status Inactive.

    So every time, when I activate any other program, I get the popup window with a list of all inactive objects (including this screen). But as it is in the SAP namespace, I cannot activate it without a modification key.

    Is it normal, that it gets inactive and how can we activate it again without a modification key?

    Thanks & Best regards

    Richard

    (0) 
    1. Ingo Woesner Post author

      Hi Richard,

      I am no developer. Please open a ticket on component LO-GEN-EMF. I am sure the support colleagues will help you. Please refer to our discussion here.

      Best regards,

      Ingo

      (0) 

Leave a Reply