Show TOC

Procedure documentationAssigning 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 Start of the navigation path SAP Menu Next navigation step Tools Next navigation step IDoc Interface/ALE Next navigation step Development Next navigation step Inbound Processing Next navigation step Process Code (WE42) End of the navigation path, 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.

  3. Choose New Entries. Enter the following in the details screen:

    • Your process code

    • Inbound module 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 Inbound Process Codes initial screen.

  4. Go back using to maintain the inbound process codes and choose the Logical Message navigation.

  5. In change mode choose New Entries.

  6. Enter the message type (logical message) and the process code and save your entries. The F4 input help in the partner profiles can then display the possible process codes from the logical message, that is, the business view.

    Note Note

    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.

    End of the note.

Result

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

Example Example

Make the following entries for the example:

Process code

TESTINB

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)

End of the example.