Can't you do what Vadim suggested initially: in your BADI analyze of there was an error in writing to cube A and in that case do not update cube B?
Yes, you'll have partial results in cube A, but use can still fix remaining records. After all of them are written back correctly you can change record in cube B.