Skip to Content
author's profile photo Former Member
Former Member


Hi experts,

Need soome help.

Could anyone porvide me some content on studying mapping in brief not the links.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 03:11 AM

    Hi Aman,

    For studying about mapping u can find in this forum ,all u need to do is just search and try to see diffrent types of interfaces ......even though here are some links which may help u........

    Just to remind u mapping takes place during design side ie(IR)

    About XSLT mapping,

    java mapping,

    Hope this may help you


    Azeez khan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2008 at 04:01 AM


    In SAP XI, there is 3 types of mappings. Namely

    - XSLT Mapping

    - Java Mapping

    - ABAP Mapping

    Here is the details of each mapping.

    XSLT Mappings (ABAP Engine)

    Interface descriptions are in the form of XML documents. XSL Transformation (XSLT) is a member of the XML family of languages. It describes how an XML structure is transformed into another XML structure.

    Customers can develop an XSLT mapping by using the Transformation Editor of the ABAP Workbench. Such XSLT mappings are executed at runtime on the ABAP Engine of the Integration Server.

    To simplify matters, this section refers to XSLT mappings of the ABAP Engine as transformation programs to differentiate them from XSLT mappings from imported archives that are executed on the J2EE Engine.


    XPath and <xsl:include>

    You can define mappings using XSLT together with XPath. XPath is also a specification of the XML family. Using XPath you can address any node in an XML document. XSLT implements XPath expressions to select substructures of an XML document. Using templates in XSLT you can define the mapping rules for the selected substructures.

    You can use the XSLT tags <xsl:include> and <xsl:import> to include predefined templates for substructures in a complete mapping definition. In this way, you can reuse mappings for data types.

    Java Mapping

    You can implement mapping programs in Java. To process XML documents, use Java API for XML Processing (JAXP), for example. The JAXP supports the Document Object Model (DOM) and the Simple API for XML (SAX). This gives you great flexibility for mapping definitions with Java.

    Implementation Considerations

    Java mapping programs are not permitted to be stateful. You are therefore not permitted to perform actions such as writing data to a database table during a Java mapping. The Integration Server cannot track such side effects. Therefore, if an attempt is made to resend a message that has not been received by the receiver, the data may inadvertently be written to the database twice in a Java mapping.

    If you use JRE classes in your Java mapping programs then the same program restrictions apply as for Enterprise Java Beans (EJBs). For a detailed description of these restrictions, see the relevant EJB specification. It is important that you also refer to the information under Scope of Functions in Runtime Environment (Java Mappings).

    The runtime environment for Java mappings has an mapping API. To use Java mapping, you must define a Java class that implements the Java interface This interface has two methods:

    &#9679; public void execute( in, out)

    At runtime, the Integration Engine calls this method to execute a mapping. This method contains an input stream for the source document and an output stream for the target document as parameters. These streams are usually XML documents. You can import the substructures to be converted from the input stream and output the converted target document in the output stream.

    &#9679; public void setParameter(java.util.Map param)

    The Integration Engine transfers parameters to the mapping program with this method. It evaluates these parameters at runtime in the method execute(). This enables you to control the process flow of the mapping.

    The transferred object that implements the Java interface java.util.Map contains seven key/value pairs as parameters. These correspond to corresponding fields in the message header. Apart from the MAPPING_TRACE constant, the value objects are of type java.lang.String. The key objects are defined in the class

    ABAP Mappings

    ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.


    An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING.

    Exception: CX_MAPPING_FAULT

    Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly (see XSLT Mappings (ABAP Engine)) rather than using ABAP mappings.

    Runtime Constants

    In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings, although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE

    Example: Accessing a Runtime Constant


    • Get mapping constant SENDER_SERVICE

    data: l_sender_service type string.

    l_sender_service = param->get( IF_MAPPING_PARAM=>SENDER_SERVICE ).


    Hope this will help you, and don't forget to close this thread.


    Aashish Sinha

    PS : reward points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05:33 AM

    Hi aman ullah ,

    These r excellent websites which contain PPT & PDF documents on mapping:

    Excellent PDF Document on Mapping

    Mapping Development with the ABAP Workbench

    ABAP Mappings

    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.

    How to Use ABAP Mapping in XI 3.0



    ****Pls reward points if u find this helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 04:39 AM

    In XI there are 4 types of mappings are there

    Graphical Mapping

    XSLT Mapping

    Java Mapping

    ABAP Mapping

    Here in Graphical mapping just we drag the lines from nodes, its very easy and maximum people use this.

    In XSLT mapping by using some tools we can draw the mapping. first import both sender and receiver msg types and perform mapping(this is also like graphical i.e drag lines b/w nodes)

    In Java mapping by using java EJB code we can perform the mapping, this code done by java EJB experts.

    In ABAP mapping by using ABAP code we can perform the mapping.

    Performance wise is :

    ABAP, JAVA, XSLT and Graphical mapping.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.