Question: what is the difference between message type and idoc type?
Answer: A message type represents the application message exchanged between R/3 systems and R/3 and an external system. A message type characterises the data sent across systems and relates to the structure of the data called an IDOC type. An IDoc type specifies the structure of the data.