putting a block always in the block surface

Is there any command to put a block always in the block surface.

I tried with setblock aside a block and it replaces the solid block with fire.

Continue to help post