Magnetic ordered structure by indirect exchange in metallic overlayers