Thanks all for advising. Just to update that the fault has been rectified. It was the piece of 'earth(-)' strap from the battery to the body. When that was replaced, the warning message has not appeared since.
Explanation is similar to this : "The E60 battery negative lead has an Intelligent Battery Sensor built into it,the early ones were prone to moisture causing an internal fault inside it,just above its location there is a vent that can let a little moisture in. The new IBS's are completly waterproof and i haven't had to change one yet. If the sensor is faulty it can stop the car going into sleep mode and actually cause the battery to go flat,the complete opposite of its invention.
The dealers have an energy diagnosis test that highlights if there is a battery drain fault,but if that shows up o.k,i would suspect the i.b.s is faulty.
If a battery has gone faulty and it is replaced,then we have to register it in the ibs's memory so it can start monitoring the battery drain accurately again.
I've seen cars that haven't had a new battery registered keep putting up check control messages because the ibs is confused.
If u disconnect the little red wire on top of the ibs,(its power supply) the battery then goes back to just being a negative lead again,so you could try that and if the battery doesn't go flat then u could buy an ibs
Strictly speaking if you fit a new one you are meant to carry out a full software update.
You could try ur local dealer for a goodwill claim,its worth a phonecall to them"