EDI (Electronic Data Interchange) allows electronic exchange of business documents between trading partners using a standard format over a network. IDOCs (Intermediate Documents) are containers used to exchange data between SAP systems. The outbound process involves creating application documents in SAP, generating IDOCs, transmitting them via EDI standards to business partners. The inbound process receives EDI transmissions, converts them to IDOCs, and creates application documents in SAP. Key components for processing IDOCs include ports, RFC destinations, partner profiles, and message control. Transaction codes are used to setup logical systems, ports, partner profiles, IDOC types and more for processing outbound and inbound IDOCs between SAP systems