Secondly you are only taking in "development work", but such a contract entails other things - certainly there is a penalty if they deliver too late - there is legal risk to cover, if they deliver crap in some legal sense they are liable - probably SAP had other contracts which they had to postpone - count in all the lawyers writing the contract :-D
And yes, they certainly made a profit out of this and yes a proper biding procedure might be better, but given the timelines and the transparency I think it's ok.