IDoc is an SAP object that carries data between systems electronically in the form of messages. It can transfer data from SAP to non-SAP systems via EDI or between two SAP systems using ALE. IDocs have different types depending on the direction - outbound IDocs are sent from SAP to external systems while inbound IDocs are received by SAP from external systems. Configuring IDocs involves creating IDoc types, message types, ports, partner profiles and more to define the electronic exchange of data between systems.