The alter database you issued won't help with this instance of the error because the error is about space in the database named "saptempdb", what you altered was the database named "ED1".
Since you are on 15.7 SP100 or higher, you can use the ALTER DATABASE ... OFF command to shrink the database. See Shrinking a Database .
-bret