You'll need a Bavarian Technic lead to be sure of picking up all th BMW specific codes.
Agree - never buy a used pump - there's been about 10 itterations of the pump over a few years with only the later one being 'fixed'.
The current real oem should show the latest part number.
330i gone. 335i gone. E63 gone. M6GC current...