2569441 - Difference between 'contains' and 'matches' in Assignment profile

SAP Knowledge Base Article - Public

2569441 - Difference between 'contains' and 'matches' in Assignment profile

Symptom

  • When in Rules section of an Assignment Profile, the matches search returns more results than the 'contains' search on the same data, with the same search criteria and when more than one piece of data is being search for.
  • The Operator is expecting the 'Contains' Operator to deliver the same amount of results as the 'Matches' operator if not more.

Environment

SuccessFactors Learning Management System (LMS)

Reproducing the Issue

  1. Log into Learning Administration
  2. Click on Users >Assignment Profiles
  3. Search for the Assignment Profile and Select
  4. Click on Manage Rules
  5. Create a Rule using the 'Matches' Operator where you search for more than 1 piece of data see below example:

 matches.png

       Save and Preview Users in Assignment Profile take note of the number of search results. Then create a rule using the 'contains' operator, Save and Preview Users in Assignment Profile take note of the      number of search result.

   6. Compare both results and the search with 'Matches' should provide more results.

Resolution

  1. This is expected behaviour.
  2. In the exampe, the rule Job Classification matches "1501, 1502, 1503, 1601, 1602, 1603" " essentially means -> Get the users whose job classification belongs to 1501 Or 1502 OR 1503, etc.
  3. This will get all users belonging to classification 1501, 1502, 1503 etc
  4. The rule Job Classification operator to contains "1501, 1502, 1503, 1601, 1602, 1603" essentially means --> Get the users who job classification contains text "1501, 1502, 1503, 1601, 1602, 1603" in it. This will not get any users belonging to job classification 1501, 1502, 1503, etc.
  5. Contains essentially helps when you have multiple job classifications which are having common text in it.
  6. E.g., Job Classification operator to contains "15" will match the users who have Job classification 1501, 1502, 1503 and others like 11503, 10154, etc., but will not pick the ones in 1601, 1602, 1603.

Keywords

Assignment profile, matches, contains, manage rules , KBA , LOD-SF-LMS-ASP , LMS AP , Problem

Product

SAP SuccessFactors Learning all versions