Symptom
An account is being used for clearing and another user (or the same user) tries to use this account. Error messageF5287 "Account & & is currently blocked by user &" is displayed.
Environment
SAP S/4HANA Cloud.
Reproducing the Issue
- Run the clearing applications for one specific account.
- Use the same account number for another clearing process.
Cause
If an account is used for clearing, this account is then locked for further clearing actions or cancellation transactions. The lock refers to the entire account. By means of this lock, it should be avoided that database inconsistencies are created. This is the standard system behavior.
For security and data safeguards, SAP will lock/unlock programs from being processed simultaneously, through an ENQUEUE process. If accounts are processed by other users at the same time, postings on these accounts will fail.
Resolution
It is not possible to clear items on a single account by concurrent users (or the same user, even), as all open items on one account could be selected if a clearing transaction is used. Therefore, we have to completely lock the account. Otherwise, two users could select the same items for clearing, which could cause update terminations in the system as only one of these two clearing documents will be posted. Thus, it is not possible to lock only single line items.
Keywords
F5287, Account & & is currently blocked by user &, Clear G/L Accounts. , KBA , FI-FIO-GL , Fiori UI for General Ledger Accounting , FI-FIO-GL-2CL , Fiori UI for General Ledger Accounting (Public Cloud) , Problem