(Application Interface Framework) is a powerful tool which not only makes it possible to separate business logic from technical mappings but also allows for interface monitoring. In this blog, I would like to shed some light on the AIF error handling solution that can be accessed through <\/span>\/aif\/err <\/b>t-code.\u00a0<\/span><\/p>\n This blog explains:<\/p>\n \n<\/div>\n Keep in mind that in order to trace any interface traffic the monitoring functionality has to be set up for a particular interface. If you don’t know how to perform the initial steps please check this blog by Mateusz Nowak:\u00a0<\/span><\/p>\n https:\/\/www.int4.com\/enable-monitoring-of-idoc-interfaces-in-sap-aif-in-less-than-3-minutes\/.\u00a0<\/span><\/a><\/p>\n When we initially access <\/span>\/aif\/err <\/b>the first thing that catches the eye is a complex selection screen divided into different sections. Selection details are required to filter out interfaces and messages we are interested in:\u00a0<\/span><\/p>\n In the application selection, we must provide an error handling application?s unique ID. This is <\/span>the application to be used for Monitoring and Error Handling. By default, it’s always AIF.<\/span><\/p>\n <\/a><\/p>\n <\/p>\n The Next step is to provide the <\/span>Namespace (2)<\/span><\/i>, <\/span>Interface Name<\/span><\/i> (3)<\/span><\/i> and <\/span>version<\/span><\/i> (4)<\/span><\/i> of the interfaces <\/span>we want to monitor. We can provide more than one interface name, but the results will be limited <\/span>to interfaces within a single namespace. If we would like to view traffic across all interfaces that go through AIF we must leave these selection screen fields empty.\u00a0<\/span><\/p>\n <\/a><\/p>\n The easiest way to select a single interface is to use the <\/span>Select Interface<\/span><\/i> button <\/span>(7)<\/b>, which reveals a tree-structure view of all available interfaces and their versions.\u00a0<\/span><\/p>\n <\/a><\/p>\n What is worth mentioning we can narrow our search results, even more, limiting them to selected message classes <\/span>(5)<\/b> and numbers <\/span>(6)<\/b>.\u00a0<\/span><\/p>\n <\/p>\n In order to facilitate filtering out the relevant messages, custom selection fields can be set up. This, however, requires creating index tables and additional module pool report for the selection screen. If you would like to get more familiar with this concept please read <\/span>https:\/\/www.int4.com\/how-to-create-a-single-index-table-in-sap-aif\/<\/span><\/a>.\u00a0<\/span><\/p>\n <\/a><\/p>\n <\/a><\/p>\n In Generic Selection we can restrict results to time periods or even specific messages by providing Message GUIDs (8).\u00a0<\/span><\/p>\n <\/p>\n Finally, <\/span>status selection <\/span><\/i>allows us to view only messages with certain status i.e. which are currently <\/span>In Process <\/span><\/i>or that stopped processing due to <\/span>Technical Errors.\u00a0<\/span><\/i><\/p>\n <\/a><\/p>\n Now let’s take a quick look at the <\/span>Results overview<\/b>. Initially, it consists of 4 quarters:\u00a0<\/span><\/p>\n <\/a><\/p>\n <\/p>\n <\/p>\n <\/p>\n If we have executed the transaction in the <\/span>Technical Mode<\/span><\/i> (9) <\/b>in the results, we will be able to benefit<\/span><\/p>\n <\/a><\/p>\n from an additional view containing a structure of Interface Processing. It will allow us to determine at which stage of interface processing an error occurred i.e. In this case, we have an error that came up during mapping->checks stage:<\/span><\/p>\n\n
\n
Application Selection:\u00a0<\/b><\/h3>\n<\/li>\n<\/ul>\n
\n
Application-Specific Selection<\/b><\/h3>\n<\/li>\n<\/ul>\n
\n
More Specific Selection\u00a0<\/b><\/h3>\n<\/li>\n<\/ul>\n
\n
Generic Selection <\/b><\/h3>\n<\/li>\n<\/ul>\n
\n
Status selection<\/b><\/h3>\n<\/li>\n<\/ul>\n
\n
\n
\n