A man is riding up an escalator that is carrying shopping carts.
The man is inside a building.
If a man is using an escalator then he has to be inside a building in order to use it.
If someone is riding up an escalator this implies that they are inside a building.
He is on a escalator which implies being inside a building.