100% found this document useful (1 vote)
1K views9 pages

SAP AIF Simple Inbound

This document outlines the steps to implement a simple inbound integration scenario using SAP Application Interface Framework (AIF). The high-level flow involves a file adapter polling for records in SAP Process Integration (PI), which routes the messages and triggers the inbound proxy. This calls the AIF functions to update the PA table. The steps create necessary configurations in PI and ECC, develop the proxy class, define the AIF namespace and interface, map data structures, write the function module logic, and test the end-to-end flow by processing a sample XML file. SAP PI and AIF provide tools for complex integration scenarios by combining operational monitoring, technical integration, and transactional error handling.

Uploaded by

SOUMEN DAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views9 pages

SAP AIF Simple Inbound

This document outlines the steps to implement a simple inbound integration scenario using SAP Application Interface Framework (AIF). The high-level flow involves a file adapter polling for records in SAP Process Integration (PI), which routes the messages and triggers the inbound proxy. This calls the AIF functions to update the PA table. The steps create necessary configurations in PI and ECC, develop the proxy class, define the AIF namespace and interface, map data structures, write the function module logic, and test the end-to-end flow by processing a sample XML file. SAP PI and AIF provide tools for complex integration scenarios by combining operational monitoring, technical integration, and transactional error handling.

Uploaded by

SOUMEN DAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

SAP AIF Simple Inbound Scenario- Part-1

This document will help AIF beginner , In understanding the basic steps involved in SAP AIF . 
Here we are taking a simple Inbound Case, We will be updating PA006 based on PERNR and ANSSA using SAP
AIF.  In Inbound case the change data will be routed via SAP PI, SAP AIF and will be updating the PA table
(PA006).
High level flow –File Adapter will poll the records, message mapping/ routing in SAP PI, which in turns will be
trigger  Inbound proxy this will call the AIF functions and update the PA table.

STEPS –

   SAP PI
ESR

  
Create—

  Two  Data type

Message Type

    (ZDT_ADDRE
SS_REQ)
ESR

  Service
interface(SO_AIF
_ADD_REQ)

Category-
Outbound

  Message type –
ZDT_ADDRESS_RE
Q

SI_AIF_ADD_REQ

  Category –
Inbound

Message
Mapping
For simplicity, one to one mapping.

  Operation
Mapping

   OM_AIF_AD
DR

  Intergration Directory

Business System
– BS_SAPECC

Business
Component –
BC_SAP_AIF

Register the
Service
Interface in
Business
Component.
ESR

Communication 
Channels-

  Proxy Receiver
(BS_SAPECC).

File Sender
channel(BC_SAP_
AIF)

Create –

Receiver Determination

Interface determination

Sender agreement

Receiver  agreement

Service interface has been created in ESR (SAP PI) and a proxy class structure for service interface is generated in SAP ECC.

Now we need to implement the proxy method to call the SAP AIF To implement the method double click on generated
proxy class.

To be Continued : –

SAP AIF – Simple Inbound Scenario –


Part-2

Part 1,SAP AIF – Simple Inbound Scenario- Part-1, we have completed the basic steps for SAP PI , Here we will be
dealing with steps involved in  SAP ECC box . Go to SPROXY, generate and activate the Service Interface.
                                              SAP ECC

T-Code SPROXY – Activate the Service interface (SI_AIF_ADD_REQ)


Properties Tab-Click on Provider  class  

Method tab   

Inside the method 


Call function

  CALL FUNCTION ‘/AIF/FILE_XI_PROCESS
  Depending on business logic we can all multiple AIF function.

Eg  —  /AIF/ALERT_READ_CUST
           /AIF/CREATE_ALERT
  Go External view
  Here we need to make note of ABAP NAME  for structure (RAW & SAP).
    Now we will be moving for AIF Customization  .

    Basic Steps –

                                                     SAP  ECC – AIF CUSTOMIZATION


To kick start with the Interface development  we need to create a namespace , this is done  by

  Define Namespace
  New Entries eg. ZAIF_D

  (One Namespace can be associated with multiple interfaces development)

   
Define Interface –Select the namespace (ZAIF_D), New Entries.
  Note the Provider proxy class name that is generated in SPROXY.

  In our case –  ZAIF_ASY_ADDR_HNCL_SI_AIF_ADD.

  Raw Data Structure and Record type in raw structure will


  populate automatically.

  Inbound Interface – Raw Data Structureis created during proxy generation, this act as a Source Structure for
Inbound Interface.

  Record Type in Raw Structure – is the main component of raw data structure.

  Save all the details. 

Additional interface properties->Specify Interface Engine.


In our case we are dealing with proxy so we need to select the following entries .
Define Structure Mapping – Here fields of the source (Raw) structure are mapped to the fields of
the Destination (SAP Data) Structure.

 Select the Source Structure.


 Assign the destination structure
 .Define the Field mappings.
                              
Define Actions –  It wraps the business logic at runtime .At least one function module should be defined.
Select the function double click , New window/session  for Function module editor here we  will be writing business 
logic.

Now we will be testing the interface  .

 SAP AIF – Simple Inbound Scenario –


Part-3

Earlier part SAP AIF – Simple Inbound Scenario -Part-2 we have covered the devlopment and customization steps. In
this final phase we will be covering with the testing and monitoring of Interface.
We placed an XML file in Remote Server . File adapter polls the files
  Sample payload
  SXMB_MONI (SAP PI) –
Messge  is succesfully processed in SAP PI

  
Cross check the processed  message in SAP PI  (SXMB_MONI).

Checking the Successful processed  message in SAP ECC –

Checking the message in AIF –

T-Code – /n/AIF/ERR
Enter Application Specfic  Interface details  with date and time  and Status Selection.

Execute – Below screen show that the message was sucessfully  processed in SAP AIF ,
we can also see the data in proxy structure.
Cross Verfiying Updated  PA tables – The data processed from PI has been updated in SAP ECC.

SAP AIF facilitate interface implementations, interface monitoring and error handling  it empowers business users to
monitor interfaces they are responsible for and to handle business errors.
SAP PI,and SAP AIF together provide a complete toolset forcomplex integration scenarios.They efficiently combine
Operational Monitoring,Technical Integration, and Transactional Error Resolution capabilities.

Related Content

SAP Application Interface Framework – Cookbook


SAP AIF: So what is it all about?
SAP Application Interface Framework – SAP Library
First Steps with SAP Application Interface Framework
http://www.sapsa.se/wp-content/uploads/2013/03/30_SAPSA-Application-Interface-Framework_2013_04_24.pdf

You might also like