Symptom
The maximum length of the field Department Name in the SDK is 240 characters. However, The Department Name will be truncated to 40 characters on the Org Unit UI screen when its value exceeds 40 characters and the warning message below will appear.
- SECOND_LINE_NAME has been truncated to length 40
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to Organizational Management > Org Structures.
- Open any Org Units.
- Fill in the value for the field "department name" with a string that exceeds 40 chars.
- Upon saving, the warning message "SECOND_LINE_NAME has been truncated to length 40" appears and the value of the field is truncated.
Resolution
The field "Department Name" is limited to 40 characters in both the frontend and backend. The limit of 240 is for the encrypted name. A string's length can change after encrypting. It's technically 240, but logically it's limited to 40. SDK shows only the technical aspect. The limitation displayed at the frontend shall prevail. This is a limitation that can not be changed.
On the other hand, the Department Name (Snapshot~Name~Name~SecondLineName) is not available in the OData model. Unfortunately, this is a restriction for the Org Unit OData.
Keywords
Department Name, Truncated, SECOND_LINE_NAME, SECOND_LINE_NAME has been truncated to length 40 , KBA , LOD-LE-OM-OM , Org. Management , LOD-CRM-INT-API , OData API (C4C Only) , Problem
SAP Knowledge Base Article - Public