SAP Knowledge Base Article - Public

3465899 - How to write if/then/else condition to execute block of statements based on e-mail domain?

Symptom

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

How you can write an if/then/else statement in the Integration Center job which executes the block of statements that matches with the e-mail domain in the provided e-mail.

For example,

If (Email like ‘%@tcp.com’) then
    Field value = A
Else if (email like ‘%@db.com’) then
    Field value = B
else 
    Field value = C

Environment

SAP SuccessFactors HXM Suite

* OData API

* Integration Center

Resolution

The following image shows that the e-mail value splits into two parts by a separator @, the index of the two parts are 0 and 1. 1 represents the second part (i.e. e-mail domain).

Keywords

Calculated field, integration center, if/then/else condition, e-mail, e-mail domain, split, @ , KBA , LOD-SF-INT-INC , Integration Center , LOD-SF-INT-INC-FWK , Integration Center UI Framework , How To

Product

SAP SuccessFactors HCM Suite 2405