An volume filling device for treatment of obesity is placed outside the stomach wall of the patient to reduce the inner volume of the stomach, thereby affecting the patient's appetite. By providing the volume filling device outside the stomach wall, contact with stomach acids is avoided, thereby increasing the life of the device.