Do you have any question about this error?
Message type: E = Error
Message class: KM - Error messages for Profit Center Accounting
Message number: 021
Message text: Hierarchy is locked and therefore cannot be changed at present
You tried to change a profit center group.
The group you tried to change, or a group that contains that group, is
currently locked by user &V1&.
Try to change the group again in a few minutes. If necessary, contact
user &V1&.
Error message extract from SAP system. Copyright SAP SE.
KM021
- Hierarchy is locked and therefore cannot be changed at present ?The SAP error message KM021, which states "Hierarchy is locked and therefore cannot be changed at present," typically occurs in the context of SAP Controlling (CO) when you attempt to make changes to a hierarchy that is currently locked for editing. This can happen for various reasons, such as ongoing processes that require the hierarchy to remain unchanged, or if the hierarchy is being used in a report or transaction that is currently active.
Causes:
- Active Processes: The hierarchy may be locked because it is being used in an active process, such as a planning run or a report generation.
- User Lock: Another user may have locked the hierarchy for editing.
- Time Period Lock: The hierarchy may be locked due to a specific time period being closed for changes.
- System Lock: The system may have a temporary lock due to background jobs or other system processes.
Solutions:
- Check Active Processes: Ensure that no active processes are using the hierarchy. You can check for any ongoing planning runs or reports that might be locking the hierarchy.
- Wait for Release: If another user is editing the hierarchy, you may need to wait until they finish and release the lock.
- Check Time Period Settings: Verify if the time period for which you are trying to make changes is open. If it is closed, you may need to open it or wait until the next period.
- Use Transaction Codes: You can use transaction codes like
KAH1
(Create Hierarchy) orKAH2
(Change Hierarchy) to check the status of the hierarchy and see if it is locked.- Contact Administrator: If you are unable to determine the cause of the lock, contact your SAP system administrator for assistance. They can check system logs and user locks to identify the issue.
Related Information:
KAH1
, KAH2
, and KAH3
(Display Hierarchy) to manage hierarchies effectively.By following these steps, you should be able to identify the cause of the KM021 error and take appropriate action to resolve it.
Get instant SAP help. Start your 7-day free trial now.
KM020
Period(s) to be changed must include all of the period of validity
What causes this issue? The controlling area and the profit center group (subhierarchy) must be identical in all existing valid periods.System Respon...
KM019
Profit center group & cannot be used here
What causes this issue? The profit center group <(>&<)> is not assigned to the standard hierarchy.System Response The system issues ...
KM022
& may not be used as a profit center name
What causes this issue? In customizing, you defined a name for a profit center on which data that cannot be assigned immediately can be stored tempor...
KM023
Specify a hierarchy area
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.