In this article we will focus on understanding integration with IDOCs.  In simple terms IDOCs are structured XMLs which can be pushed into and out of SAP. Know more here.