A&O and Shearman close £3.4bn SAP takeover