Assigning a Process Code (Direct Inbound Processing)

This section describes how to assign a new process code to the new function module. This enables the function module to be identified from the partner profiles defined in the IDoc Interface when an IDoc of the new message type is received.

Prerequisites

You must have completed the required steps in Defining and Using a Basic Type .

Procedure

  1. Choose SAP Menu ® Tools ® IDoc Interface/ALE ® Development ® Inbound Processing ® Process Code (WE42), or navigate to Inbound Processing Process Code, then  and New Entries.
  2. Enter your process code and a description. Choose the Processing with ALE and Processing by function module options and save your entries.

The maintenance screen is displayed (either automatically or manually), in which you can assign the inbound function module to the process code.

  1. Choose New entries and enter in the detail screen:
  • Your process code
  • Module (inbound) frame: Your function module and the maximum number of attempts permitted for posting the application data before exception handling is triggered.
  • IDoc frame: Your object type, the trigger event inputErrorOccurred and the completing event inputFinished.
  • Application object frame: Your object type

Leave the other fields blank. Save your entries and return to the process codes inbound initial screen.

  1. Go back using  to maintain the inbound process codes and choose the Logical message navigation.
  2. In change mode choose New Entries.
  3. Enter the message type (logical message) and the process code and save your entries. As a result, the possible entries (F4) in the partner profiles can display the possible process codes from the logical message, that is, the business view.

If you chose all types in the last step, the value help displays the process code for all message types. This is also valid for both other options for message type and function.

Result

This assignment has specified a new process code for the function module. You can now enter this process code in the partner profiles.

Make the following entries for the example:

Process code

TESTEIN

Basic type

TESTER01

Function module

IDOC_INPUT_TESTER

Maximum number of attempts

0

Message type (logical message)

TESTER

IDoc object type

IDOCTEST

Application object type

BUS2032 (sales order)