Symptom
The function `Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Open)` in SAP Analytics Cloud Planning is not working as expected and it displays below error message:
"the object type ('sap.ui.unified.Menu') via its string name is deprecated, since it leads to accesses to the global namespace.
The object type either stems from an explicitly given 'Type' value or was inferred from the default aggregation type.
Please require the respective object type module beforehand. For control development, please also refer to the runtime metadata property 'defaultClass', which allows you to specify a default aggregation class type via constructor reference. "
Environment
SAP ANALYTICS CLOUD
Cause
This is a product limitation which has been fixed in 2025.08.
Resolution
The issue that you have experienced is a known limitation, namely: in order to be able to call Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Locked) you need to have called at least once Table_1.getPlanning().getDataLocking().getState(anyOthervalidSelection).
However, with the version 2025.08 this limitation has been fixed and the workaround mentioned above should not be necessary anymore. Please validate that Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Locked) works as expected now.
See Also
- https://launchpad.support.sap.com/#/notes/2424376
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an incident for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using Google or Bing:
- https://www.google.ca/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Keywords
SAP Knowledge Base Article - Public