Application Interface Framework - A Functional Consultant's Guide
Application Interface Framework - A Functional Consultant's Guide
It’s no more monitoring and error handling as separate activities, we can do proactive monitoring and error handling
that to by business user/super users even by system itself (available in AIF 3.0) in a single transaction. While I come
across this new framework of SAP, I explored few wikis and thought of sharing my experience with AIF.
Activities divided
Activities By Tcode
It’s Hierarchy
Transaction: /AIF/CUST
Most of the above customizing is done to make the framework more reusable. E.g if we have built a check or action,
this can be reused across interfaces.
Below screenshots shows a typical value mapping table with values where task list group is determined based Post
code and ext. value(this is what has come from Non SAP system). This key fields determine the ext values comes
from non-SAP system. Wild card entries are also taken care here. Sending system is nothing but an inbound
interface. The same can be a receiving system for an out bound interface.
Monitoring and Error handling – /AIF/ERR
Let me point out the functionalities around the error handling transaction.
Note: Index is connector between view 1 and view 3. The same also is the common at view 5.
a) “Restart”: We can re-process the failed messages or queues. We can do the same by selecting either one or
more messages in View no 1. This is not available in SMQ2 or SMQ1.
b) “Cancel”: We can delete the failed messages or queues. We can do the same by selecting either one or more
messages in View no 1. This is not available in SMQ2 or SMQ1.
c) “Integration Engine: Monitor”: It directly calls SXI_MONITOR with XML message ID.
d) “QRFC Monitor”: It directly calls SMQ2 for inbound queue processing or monitoring or SMQ1 for outbound queue
processing or monitoring.
A. Customize: Custom Hints: This is used form making Standard operation procedure(SOP) for the error handler
based on the message class and message number. i.e if this error is encountered, then documented steps as
shown in the table below should be executed.
This can be further automated through “Custom Function” by creating a custom function. This can be a transaction
code or report which can be executed. One example is show as below.
B. “Value Mapping”: Only relevant for error related to value mapping. Its relevance can be found out by clicking on
the Technical Mode. It directly calls /AIF/VMAP for user to check the missing value and add value if required. As an
example, please have a look on the screenshot below.
We can check the missing value and we can click on “Insert values” to insert the missing one and the corresponding
intvalue.
C. “Show Customer XML”: By clicking on this for an inbound message, System will display the xml message
whatever has been sent by the Non-SAP system.
D. “Show Proxy Message”: By clicking on this for an inbound message, System will display the xml message
whatever is received at SAP level.
1. Click on the message with error. If it is related to data error which needs to be corrected, then the corresponding field in
the structure will be selected. Double click on the content of the structure content view. Enter the new value, then apply
the change. After doing so, we can re-process the message. If the error continues, then we repeat the process.
2. Difference between Apply and Save, if the data is applied, it is saved for this session, if it is saved, then it is saved for
ever till it is further changed.
The changes can be tracked with /N/AIF/EDCHANGES with old value and new value.
Enhancement Available for this Framework
Good number of BADis are available to enhance in terms of all views with additional button, Error handling, Custom
functions etc . Have a look on /AIF* in SE18.
There is no way if we double click on one message in view 3 to get the corresponding line item in view 1 but other
way round is true.
There is no way we can find out how much time system took to process a message in /AIF/ERR which is available in
SXI_MONITOR. This is highly useful during performance monitoring.
No way to download the xml message IDs into MS excel from View 1.
References:
Please also check the transaction /N/AIF/ to get the entire menu of AIF or follow SAP Menu>Cross-Application
Components>SAP Application Interface Framework
New functionalities are added in AIF 3.0. Please follow below link.
https://help.sap.com/viewer/1cefaed5b7a3471cb08564e54d5ba866/3.0/en-US/
87f8af54be932b66e10000000a423f68.html
https://blogs.sap.com/2014/07/22/comparison-on-application-interface-framework-aif-and-process-orchestration-po/
************************************************************************************************************************************
******
“I already have PI, does it still make sense for me to use AIF?” – Yes
“I want AIF, does it still make sense for me to use PI?” – Yes
************************************************************************************************************************************
******
Joint usage of PI and AIF : PI / PO is an integration platform, AIF is an integration add-on for your business
applications
As general recommendation IT landscape with both business applications and integration platforms/middlewares
Integration logic into PI, not AIF ( Integration Logic – Typical patterns,Mapping of data structures
from different sender formats to AIF
format,Routing of messages,Connectivity to various protocols (FTP, RFC, ….)
As general recommendation IT landscape with both business applications and integration platforms/middleware,The
typical AIF user is a business user and a functional user where as PO / PI user is a Technical User
Combined,PO / PI and AIF with both tools in one landscape, you can have two (field/structure) mappings in one
integration scenario
Which Tool for which mapping
SAP PI / PO – (Structure) Mapping
a. Technical Mapping
b. Rather format conversions (Example: file structure to Web Service)
c. No business logic in mapping
d. Error Handling for Mapping Errors by Technical User
SAP AIF – Value Mapping (If you want a business application-centric value mapping mechanism in one or more specific business
application(s), use AIF )
My sincere thanks to Markus Gille for sharing his knowledge for the above blog. For AIF product relate clarification
reach Markus Gille