So I’ve been considering putting a 3.2 M104 into my 190e 2.6.
I know how to do the majority of this swap but I need help with the electrical side of things.
If someone can just tell me step by step on how you would do this it would be much appreciated
So the w201 you have has a m103 engine yes?
For a m104 transplant the way I would do it there is find or even better - buy a complete w124 m104 donor that is running well and check / clear any fault codes. Note the engine harness on m104s can go bad so do also make sure there is an updated / good harness on there or source one.
Note the donor 124 should be non ASR (I presume your w201 does not have ASR?) and just a plain key no IR fob.
Then take the whole motor / trans / diff ideally and fit into your w201. The wiring end of this sounds challenging but really it is not IF you have a complete donor car and work logically taking plenty of photos and notes.
Most w124s with m104 will also have an EGAS module in the passenger compartment footwell. Remove all of the HFM ECU and wiring including every relay or component connected to same going right back into the fuse box where you will find big black plugs.
Installation is the reverse of removal

with the caveat that you may need to route cables slightly differently in your w201 and may have to extend or shorten some cables. Then you may be lucky enough to find the black plug will work in your fuse box to the m104 harness. All of the m104 ECU harness of course requires removal and whilst doing this try to check circuit diagrams and wiring colours and splice the connections onto the new harness bit by bit.
The beauty of having a running donor and having it fault free to begin with gives confidence to trace any issues that may have arisin as a result of the swap (and not chasing untreated original/ old running problems the donor vehicle may have had)
Then you are into checking and potential upgrading of cooling system, brakes, exhaust etc etc.
It is certainly not a weekend task but is fully doable if you are careful and methodical!
I cant produce anything like a "How To" on this subject! Too many variables to take into account. But I am happy to assist if you embark on this and post a new thread here on 500E board off topics.