Question: what is the difference between ale edi idoc and bapi?
Answer: IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. ... While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system.