FRANKFURT (Reuters) - Bayer said it had agreed to sell more crop science businesses to BASF in a deal that fulfils undertakings to the European Union and other regulators as part of its takeover of Monsanto.

The package, being sold for up to 1.7 billion euros (1.5 billion pounds), includes its global vegetable seeds business, certain seed treatments and digital farming activities with total sales of 745 million euros in 2017.

"With this move, we are implementing the corresponding undertakings made to the European Commission and other regulatory authorities to allow the successful closing of the Monsanto transaction," Werner Baumann, Chairman of the Board of Management of Bayer AG, said in a statement.

The sale is subject to the closing of the Monsanto takeover. It includes the transfer of 2,500 staff, around 150 of them in Germany. BASF has committed to keep all permanent positions for at least three years after the deal closes.

(Reporting by Douglas Busvine; Editing by Michelle Martin)