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

Modify Error Handling with Custom Objects

Maintain custom objects to customize the error handling in the message monitor of SAP Application Interface Framework.

Overview

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

You will learn

  • โœ”How to create a custom hint to provide additional information about how to solve a particular error
  • โœ”How to create a custom data link that links a particular error code to a field in the data structure
  • โœ”How to create a custom message text to replace the default log message text with a user-specific text
  • โœ”How to create a custom function to navigate to a transaction
Unknown U Unknown December 8, 2022
Created by May 30, 2022
Contributors

Prerequisites

Prerequisites

Steps

Intro

In this tutorial, you will learn how to use custom objects to simplify the error resolution of an interface in SAP Application Interface Framework.

You can link custom objects, such as hints, data links, message texts, and functions, to a log message and an interface to modify the error handling process to your preference.

This tutorial focuses on creating custom objects for an IDoc interface. Note that custom objects are also supported for any other technology that SAP Application Interface Framework supports, such as Proxies or Web Services.


Step 1 Send sample requests
โ€”

As custom objects are defined directly in the Message Monitor based on an existing log message, let’s first create a couple of sample messages to use later.

Send in new test IDocs, for example using the Test Tool for IDoc Processing (transaction code WE19).

  1. Send in a new test message with a new customer. The message should be processed successfully.

  2. Send in a new test message with a wrong customer type (for example, change CUSTTYPE to X). This message should run into an error.

  3. In SAP GUI, check the results of your test in the Interface Monitor (transaction code /n/AIF/IFMON).

    When you select the summary line for your interface, you’re forwarded to Monitoring and Error Handling, where you can see your selected test messages. Choose either the Success or the Error icon to display the respective message. One message should be in status Successful with the message text confirming that the flight customer has been created. The other message should be in status Error with the message text Customer type can be only B or P.

Monitoring and Error Handling
Monitoring and Error Handling

Step 2 Create custom function
+
Step 3 Create custom message text
+
Step 4 Create custom hint
+
Step 5 Create custom data link
+
Step 6 Define changeable field
+
Step 7 Test custom objects
+
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. Send sample requests 2. Create custom function 3. Create custom message text 4. Create custom hint 5. Create custom data link 6. Define changeable field 7. Test custom objects 8. Test yourself

Learn more →