To create object type IDOCXAMPLE, you can copy object type IDOCMATMAS in the Business Object Builder (transaction SWO1):
In the Business Object Builder, enter IDOCMATMAS as the object type and choose Copy.
A dialog box appears: enter the name of your object type (for example, IDOCXAMPLE) and your report (for example, RXAMPLE1) and select Copy.
The naming convention for SAP is IDOC<Message type>, for example, IDOCXAMPLE.
The naming convention for customers is ZDOC<Message type> for example, ZDOCXAMPLE.
A dialog box appears. Enter your package.
Edit the object type you have created (for example, IDOCXAMPLE) as follows:
Choose Change.
A dialog box appears: do not choose any of the options, just press Enter.
Select Basic Data and change the object's short text and description as required.
The naming convention for the short text is "IDOC <Message type>", for example , "IDOC XAMPLE".
Choose Back.
Change the description of the event inputFinished as follows:
Look at the events by expanding the hierarchical list under the heading Events; double-click the event inputFinished, change the description and press Enter.
Change the event's parameter Appl_Object as follows:
Choose Appl_Object parameter. Change the object type BUS001 to the object type that has been processed by your inbound function module. Also change the short text and the description.
and then double-click theIf a suitable application object type does not exist for your inbound function module, delete parameter Appl_Object rather than changing it. To do this, select the Appl_Object parameter and then select Delete rather than double-clicking the parameter.
Select Back and save the object type ( ).
To generate the object type, select Generate.
Release the object type as follows:
Return to the initial screen and choose
and then .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.