To validate the provided statement in SAP Datasphere, the syntax needs to adhere to the specific SQL-like language used by the platform. Your original expression seems to be structured correctly for logic flow but may need some adjustments for clarity and functionality in the context of SAP's syntax.
Here is a revised version of your statement, maintaining the intended logic but formatted for better adherence to potential syntactic rules in SAP