copy from
http://www.ducati.ms/forums/40-sport-touring/99862-how-hard-replace-st4-battery.html
Had to do it just this year. It took about 1 hour to do the job, and I have had a ton of experience with fairing round-trips since my '02 ST.
If you've never taken the fairing off, plan on about 4-5 hours. It's not that it's complicated, but it is tedious until you have done it a few times.
The general procedure is:
* Take off the dash surrounds (on the > '04 you need to take the windshield and dash module out as well)
* Un-bolt the mirrors and put them aside
* Remove the nose fairing
* On the < '03 take off the air conveyor at the front of the nose
* Remove the right-hand side fairing and lower as one unit
* Replace the battery
* Reverse the order to put the fairing back on
You will need a 5mm (possibly 4mm, can't recall) and 6mm allen wrench (or the supplied keys in the tool kit, which come in handy for the dash parts) for the wellnuts and a 8mm socket for the mirrors. The battery terminal is either 8 or 10mm, I forget.
It's a sucky job, so take it slow and lay everything out so you know the order and which parts go where. Nothing worse than breaking the plastic as you tighten down a bolt and the piece isn't sitting properly.
Please note that the metal for the mirror base is extremely soft and it only takes a small amount of over-tightening to strip the threads. Go gently so it's snug, the mirrors will always flop around a bit unless you install different springs.
Diagrams of the mounting fastener locations are attached (you only need to take off the externally-visible bolts to get the fairings off).
as for the battery depends on how much you want to spend
http://www.atbatt.com/motorcycle-batteries/b/ducati/m/st4-916cc-99-00.asp
usa site but gives serial numbers $ price