Creating IDoc Object Type: IDOCXAMPLE 
From the initial R/3 screen you can get to the Business Object Repository (BOR) via menu path via Tools
® SAP Business Workflow ® Development, then select Object repository.In the hierarchy, go to object type IDOCMATMAS under Cross-Application Components
® IDoc Interface/Electronic Data Interchange ® IDOC ® IDOCAPPL.Copy the object type IDOCMATMAS as follows:
The naming convention for SAP is IDOC<Message type>, e.g. IDOCXAMPLE
The naming convention for customers is ZDOC<Message type> e.g. ZDOCXAMPLE
Edit the object type you have created (e.g. IDOCXAMPLE) as follows:
The naming convention for the short text is "IDOC <Message type>", e.g. "IDOC XAMPLE".
Select Back.

If a suitable application object type does not exist for your inbound function module, then delete the parameter Appl_Object rather than changing it. To do this, select the parameter Appl_Object and then select Delete rather than double-clicking on the parameter.
As an option, you can add a further parameter Application_Variable to the inputFinished event's container. This variable is filled with the contents of the inbound function module's export parameter Application_Variable. To see an example where this parameter is used, look at the object type IDOCORDERS.