SAP Knowledge Base Article - Public

2475948 - Automatic Generation of Foundation Object Code

Symptom

How to automatically generate foundation object codes?

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

Environment

Employee Central - Foundation Object

Cause

The below example is done for Location

Resolution

If you want system to generate foundation object codes, you have to define a sequence and then use this sequence in a business rule.

You can create a sequence in Manage Data as following. Please ensure the sequence does not begin at 0 or with a negative value:
1.png

 
Now you can create a business rule with corresponding Foundation Object  as the base object as the following:
2.png

According to the above business rule, all position codes will be in the format: LOC_seqCurrentNumber.The format can be adapted as per business requirement.

This rule should be added as an onInit Rules in the Corporate Data Model.
The trigger of the rule, needs to be set on the foundation object element, after the labels, before the field configuration as seen below:
3.png

See Also

2352610 - Automatic generation of position code

2421728 - How to Autogenerate Employee ID/ Person ID Based on Country Using a Sequence

2418814 - How to configure an MDF Sequence object and Business Rule to auto-generate Person ID during Hire

Keywords

Foundation object, Location, code, xternal code, generate, autogenerate, populate, sequence , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , How To

Product

SAP SuccessFactors Employee Central all versions