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)

A.PNG

Properties Tab-Click on Provider  class  /wp-content/uploads/2015/08/b_769824.png
Method tab   /wp-content/uploads/2015/08/c_769825.png

Inside the method
Call function

  CALL FUNCTION ‘/AIF/FILE_XI_PROCESS

  Depending on business logic we can all multiple AIF function./wp-content/uploads/2015/08/d_769826.png

Eg  —  /AIF/ALERT_READ_CUST

           /AIF/CREATE_ALERT

  Go External view

  Here we need to make note of ABAP NAME  for structure (RAW & SAP).

/wp-content/uploads/2015/08/e_769827.png

    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)

   /wp-content/uploads/2015/08/a_769823.png

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. 

/wp-content/uploads/2015/08/b_769824.png

Additional interface properties->Specify Interface Engine.

In our case we are dealing with proxy so we need to select the following entries .

/wp-content/uploads/2015/08/c_769825.png

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.

/wp-content/uploads/2015/08/d_769826.png

                              e.PNG

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.

/wp-content/uploads/2015/08/f_769890.png

Now we will be testing the interface  .

To be continued – Part 3

 

SAP AIF – Simple Inbound Scenario –
Part-3

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply