The taSopHdrRecalc stored proc is called by eConnect in a few places, I came across it when submitting a taCreateSopPaymentInsertRecord.
I have the code below in production at a client, it's a wrapper around the taSopHdrRecalc procedure; it adds error handling minor business logic.