SAP CRM – Service orders are not shown in search result, parameter NO_OBJ_TYP_HDR

When you search for Service Contracts in the CRM WebUI, the system returns all other business documents such as sales order, quotes and etc.
Or
While searching for Service Orders in the CRM WebUI, the search results shows documents of various types like Service Orders, Service Requests, Sales Orders etc. in the service orders search result.

Cause

  • The parameter NO_OBJ_TYP_HDR is set to ‘X’. *
  • The header object type is inactive.* With this parameter set it influences the behaviour of the search so it will avoid the join with CRMD_ORDERADM_H and so SELECT will only be performed on OBJECT_TYPE on CRMD_ORDER_INDEX table. In that case documents will be selected if item or if header matches with the business object searched. Standard the system is doing a search with a SELECT JOIN with CRMD_ORDERADM_H in order to select only the relevant business object header searched.

Resolution

  1. Please check if ‘1697204 – Incorrect search results service order’ and pre-requisite ‘SAP Note 1679150 – Incorrect results for service order search’ are already implemented. The correction code of these SAP Notes together are causing above described issue.
  2. Navigate to transaction SM31 or SE31.
  3. Edit/View table SMOFPARSFA.
  4. Select following entry:
    Key: CRMRF
    Parameter Name: NO_OBJ_TYP_HDR
  5. Remove the value of the parameter and leave it blank. *
  6. Save.NB. Please note that by activating or de-activating this setting it will result in an increase or decrease of performance when searching for business documents.