Symptom
- How to Direct map the User ID in Document Generation via Job Information
- While generating document you get error 'You do not have permission to access the following placeholders : ***.' for User ID despite of proper permissions.
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 HXM Suite
- SAP SuccessFactors Employee Central
Reproducing the Issue
For a Document Template Mapping, you have the following configuration:
- Mapping Type: Direct
- Base Object: Job Information
- Target Field: User ID
When going to Actions and try to Generate Document, get error: "You do not have permission to access the following placeholders:***", even with the appropriate permissions granted:
Cause
This is an expected behavior as the User Id referred in document is being fetched from Job Information (this field does not exist in Job Information section but can be used to get the User Id) and the role based permission Employee Data > User Id is not enough to generate it.
Resolution
It is recommended to use reference mapping as SUBJECT_USER_ID. However, there is a possible workaround if you wish to use the option of mapping User Id via Job Information. Please see steps below:
- Create a custom-string in Job Information (for this example we have named it "Doc-UserID", but you name it as you prefer)
- Create a business rule to put the User Id value in this custom-string. As sample rule shown below:
- Assign the business rule to trigger onSave on Job Information in Manage Business Configuration:
- Grant at least View permission for the custom-string field:
- Select the custom-string created as the Target Field in the Document Generation Mapping Template:
- As a last step before generating the document, you need to create a record on the employee's Job Information and save it, this way the business rule will populate the custom-field with the User ID in Job Information to be fetched by the Document Generation.
PS: This type of rule cannot fetch userID and store onto custom-field during hire as no values of job data are available at the time of hire. It can be fetched only after the hire process using any onSave/onChange rule triggered in a separate transaction post hire. Then docGen can use this custom field value to display the information.
See Also
FAQ - Additional Information
Q) Where can I get information on this from the Guide?
A) Guide: Implementing Document Generation Section - Document Generation - Troubleshooting Tips | SAP Help Portal
Keywords
You do not have permission to access the following placeholders, generate, user ID, document, rule, Job Information, direct, placeholder, mapping type, base object, target field, custom-string, custom-field, custom, document generation, mapping, , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , How To
Product
Attachments
| DocTempMap_UserID_BCUI.png |
SAP Knowledge Base Article - Public