Show TOC

Creating IDoc Object Type IDOCXAMPLELocate this document in the navigation structure

Procedure

To create object type IDOCXAMPLE, you can copy object type IDOCMATMAS in the Business Object Builder (transaction SWO1):

  1. In the Business Object Builder, enter IDOCMATMAS as the object type and choose Copy.

  2. 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.

  3. A dialog box appears. Enter your package.

Edit the object type you have created (for example, IDOCXAMPLE) as follows:

  1. Choose Change.

  2. A dialog box appears: do not choose any of the options, just press Enter.

  3. 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.

  4. 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.

  5. Change the event's parameter Appl_Object as follows:

    Choose Start of the navigation path Goto Next navigation step Obj. Type Components Next navigation step Parameters End of the navigation path and then double-click the 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.

    Note

    If 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 ( Start of the navigation path Object Type Next navigation step Save Next navigation step Check End of the navigation path).

  • To generate the object type, select Generate.

  • Release the object type as follows:

    Return to the initial screen and choose Start of the navigation path Object Type Next navigation step Change Release Status Next navigation step Implemented End of the navigation path and then Start of the navigation path Object Type Next navigation step Change Release Status Next navigation step Released End of the navigation path.

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.