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:

  1. Select object type IDOCMATMAS and then select Copy
  2. A popup window appears: enter the name of your object type (e.g. IDOCXAMPLE) and your report (e.g. RXAMPLE1) and select Copy
  3. The naming convention for SAP is IDOC<Message type>, e.g. IDOCXAMPLE

    The naming convention for customers is ZDOC<Message type> e.g. ZDOCXAMPLE

  4. A popup window appears. Enter your development class

 

Edit the object type you have created (e.g. IDOCXAMPLE) as follows:

  1. Select the object type (e.g. IDOCXAMPLE) and then select Change
  2. A popup window appears: do not choose any of the options, just press Enter.
  3. Select Basic data and change the object's short text and description to fit your needs
  4. The naming convention for the short text is "IDOC <Message type>", e.g. "IDOC XAMPLE".

    Select Back.

  5. Change the description of the event inputFinished as follows: Look at the events by expanding the hierarchical list under the heading Events; double-click on the event inputFinished and now change the description and press Enter
  6. Change the event’s parameter Appl_Object as follows: Select menu options Goto ® Obj. type components ® Parameters, and then select parameter Appl_Object by double-clicking on it. 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.

 

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.