To have an engineer refill someone's ammo you just need to take control of the engineer and touch the person you want to give ammo to.
It sounds like you are trying to destroy the ruin walls? It should only take one hit from a lancer to knock them down, and then leave them up to slow down the megatank.
...