Docs / Inbound Messaging / IDoc Configuration Guide

IDoc Configuration Guide

SAP-side configuration steps for inbound IDoc processing with the ASAPIO Integration Add-on: setting up the partner profile, message type, function modules and inbound object needed to receive and process inbound IDocs.

Note: This guide assumes the logical system, distribution model and IDoc port have already been set up (see Inbound Messaging Overview for the general inbound architecture). Steps are listed in the order they are typically performed.

1. Partner Profile Configuration

A) Create Partner Profile LOCAL

Explanation: Partner profiles define how IDocs are received or sent for each logical system. LOCAL is used for the current system. Partner profiles store message types, ports, and process codes for correct IDoc handling.

Steps:

WE20 Partner Profiles tree with Partner Type LS selected
WE20 — Partner Profiles, Partner Type LS
WE20 LOCAL partner profile detail with Partner No. and Partn.Type highlighted
WE20 — LOCAL partner profile detail

B) Use Default Value to Determine the Partner Profile

Explanation: ASAPIO allows automatically selecting the correct partner profile for a connection using default values. This reduces manual configuration errors and simplifies inbound processing.

Steps:

Default values overview with ACI_EDI_PARTNER_PROFILE attribute highlighted
Default values — ACI_EDI_PARTNER_PROFILE

2. Create Message Type

Explanation: Message types define the kind of business document being exchanged (e.g., material master, purchase order). ASAPIO writes its own change pointers to a message type, therefore a new message type needs to be created for each Outbound Object.

Steps:

3. Assign Message Type to IDoc Type

Basic type: /ASADEV/ACI_GENERIC_IDOC

Explanation: This step links a message type with a specific IDoc structure (basic type). Without this mapping, the system will not know which IDoc layout to use for a message.

Steps:

WE82 Output Types and Assignment to IDoc Types
WE82 — Output Types and Assignment to IDoc Types

4. Assignment of FM to Logical Message and IDoc Type

Explanation: Function modules process IDocs. Assigning a function module ensures the correct processing logic is executed when an IDoc of a specific type and message is received.

Steps:

WE57 IDoc Assignment of FM to Logical Message and IDoc Type
WE57 — Assignment of FM to Logical Message and IDoc Type

5. Characteristics of Inbound Function Modules

Explanation: Inbound function modules process IDocs when received. Defining their characteristics ensures the system knows which modules are responsible for processing incoming messages.

Steps:

BD51 Characteristics of Inbound Function Modules
BD51 — Characteristics of Inbound Function Modules

6. Create Inbound Process Code

Explanation: Inbound process codes connect the partner profile, message type, and function module, defining how inbound IDocs are processed automatically.

Steps:

WE42 Inbound process code details
WE42 — Inbound process code details

Assign FM to Process code:

Function modules for inbound ALE-EDI details
Function modules for inbound ALE-EDI — assigning the FM to the process code

7. Add Message Type to Inbound Partner Profile

Explanation: This step enables the system to recognize which message types should be processed inbound for a given partner profile.

Steps:

WE20 partner profile with inbound parameters section
WE20 — partner profile, Inbound parmtrs. section
Partner profiles inbound parameters detail with process code
Partner profiles: Inbound parameters detail

8. Configure Inbound Object

Explanation: Inbound objects define which outbound objects (e.g., business data) should trigger inbound IDocs. This mapping is required for automatic data replication. The function module /ASADEV/ACI_SAMPLE_IDOC_JSON2 converts any incoming JSON payload into a generic ASAPIO IDoc. Processing takes place in a custom coded process code.

Steps:

Change View Inbound Objects Details with function name, message type and trace
Inbound Objects — Details