A comment from me on another topic
But the function principle is nearly the same:
For you the system A should also be a ESS with Meter.
On top of this vou would need a second Hager SFT440 (or something else) to switch the Input if the two systems to the grid (if system A fails or while maintenance).