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

Customize an IDoc Interface with Runtime and Monitoring

Create an IDoc interface to be able to carry out data checks and mappings as well as the monitoring and error resolution capabilities of SAP Application Interface Framework.

Overview

🎓 beginner 45 min. SAP Application Interface FrameworkBeginnerSAP S 4hana

You will learn

  • How to create an IDoc interface
  • How to use the IDoc Structure Generator
  • How to implement a mapping in SAP Application Interface Framework
  • How to create an action to call the actual application
Unknown U Unknown July 31, 2023
Created by July 21, 2023
Contributors

Prerequisites

Prerequisites

  • You have set up SAP Application Interface Framework
  • SAP S/4HANA 1709 or later, SAP Application Interface Framework 4.0
  • Optionally: You have a working IDoc communication in place

Steps

Intro

In this tutorial, you’ll learn how to create and customize an IDoc interface. In this process, you’ll use the IDoc Structure Generator to create interfaces to display and process IDocs.

If you don’t have a working IDoc scenario in place, the first five steps show you how to set up the IDoc communication with the IDoc message type FLIGHTBOOKING_CREATEFROMDAT. The steps show you how to process an IDoc with SAP Application Interface Framework instead of using the IDoc standard processing. Otherwise, if you have an existing IDoc communication set up, you can skip the first two steps and start with step number three in order to change the IDoc processing from the standard processing to the SAP Application Interface Framework processing.


Step 1 Create RFC destination

  1. Open your system. Go to Configuration of RFC Connections (transaction code SM59) and choose Create.

  2. Enter a destination name following the naming convention <SID>CLNT<client>, with <SID> being your system ID and <client> the client number of your system. As Connection Type, choose 3 RFC connection to ABAP system. Choose Continue. The settings for your newly created destination open.

  3. Switch to the Logon & Security tab. Maintain Language and Client and set the Current User flag.

    Create RFC destination
    Create RFC destination

  4. Save your changes.

Step 2 Create port
+
Step 3 Assign function module to message type and basic type
+
Step 4 Create process code
+
Step 5 Create partner profile
+
Step 6 Create package and function group
+
Step 7 Create namespace
+
Step 8 Generate ABAP Dictionary structure and interface
+
Step 9 Change generated interface
+
Step 10 Select source and destination structures
+
Step 11 Define mapping
+
Step 12 Define action
+
Step 13 Create interface-specific single index table
+
Step 14 Create recipient for interface
+
Step 15 Assign recipient to interface
+
Step 16 Assign users to recipient
+
Step 17 Create test data
+
Step 18 Test IDoc interface
+
Step 19 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 19
1. Create RFC destination 2. Create port 3. Assign function module to message type and basic type 4. Create process code 5. Create partner profile 6. Create package and function group 7. Create namespace 8. Generate ABAP Dictionary structure and interface 9. Change generated interface 10. Select source and destination structures 11. Define mapping 12. Define action 13. Create interface-specific single index table 14. Create recipient for interface 15. Assign recipient to interface 16. Assign users to recipient 17. Create test data 18. Test IDoc interface 19. Test yourself

Learn more →