R1150R Brakes

servus, have some questions for the purpose of the braking system, I have 2 motorcycles, once a fireblade sc50 and once a boxer R1150R Bj 2002, now I wanted to change the brake fluid yesterday at both machines… at the honda everything worked smoothly, but at the bmw I screwed the lid on top of the brake lever, let the motor run (because of abs) and when I pressed the lever, it sprayed out the upper brake fluid. n to pump, that ran 10 sec well, then just take air, although there was still liquid in the tank above… and pumping is also nciht more inside… now the ABS lamp flashes with running motor, and braking system without function, first it slows down normally, with stronger actuating it falls out, and bremms no longer… can someone please help me further, or tell me what I did wrong… banks in advance…