There are 2 syntax error in your SQL, a comma after =1 and a missing END.
And you can not use a calculated column in an other calculation in the same SELECT statement, you could e.g. use a CTE like
;with cte as
(SELECT OD.OrderID, OD.Quantity,
CASE
WHEN OD.Quantity > 30 THEN 1
WHEN OD.Quantity = 30 THEN 0
ELSE 0
END AS QuantityText
FROM OrderDetails OD)
select *,
CASE
WHEN cte.QuantityText = 1 THEN 'A'
ELSE 'B' END as AB
from cte