You can send an IDoc "as is" from one SAP system to another as long as they can be connected by RFC. "Middleware" is needed only if you need to convert the data.
This has nothing to do with ABAP, talk to your local Basis / network team about the connectivity.