SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Enhance an IDoc Interface with Preprocessing

Enhance an existing "monitoring only" IDoc interface to be able to carry out data checks and mappings using the preprocessing capability of SAP Application Interface Framework before actually calling the IDoc interface.

Overview

🎓 intermediate 20 min. SAP Application Interface FrameworkIntermediateSAP S 4hana

You will learn

  • How to enhance an IDoc interface in SAP Application Interface Framework using the preprocessing capability
  • How to implement mappings in SAP Application Interface Framework
Unknown U Unknown July 31, 2023
Created by July 13, 2023
Contributors

Prerequisites

Prerequisites

  • You’ve set up SAP Application Interface Framework
  • SAP S/4HANA 2022 FPS02 or later; for lower releases, apply SAP note 3274990
  • You’ve completed the tutorial Create a Simple IDoc Interface

Steps

Intro

In this tutorial, you will learn how to enhance a simple IDoc interface in SAP Application Interface Framework by enabling the preprocessing capability. The preprocessing capability allows you to not only monitor your IDoc interface but also to implement additional mappings, data checks, business logic, and so on, without changing your existing IDoc configuration, that is, without the need to change the existing partner profile.


Step 1 Change existing interface

  1. Go to Customizing for SAP Application Interface Framework (transaction code /AIF/CUST) and navigate to Interface Development > Define Interfaces. In the upcoming dialog, enter your previously created namespace DEMO_1, and continue.

  2. Enable Change mode. Double-click the existing interface FCUSTOMER to open it. Deselect the Move Corresponding Structures flag and select the Pre-Processing flag.

    Define Interfaces
    Define Interfaces

  3. Save your changes.

Step 2 Select source and destination structures
+
Step 3 Add a fixed value
+
Step 4 Define value mapping
+
Step 5 Maintain value mappings
+
Step 6 Assign IDoc Types
+
Step 7 Test IDoc interface
+
Step 8 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Change existing interface 2. Select source and destination structures 3. Add a fixed value 4. Define value mapping 5. Maintain value mappings 6. Assign IDoc Types 7. Test IDoc interface 8. Test yourself

Learn more →