Steps for ABAP Mapping

Hello,
     Can any one explain how to do ABAP mapping?and necessary trancsaction codes for this?
Ex: I am sending PO to reciever system.
And if posibel screen shots....plz
Thank you

Hi Jyotsna,
Which mapping we need to use..
/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping%2btechniques
ABAP MAPPING...
You can implement the following mapping programs by using the ABAP Workbench:
•     ABAP mappings [Seite 375] in ABAP objects
•     XSLT mappings (ABAP Engine) [Seite 376]
Use
ABAP mappings are mapping programs in ABAP objects [Extern] that customers can implement using the ABAP Workbench.
Prerequisites
Note the prerequisites in the sections Purpose and Integration as well as the Restrictions in Mapping Development with the ABAP Workbench
Features
An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the following signature:
Importing Parameter                                               Parameter Meaning
SOURCE(Type XSTRING)                                   Source XML document
PARAM(Type Ref To  IF_MAPPING_PARAM)            Parameter object for read access to runtime constants (see below)
TRACE (Type Ref To IF_MAPPING_TRACE)     Trace object for writing messages in the mapping trace (see below)
Exporting Parameter                                                  Parameter     Meaning
RESULT (Type XSTRING)                                Target XML document
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) [Seite 376]) 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 [Seite 367], 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 (see above).
regards,
Kishore

Similar Messages

  • Detailed example for ABAP mapping in XI7.0 with code in  class builder

    hi experts,
                  will any one one send me the detailed example(including navigation steps) for ABAP mapping in XI7.0 with code in class builder.
                                                         Thankin u,

    Hi,
    Just go through the below link.It will guide you how to do abap mapping:
    The guide is on XI 3.0 but the same can be used in 7.0 also.
    The How-to-guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    This link will provide more information regarding program point of view.
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm
    Thanks,
    Kishore.
    Edited by: Kishore on Mar 14, 2008 4:35 AM

  • When we wil go for abap mapping ??

    Hi,
    As we know there are graphical, XSLT, JAVA mappings are there apart from ABAP mapping. I have gone through below weblog.
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    and also help.
    http://help.sap.com/saphelp_nw04/helpdata/en/12/05731a10264057badc32d3d3957015/frameset.htm
    None of them says ABAP mapping is either faster or stable as compared to other mappings. Even though it is the case, still when we will go for abap mapping ??
    Is it like that it is totally depend on the available resources in hand ??
    thanks
    kumar

    > The SAP XI/PI mapping is the most efficient as it
    > only loads the part of the source message that are
    > used to create the target message(s) at runtime.
    >
    > Java and XSLT have to load the whole message into
    > memory to process the message. This can be
    > inefficient and if dealing with large messages can
    > cause issues.
    About your statement.
    If you consider the field mapping (or UDF) runtime, then you are correct. But if you consider the whole mapping runtime, you also have to "load" the full message in message mapping, obviously. What happens is that it is transparent to the developer, since loading and parsing is done by standard. But message mapping also deals with loading and parsing the whole message (and it is done with Java underneath). Then I don't think message mapping will have a significantly better/worse performance, when compared with Java mappings (performing normal xml processing methods).
    As for XSLT, the performance problems happens because you have a XSLT processor running over Java VM. Then, if you have heavy load on it, the mapping runtime will consume the resources necessary to run the xslt processor (which is, by itself, very resource consuming) and also to treat that heavy input.
    Regards,
    Henrique.

  • Service Pack needed for ABAP MApping ?

    Hi everyone.
    i'm trying to activate the ABAP MAPPING but it's no working.
    I've done everything SAP documents say. Even i've followed all your posts but it doesn't work.
    I wanto to know if ABAP MAPPING is available for Service Pack 9 (the one i have).
    Thanks.

    Hi
    According to help.sap for ABAP Mapping
    <i>"To reference the development objects of the ABAP Workbench from interface mappings, customers must assign the following value to the parameter com.sap.aii.repository.mapping.additionaltypes in the exchange profile:
    <b>com.sap.aii.repository.mapping.additionaltypes=R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)</b>"</i>
    So go in Exchange Profile and chk whether this parameter has this value.
    U can also go thru this blog to test ur mapping
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Hope it helps.
    Regards
    Arpit Seth

  • When do we go for ABAP mapping and Java mapping

    Hi friends,
                At present I am working on graphical mapping in XI ,can you guys give me with an example or scenario when do we use ABAP mapping , Java mapping or XSLT mapping.
    Thanks in advance
    Sud

    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums</a>
    I have standard XSLT mapping programs available for my scenarios, so use XSLT mapping. Similarly with Java mapping,  For most scenarios, message mapping does the job too well. Abap mapping similarly is used to leverge existing ABAP base.  If message mapping becomes confusing and hard to follow with too many functions, I go for Java mapping (just my way). I havent used ABAP mapping thus far.
    Discussing ABAP mapping
    ABAP mapping is developed in ABAP work bench. ABAP mapping needs to be transported to integration server and XI does not support this transport and have to do with ABAP transports.
    Customers who can develop mapping program on SAP web AS and can transport them there can use ABAP mapping
    *ABAP mapping programs cannot access the value table
    *Since ABAP mappings are executed on ABAP stack SAP does not provide any ABAP mapping programs
    *ABAP mapping programs must exists with one single version in IS, unlike JAva and XSLT mapping that can have multiple versions of mapping program
    Regards,
    Priya
    priya k
    null

  • Creating ABAP class in XI for ABAP mapping

    Hi All,
    While creating ABAP class in SE80 XI I am getting following message.
    “You are not registered as a
    developer.
    Please register in the Online
    Service System (OSS).
    In the OSS you will receive
    an access key.”
    Plz guide which role I required to do ABAP mapping/class creation.
    Regards

    Hi Rohan,
    for developing abap you need a developer key. You can get it with the corresponding authorisation at <a href="https://websmp209.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000103676&_SCENARIO=01100035870000000202&">SAP OSS</a>.
    Regards,
    Udo

  • DOM Programming in class for ABAP Mapping?

    Hi All!!
    I am struggling in transforming XML to be mapping target structures in using ABAP Mapping.
    so i am on developing class with DOM.
    i would like to know how many <person> derived from source xml, so what method should i use so that i can get that result. or does anyone idea how to work with multirecord to output XML?
    data: incode1 type ref to if_ixml_node_collection,
            incode2 type ref to if_ixml_node_collection,
    get message content of tag <FirstName>
      incode1 = idocument->get_elements_by_tag_name( 'FirstName' ).
      incode2 = idocument->get_elements_by_tag_name( 'LastName' ).
    <?xml version="1.0" encoding="UTF-8"?>
    *Source XML
    <ns:Personalinfo xmlns:ns="http://sap.com/test/ABAPMapping">
    <person>
      <FirstName>ABAP</FirstName>
      <LastName>ITEM1</LastName>
    </person>
    <person>
      <FirstName>ABAP</FirstName>
      <LastName>ITEM2</LastName>
    </person>
    </ns:Personalinfo>
    Message was edited by: Tony

    Tony,
    You need to use the method get_length. Try something like: -
    *Get the list of child nodes
      child_nodes = idocument->get_children( ).
    *Get the number of children within child_nodes.
      int         = child_nodes->get_length( ).
    Thanks
    Martin

  • Debug ABAP code used for ABAP mapping

    Hi Experts,
    I have worked on Abap mapping. I have executed the code in SE24 to acheive desired mapping and the desired output is also generated.
    attached below is a part of the code i have used:
    method IF_MAPPING~EXECUTE.
    * initialize iXML
      TYPE-POOLS: ixml.
      CLASS cl_ixml DEFINITION LOAD.
    * create main factory
      DATA: ixmlfactory TYPE REF TO if_ixml.
      ixmlfactory = cl_ixml=>create( ).
    * create stream factory
      DATA: streamfactory TYPE REF TO if_ixml_stream_factory.
      streamfactory = ixmlfactory->create_stream_factory( ).
    * create input stream
      DATA: istream TYPE REF TO if_ixml_istream.
      istream = streamfactory->create_istream_xstring( source ).
    * parse input document =================================================
    * initialize input document
      DATA: idocument TYPE REF TO if_ixml_document.
      idocument = ixmlfactory->create_document( ).
    * parse input document
      DATA: iparser  TYPE REF TO if_ixml_parser.
      iparser = ixmlfactory->create_parser( stream_factory = streamfactory
                                            istream        = istream
                                            document       = idocument ).
      iparser->parse( ).
    I just want to debug and see if an input is provided how does each of these methods make a difference to it.
    I tried to input some value in the SOURCE parameter on executing the code but it is not working fine.
    Could you please suggest hiw i should go about so that i can see the exact way the input Xstring is affected by each of these methods in the debugger.
    Help will be appreciated.
    Many thanks,
    Neha
    Edited by: Neha Nagrani on Jul 7, 2008 11:46 AM

    Hi Neha,
    Write a Small Report as Folows:
    1.  Create your XMl payload of Type xSTRING.
    2.  Call the method EXECUTE
    Place a Breakpoint on the method. and then keep debugging inside.
    the SetParamter method is obviously called from inside.
    This is the Simplesrt Solution.
    Reward points if useful
    Regards,
    Abhishek

  • Error the class for ABAP mapping doesnt exist

    hi PI gurus,
    i faced a probleme when i was trying to call a second Mapping which type is ABAp after another one which type is Message Mapping, why i m doing that because i was trying to folow the step by step of michal :
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0279207250DB01347930475897169967End?blog=/pub/wlg/6398
    but the problem is i get the error that the class doesnt exist but i m sure that the class exist and i cheked in se24.
    do you have any idea ????
      <SAP:Stack>Error in mapping program Z_ABAP_MAPPING_EXCEPTION_RS (type SAP-ABAP, kernel error ID CREATE_OBJECT_CLASS_NOT_FOUND) The object could not be created: The class Z_ABAP_MAPPING_EXCEPTION_RS does not exist.</SAP:Stack>
    thanx.

    Check this thread
    [Re: SOP Confituration- Maintain Copy Profiles version A00 not maintained   |SOP Confituration- Maintain Copy Profiles version A00 not maintained;
    thanks
    G. Lakshmipathi

  • Steps for ABAP WebDynPro Application Creation in SE80

    Hello
    i can create ABAP WebDynPro iViews
    but i dont know how to create ABAP WebDynPro Applications in R3
    can someone help me out how to create simple ABAP WebDynPro Application in R3 from where i can create ABAP WebDynPro iViews
    useful points will be rewarded
    Regards
    JM

    Hi John,
    You can create a ABAP webdynpro application in the transaction SE80.
    Only precondition is u have authorization to develop Webdynpro Programming
    in SE80.
    Go to SE 80 --> Select webdynpro ABAP --? Create Project --> enter the name
    and text-->save it --> right click ur Project Node --> create --> View.
    Note: In Webdynpro Programmin if u want to create view or window or any new object u have to use rightclick on the project root node or corresponding node.
    Regards,
    Ramganesan K.

  • Whaty is the tCode for ABAP Mapping

    HI all
    i m new to sap xi
    What r the adapters that related to sapr/3?
    How do bwe move objects to quality nd quality to production?
    What is Technical system in sld?(i want definition)
    Thaks all

    Hi vivek b  ,
    The following websites give u clear description of Technical system
    SAP XI and SLD
    http://www.sappro.com/downloads/nov06/XIandSLD.pdf
    How to Handle SLD for SAP XI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e76e511-0d01-0010-5c9d-9f768d644808
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • Configuring ABAP Mapping

    I am working on SAP XI 3.0
    As per documentation i add the entry in
    http://<hostname>:<portid>/exchangeProfile
    com.sap.aii.repository.mapping.additionaltypes
    as e.g.
    R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)
    but i.e. not seen in the
    httP://<hostname>:<portid>/rep/support/index.html
    All Properties options
    so what else configuration required
    because one of its sentence says that:
    Technically, the Integration Server calls the ABAP function CALL_PARTNER_MAPPING with the additional mapping type name as destination. Therefore, the additional mapping type name must be registered as RFC-Destination in the Integration Server, too.
    so where to define RFC-Destination and how.
    Thanks & Regards,
    Gaurav Jain

    Hi
    HERE are steps for abap mapping
    1. Add additional mapping types in your
    exchange profile
    • Open
    http://<host>:<port>/exchangeProfile/ind
    ex.html
    • Choose IntegrationBuilder ->
    IntegrationBuilder.Repository ->
    com.sap.aii.repository.mapping.addition
    altypes
    • Maintain the following entry:
    R3_ABAP|Abapclass;
    R3_XSLT|XSL (ABAP
    Engine)
    2. Check whether the data has been
    successfully read from the exchange profile:
    • Open
    http://<host>:<port>/rep/support/admin/in
    dex.html
    • Choose Administration of Properties ->
    All Properties
    • If the value associated to parameter
    com.sap.aii.repository.mapping
    .additionaltypes is not correct.
    3 . Create a class and implement interface IF_Mapping in that.
    4. implement ABAP mapping.
    Hope this will help
    thanx
    Vinod ahir

  • ABAP MAPPING steps

    hi all,
    Iam just trying to do ABAP mapping,but iam confused with the steps.
    can anyone explain me ,what is the significance of those steps.
    Message was edited by:
            venugopal tummala
    Message was edited by:
            venugopal tummala

    hi venu,
    check this for abap mapping... this would help u
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4</a>
    Message was edited by:
            Raghavendra K.B

  • Looking for How To Guide ABAP Mapping

    Hi folks!
    I'm looking for a good how-to guide for abap mapping.Do you know any resource to look for?
    thanx in advance.
    Regards,
    Marc

    >
    Marc Eckhardt wrote:
    > Hi folks!
    > I'm looking for a good how-to guide for abap mapping.Do you know any resource to look for?
    > thanx in advance.
    > Regards,
    > Marc
    Resource is SDN Search option
    ABAP mapping
    regards,
    Abhishek.

  • Java Mapping, XSLT Mapping, ABAP Mapping

    Hi Experts,
                     Could any one explain what is the main features of the following Mapping. How to pick the mapping?
    Java Mapping - When to use and what is the advantage.
    ABAP Mapping - When to use and what is the advantage.
    XSLT Mapping - When to use and what is the advantage.
    Graphical Mapping - When to use and what is the advantage.
    cheers,
    Sunee

    There are 4 types of mapping in XI
    1. Graphical Mapping
    2. XSLT Mapping
    3. JAVA Mapping
    4. ABAP Mapping
    When to use Message mapping
    1 When the logic for your mapping is simple and straight forward, you can use
    Advantages of message mapping
    1)Easy to use.
    2) has GUI drag and drop.
    3) used for simple mapping cases
    4) it does not involve any complex logic
    Disadvantages of message mapping
    1)has limitation in terms of complex hierarchy
    When to use Java mapping
    1) Java mapping are used when graphical mapping cannot help you.
    Advantages of Java Mapping
    1)you can use Java APIs and Classes in it.
    2) file look up or a DB lookup is possible
    3) DOM is easier to use with lots of classes to help you create nodes and elements.
    Disadvantages of Java mapping
    1)SAX parser is not easy to develop
    2)DOM parser is intensive
    3) Java knowledge is required
    4) bit complexer
    XSLT Mapping - When to use
    1)When the required output is other than XML like Text, Html or XHTML (html displayed as XML )
    2)When default namespace coming from graphical mapping is not required or is to be changed as per requirements.
    3)When data is to be filtered based on certain fields (considering File as source)
    4)When data is to be sorted based on certain field (considering File as source)
    5)When data is to be grouped based on certain field (considering File as source)
    Advantages of using XSLT mapping
    1)XSLT program itself defines its own target structure.
    2)XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.
    3)XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.
    4)File content conversion at receiver side can be avoided in case of text or html output.
    5)Multiple occurrences of node within tree (source XML) can be handled easily.
    6)XSLT can be used in combination with graphical mapping.
    7)Multi-mapping is also possible using xslt.
    8)XSLT can be used with ABAP and JAVA Extensions
    Disadvantages of using XSLT mapping
    1)Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).
    2)Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.
    3)XSLT mapping requires more memory than mapping classes generated in Java.
    4)XSLT program become lengthier as source structure fields grows in numbers.
    5)XSLT program sometimes become complex to meet desired functionality.
    6)Some XSL functions are dependent on version of browser.
    Advantages of Abap Mapping
    1) A person comfortable with OOABAP can go for ABAP mapping instead.
    Disadvantages of Abap Mapping
    1) Abap knowledge is required
    2) bit compexer
    For further info on each of the mapping, refer to these links,
    Graphical Mapping,
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    XSLT Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    Check this blog on Mapping:
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    Also, check this thread for more info,
    Different types of Mapping in XI

Maybe you are looking for

  • How do I reinstall Mountain Lion in English on a system that was originally in Chinese?

    I'm trying to help a friend who was given a used 13" MacBook Air (A1369) by the Chinese exchange student staying with him. It needed a screen repair, which was done, and we were able to change the display menus to English which is fine for general us

  • How to delete HFM Application Tables in SQL

    Hi Gurus 1.How to delete HFM Application Tables in SQL? Manually its deleting but each application having 120-150 tables? how to do this in a single shot? I have deleted few applications using workspace/ shared services, but still its showing under H

  • PLPOD-qkzprfrei radio button in BAPI_INSPECTIONPLAN_CREATE

    Hello Folks,             i am using BAPI_INSPECTIONPLAN_CREATE for creating a data upload program, but i have a requirement to set PLPOD-QKZPRFREI field, but BAPI is not having that field. This field is actually a radio button on actual Transaction f

  • Flex TextArea HTMLText issue.

    Hi All,          I am using a Flex textArea control and recently i found an interesting behaviour while using htmlText property of the TextArea. By default the htmlText has "<P align=''left' /> tag.When i added bullets to the text it adds the "<LI>"

  • Radio off error on Nokia c2 01

    Hi I recently bought a nokia c2 -01, FM radio worked fine till yesterday. I'm trying to listen to radio , I get a message stating it's off.Head set seems to be working fine . can anybody help ?