Symptom
- Attachment not getting saved in work permit (Personal Document Information).
- How does attachment-id field works in work permit (Personal Document Information) portlet with Centralized Services : CS switch enabled "Enable Centralized Services for Work Permit to save changes on Editing UI"? Please note that this switch is Universal from 1H 2023 release onwards, hence it's enabled by default and cannot be disabled.
Environment
- SAP SuccessFactors Employee Central
Reproducing the Issue
Scenario 1: Legacy / CS switch for work permit Off and attachment-id field not present/configured in the data model (Manage Business Configuration)
- Go to work permit portlet of an employee.
- Observe that Attachment field is visible.
- Create a new record with attachment.
- Result: attachment saves (if worklfow involved completely approve workflow).
Scenario 2: CS switch for work permit On and attachmen-id field not present/configured in the data model (Manage Business Configuration)
- Go to work permit portlet of an employee.
- Observe that Attachment field is visible.
- Create a new record with attachment.
- Result: attachment does not get saved (if workflow involved completely approve workflow).
These are reproducible in both UI and import methods.
Cause
The legacy(original code/non-Centralized Service) behavior: without attachment-id field configured, UI treats it as enabled by default when saving. And with attachment-id field disabled, it treats it as disabled when saving.
Resolution
- This attachment-id field whether its configured in data model or not will not relate to the CS(Centralized Services) switch On or Off "Enable Centralized Services for Work Permit to save changes on Editing UI".
- CS switch On or Off only changes the way system writes to database (Saving) therefore it cannot read if the field is configured in data model or not (but can detect, if field is enabled or disabled). Therefore, with CS switch on, UI treats attachment-id as disabled by default if the attachment-id field not configured(deleted) from the data model.
- Solution: If the attachment-id field is needed to be used in system, just mark attachment-id Enabled as Yes/No from Manage Business Configuration (BCUI) / data model, and this field will work fine as per it's enabled or disabled state.
Keywords
"Enable Centralized Services for Work Permit to save changes on Editing UI", workPermitInfo, attachment-id, attachments not getting saved, CS2H2022, INC3970858 , KBA , LOD-SF-EC-PER-WRK , Work Permit - Config, Rules, RBP, UI , Problem