Understanding and working with ABAP Mapping




This document gives you clear understanding of ABAP Mapping, how to enable the option to use ABAP Mapping class in XI Interface Mappings, how to parse and read the input XML source structure and build the output XML target structure.
Below are different ways of achieving this conversion in XI:
Message Mapping (Graphical Mapping using Mapping Editor in XI)
Java Mapping
ABAP Mapping
XSLT Mapping
The rest of the document gives you pre-requisites and steps that are necessary for making use of ABAP Mapping class.
Pre-requisites and Steps required for developing ABAP Mapping Classes
Pre-requisites: Enable ABAP Mapping:
Add additional mapping types in your exchange profile
Open http://:/exchangeProfile/index.html
Choose IntegrationBuilder ->IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes
Maintain the Entry R3_ABAPAbapclass;R3_XSLTXSL (ABAPEngine)
Check whether the data has been successfully read from the exchange profile:
Open http://:/rep/support/admin/index.html
Choose Administration of Properties -> All Properties . If the value associated to parameter com.sap.aii.repository.mapping.additionaltypes is not correct, Choose at the top of the page and refresh.
Steps to create an ABAP Mapping Class:
1.Create a new ABAP class in transaction SE24 of ABAP Stack of XI,




2.
The ABAP Class has to implement the interface IF_MAPPING



3.
The method EXECUTE of this interface needs to be developed, this method will be called from during mapping, the method has the following parameters:

The SOURCE parameter contains the input XML structure in XSTRING format.
The mapping program needs to construct the RESULT xstring, which will be used for the construction of output XML structure.


4. The explanation of the ABAP Mapping is provided later in the document in the section Steps to be followed in the ABAP Mapping Class.

SAP Developer Network SAP Weblogs: SAP Process Integration (PI)