SAP Knowledge Base Article - Public

2528143 - Document generation based on different address types - Employee Central

Symptom

This KBA provide an overview and how is possible to fetch different address field data for different address types.

"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
  • Document Generation

Cause

  • We maintain different types of addresses in Employee central.
  • Some customers are interested in fetching data based on address types in document generation.
  • Its not possible to achieve this via direct mapping. We have to use business rules to achieve the same.

Resolution

To generate a document containing Address 1, Address 2 and City of type home and business addresses, for example:

  1. Home Address 1
  2. Home Address 2
  3. Home City
  4. Business Address 1
  5. Business Address 1
  6. Business City
  • We have to create 3 different rules and 3 place holders to populate address 1 , address 2 and city for home address
  • Same is the case to generate different address fields of type business. We need to create 3 more rules.
  • Create separate placeholders as below:

RTEDoc.png

  • Create a rule for Document Generation Template Rule and select Address as Object:

    RuleCreation.png

  • Create separate rules for each address placeholders. Only 1 set statement can be added in the rule:

(Below screenshot is a sample rule to fetch city for home address in [[test]] placeholder)

 CitySet.png

  • Add the rule mapping into document mapping:

mappingRule.png 

Address document generated based on new placeholders and rules:

DocCreated.png

Keywords

address document, generate address, generate document , address proof , address letter , Create Separate rules for each Address Placeholders ( Note : Only One Set Condition is supported), placeholders, different, types, error, The document cannot be generated as the following placeholders with multiple values in the same row are mapped to different base object, multiple types, how, to, document mapping, grid, portlet. , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , How To

Product

SAP SuccessFactors Employee Central all versions