SAP Knowledge Base Article - Public

3585554 - SAC - function Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Open) does not work any longer

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

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, Javascript function, TABLE.getDataLocking().getState(SELECTED_CELL),getDataLocking().setState(SELECTED_CELL), getState(), setState(), data locking, product limitation
 
, KBA , LOD-ANA-PL-DLK , Data Locking , Problem

Product

SAP Analytics Cloud 1.0