SAP Knowledge Base Article - Public

3149097 - How to Add Backslash or Forward slash Using a Rule for Last Name and First Name

Symptom

 How to Add Backslash or Forward slash Using a Rule for Last Name and First Name

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Employee Central - Personal Information

Resolution

java tags  \s for string see rule example bellow:

In this case you add in the pattern the following texts: "\s "(don't forget to add the space)

  1. Go to Admin Center 
  2. Select Configure Business Rules
  3. Create New Rule
  4. Select the Base Object as Personal Information
  5. Configure the rule as below

For: Backslash    \

back.png

Add Under Last Name  code <trigger-rule event="onChange" rule="Replace_sapace"></trigger-rule>

Test Result Last Name:

  • Before: Test Text
  • After: Test\Text

Not Supporting: Backslash  \

  •  Replacement: \
  •  Replacement: [\]

For: Forward slash /

Supporting: Forward slash

  • Replacement: /
  • Replacement: [/]

4back.png

FAQ - Additional Information

Q) Where can I get the Guide?

A) Guide: Guide: Implementing Business Rules in SAP SuccessFactors

Chapter: Implementing Business Rules in SAP SuccessFactors

See Also

  • 2413032 - Rule On Display Name field (How to)
  • 2789130 - How to Create a Business Rule to Trim / display a sub-string of a field
  • 2426526 - How to use a Business Rule to apply a Format/Regular Expression to a Field
  • 2278115 - How to Create a Business Rule to Validate a Phone Number

Keywords

Employee Central, /,\,[]Backslash, Forward slash, rule, concatenate, replace, symbol, replacement, Pattern, PersonalInfo, , KBA , LOD-SF-EC-PER-PRS , Personal Info - Config, Rules, RBP, UI , LOD-SF-EC-HIR-RUL , Business Rules , How To

Product

SAP SuccessFactors HXM Core 2111