Dennis, your situation seems to be similar to the one I had some time ago.
With revision 41, I had this error.
http://scn.sap.com/thread/3324315
Update fail because of foreign key on unrelated fieldThe working solution is either to set the foreign key to update cascade or drop it.
Maybe they corrected it at revision 38?