Enable task "Unlock SAP User" only when Uflag is 128 (Locked after failed logon)

Hi all

I need to configure a system user to execute the task "Unlock SAP User" only when a Uflag is 128.

I searched on DB any reference to lock/unlock sap user, but I find nothing.

Do you have some idea ?

Thank you very much and best regards

Ermes