In Example Program for Generating an IDoc, an IDoc with message type XAMPLE and IDoc type XAMPLE01 is created. Parameters APPL_HEADER and APPL_ITEM provide the application data.
Sample Code from Inbound Processing
Using the Sample Code