ABAP Mapping example????

Hi All,
Can any one give me example of some complicated ABAP mapping, or refer me some existing document on SDN?
Where source name of node and target name of nodes is different and source structure and target structure is different.
Because "How To Use ABAP Mapping in XI 3.0" document contains very small example with one node only.
Regards

Rohan,
check the blog for code.
/people/r.eijpe/blog/2006/02/20/xml-dom-processing-in-abap-part-iiib150-xml-dom-within-sap-xi-abap-mapping
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
Regards
Sreeram.G.Reddy

Similar Messages

  • Abap mapping - pb on SAP example?

    Hi,
    I try to use an Abap mapping for flow "IDoc -> XI -> structured file". For that I have modified the 1st example of SAP (by changing line: "direct = 1").
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how to convert between idoc and xml in xi 3.0.pdf
    But when I send an IDoc from R/3, I have this error in Message Monitoring: <i>"Error in mapping program YCL_AM_DE00109 (type R3_ABAP, kernel error ID UNCAUGHT_EXCEPTION)"</i>.
    In fact, it seems that problem is when I get data from field "TABNAM":
    * Control data: segment EDI_DC40
      data: el_element type ref to if_ixml_element.
      el_element = idocument->find_from_name( 'TABNAM' ).
      ls_edidc-tabnam = el_element->get_value( ).  "<<<
    1. Is there the good example for such a flow?
    2. Anybody have an idea to solve that?
    Regards.
    Mickael

    Hello,
    @Stefan: I need this lookup e.g. for outbound processes for some conversions / setting dynamic parameters depending on the RCVPRN inside an IDoc. That means I have a unique key (RCVPRN_<messageType>) and some (4-6) additional information (e.g. mail subject, FTP filename,...) to this key whch I would like to access during mapping runtime. Vice versa, for inbound scenarios, inside a EDI -> IDoc mapping, I need at least a simple "FixValues" translation from some kind of EDI partner id into the corresponding SAP customer number.
    @all: So from my experience value mapping does not realy fit this "translation" needs? There are some disadvantages, for example if both input values "A" and "B" should be translated into "1", this is not possible, as the keys have to be unique in both directions.
    By the way, I have now also implemented the RFC lookup in my mapping as alternative to the JDBC lookup. To me there are at first sight some pros and cons:
    - Pro: You just need a "simple" RFC user within the RFC channel. You do not need to use the PI system user / pw which owns the Z table.
    - Con: If you select more than one field from the table, the RFC lookup function return all fields of the db entry just separated by a delimiter, which is why you need to implement some "parsing" of the fields in a UDF (minor disadvantage).
    Still interesting discussion!
    Thanks,
    Christoph

  • 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

  • Example of Abap Mapping

    Hi,
    Could u plz give me the simple Abap Mapping coding, which can understand easily...
    Tnx & Rgds,
    sasi

    Hi Sasi,
    Steps to create ABAP code are as follows:
    --> Enable the iXML library.
    --> Create the main factory for the iXML library.
    --> Create a XML stream factory.
    --> Create the input stream.
    --> Parse the input document.
    --> Build the Output document.
    --> Render the Output document.
    My Scenario consisted of Concat and Date change functionalities.
    The Code to achieve the same is given below:
    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( ).
    data declaration to get message content of tags in <incode>
      DATA: incode TYPE REF TO if_ixml_node_collection.
    build up output document =============================================
    create output document
      DATA: odocument TYPE REF TO if_ixml_document.
      odocument = ixmlfactory->create_document( ).
      DATA : outcode TYPE REF TO if_ixml_node,
             irc TYPE i.
      DATA : element_value TYPE string,
             val_name      TYPE string,
             val_add       TYPE string,
             name_add      TYPE string.
    create element msgtype and add it to the document
      DATA: msgtype TYPE REF TO if_ixml_element.
      msgtype = odocument->create_simple_element(
      name = 'MT_ABAP_RX'
      parent = odocument ).
    create element 'Employee' and add it to the output document
      DATA: pemployee TYPE REF TO if_ixml_element.
      pemployee = odocument->create_simple_element(
      name = 'Employee'
      parent = msgtype ).
    Employee_Code
      incode = idocument->get_elements_by_tag_name( 'Employee_Code' ).
      outcode = incode->get_item( index = 0 ).
      element_value = outcode->get_value( ).
    create element 'EMPLOYEE_CODE' and add it to the output document
      DATA: pcode TYPE REF TO if_ixml_element.
      pcode = odocument->create_simple_element(
      name = 'Employee_Code'
      value = element_value
      parent = pemployee ).
    Name
      incode = idocument->get_elements_by_tag_name( 'First_Name' ).
      outcode = incode->get_item( index = 0 ).
      element_value = outcode->get_value( ).
      val_name = element_value.
      incode = idocument->get_elements_by_tag_name( 'Last_Name' ).
      outcode = incode->get_item( index = 0 ).
      element_value = outcode->get_value( ).
      val_add = element_value.
      CONCATENATE val_name val_add INTO name_add SEPARATED by space .
    create element 'Name' and add it to the output document
      DATA: pname TYPE REF TO if_ixml_element.
      pname = odocument->create_simple_element(
      name = 'Name'
      value = name_add
      parent = pemployee ).
    Joining_Date
      incode = idocument->get_elements_by_tag_name( 'Joining_Date' ).
      outcode = incode->get_item( index = 0 ).
      element_value = outcode->get_value( ).
    create element 'Joining_Date' and add it to the output document
      DATA: pdate TYPE REF TO if_ixml_element.
      pdate = odocument->create_simple_element(
      name = 'Joining_Date'
      value = element_value
      parent = pemployee ).
    Level
      incode = idocument->get_elements_by_tag_name( 'Level' ).
      outcode = incode->get_item( index = 0 ).
      element_value = outcode->get_value( ).
    create element 'Level' and add it to the output document as 'Designation'
      DATA: level TYPE REF TO if_ixml_element.
      level = odocument->create_simple_element(
      name = 'Designation'
      value = element_value
      parent = pemployee ).
    render document ======================================================
    create output stream
      DATA: ostream TYPE REF TO if_ixml_ostream.
      ostream = streamfactory->create_ostream_xstring( result ).
    create renderer
      DATA: renderer TYPE REF TO if_ixml_renderer.
      renderer = ixmlfactory->create_renderer( ostream = ostream
      document = odocument ).
      irc = renderer->render( ).
    endmethod.
    Hope this is of help.
    Regards,
    Lavita.
    P.S. Do reward points if the information is useful to you.

  • How to convert xml file into internal table in ABAP Mapping.

    Hi All,
    I am trying with ABAP mapping. I have one scenario in which I'm using below xml file as a sender from my FTP server.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MTO_ABAP_MAPPING xmlns:ns0="http://Capgemini/Mumbai/sarsingh">
      <BookingCode>2KY34R</BookingCode>
    - <Passenger>
      <Name>SARVESH</Name>
      <Address>THANE</Address>
      </Passenger>
    - <Passenger>
      <Name>RAJESH</Name>
      <Address>POWAI</Address>
      </Passenger>
    - <Passenger>
      <Name>CARRON</Name>
      <Address>JUHU</Address>
      </Passenger>
    - <Flight>
      <Date>03/03/07</Date>
      <AirlineID>UA</AirlineID>
      <FlightNumber>125</FlightNumber>
      <From>LAS</From>
      <To>SFO</To>
      </Flight>
      </ns0:MTO_ABAP_MAPPING>
    AT the receiver side I wnat to concatenate the NAME & ADDRESS.
    I tried Robert Eijpe's weblog (/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach)
    but couldnt succeed to convert the xml file into internal table perfectly.
    Can anybody help on this. 
    Thanks in advance!!
    Sarvesh

    Hi Sarvesh,
    The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
    Just in case you have not seen this
    regards
    Vijaya

  • Any website for XSLT AND ABAP mapping

    Hi XI experts,
    I am looking for any good website/Material for XSLT and ABAP Mapping with examples.
    So experts if you any one of you have any clue , i would appreciate it , if you post the info here .
    Regds,
    Ram.

    Hi,
    For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Regards
    Chilla..

  • ABAP Mapping in PI 7.1

    Hi
    I am looking for the ABAP mapping scenario, Can anyone send me the link
    Thanks
    PR

    Hi PR,
    I don't think there are many examples on ABAP mapping for 7.1, but there is hardly any difference from previous versions. So, search for an example based on 7.0.
    If you face any problem, you can come back to the forum anytime
    regards,
    Neetesh

  • ABAP mapping Vs Graphical mapping

    Hi
    I have an inbound scenario to R/3 where the purchase requisition has 300 line items. I was wondering if it is easier to do ABAP mapping for such scenarios instead of Graphical mapping as it would be better performace as ABAP mapping is executed on ABAP engine?
    I would appreciate valuable inputs.
    Thanks,
    Arjun.

    Hi Arjun
    As mentioned above in the comparison Blog between 2 mappings, i dont think it gives clear picture, if you have some specific work which getting Dynamic Configuration stuff for example, then you will have to Look for ABAP mapping Class, my thinking is that it depends completely on the requirment.
    For ABAP mapping you can go to
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    Let me know if you want any further clarifications
    Piyush
    Pl:reward points if found helpful.

  • Unicode in ABAP-Mapping (u00E9 becomes u00C3u00A9)

    Hello all,
    I implemented this guide to create a flatfile from an IDoc. It works fine, but some characters are not mapped correctly: an "é" for example becomes "é" and an "ú" becomes "ú". Is this a Unicode problem or something? If yes, how can I use Unicode in ABAP mapping?
    As the XML-IDoc is transfered correctly to XI the problem is not in communication channels... it's in the ABAP mapping.
    Best regards,
    David

    Hi David,
    As michal said the problem needs to be isolated whether it is at the mapping level or at the file adapter level.
    In case it the file adapter then you can mention the encoding standard and if its at the abap mapping the your objects should be unicode enabled.
    Regards
    joel

  • 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

  • ABAP MAPPING - 1 read file leads to 2 files after split

    Hi there,
    please help me finding a solution for the following task:
    Currently there is an ABAP mapping (consisting of an ABAP class that implements the interface IF_MAPPING including a method EXECUTE) that is getting the complete payload by the parameter SOURCE, modifying it and rewriting it by the parameter RESULT. No big deal so far. The input structure may look as follows...
    <?xml version="1.0" encoding="utf-8"?>
    <RecordSet>
         <Header>
              <header00>HDR</header00>
         </Header>
         <Row>
              <field00>1</field00>
         </Row>
         <Row>
              <field00>1</field00>
         </Row>
              <Row>
              <field00>5</field00>
         </Row>
    </RecordSet>
    After modification in ABAP mapping the whole payload can be written and sent within one file when all <field00> have the same value. BUT when there is at least one different <field00> (as shown in my example) I want to get two different files on my ftp server that look as follows...
    file 1:
    <?xml version="1.0" encoding="utf-8"?>
    <RecordSet>
         <Header>
              <header00>HDR</header00>
         </Header>
         <Row>
              <field00>1</field00>
         </Row>
         <Row>
              <field00>1</field00>
         </Row>
    </RecordSet>
    file 2:
    <?xml version="1.0" encoding="utf-8"?>
    <RecordSet>
         <Header>
              <header00>HDR</header00>
         </Header>
         <Row>
              <field00>5</field00>
         </Row>
    </RecordSet>
    How can I achieve this since I only can rewrite the whole content in just 1 parameter RESULT? How does XI afterwards recognize that there are two messages for two different files?
    Thans a lot and best regards,
    Ralph

    Hi Gopal,
    Ur approach to the interface is perfect.... Go ahead.
    For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
    This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
    Specify accordingly the receiver side FCC and test it end to end...
    If u face any prblm post here... some1 will help u out..
    Babu

  • ABAP Mapping Questions

    Hi,
    I am trying to get my head around ABAP mappings and have a few questions.
    In the below code sample which I find in every example and blog it talks about specific steps -
    *initialize iXML, * create iXML factory object, * create streamfactory object, * create input stream object, * initialize the input xml document, * parse the input xml document
    In these steps the code is always exactly the same so my question is are these just standard steps that are implemented every single time an abap mapping is used and hence only standard lines that never have to be changed or will they be different depending on the mapping.
    I am trying to work out where I will begin my coding.
    So would somebody be so kind as to give me a brief explanation of the above mentioned steps.
    Thank you
    METHOD if_mapping~execute.
    * initialize iXML
      TYPE-POOLS: ixml.
      CLASS cl_ixml DEFINITION LOAD.
    * create iXML factory object
      DATA: ixmlfactory TYPE REF TO if_ixml.
      ixmlfactory = cl_ixml=>create( ).
    * create streamfactory object
      DATA: streamfactory TYPE REF TO
      if_ixml_stream_factory.
      streamfactory = ixmlfactory->create_stream_factory( ).
    * create input stream object
      DATA: istream TYPE REF TO if_ixml_istream.
      istream = streamfactory->create_istream_xstring( source ).
    * initialize the input xml document
      DATA: idocument TYPE REF TO if_ixml_document.
      idocument = ixmlfactory->create_document( ).
    * parse the input xml document
      DATA: iparser TYPE REF TO if_ixml_parser.
      iparser = ixmlfactory->create_parser(
      stream_factory = streamfactory
      istream = istream
      document = idocument ).
      iparser->parse( ).

    Hi,
         The above lines you mentioned deal with initialization of the iXML parser for parsing through the XML payload, so they would remain the same for all mapping where you are parsing the input payload.
    The coding for you specific mapping will begin after this, something like :
    * Implements the DOM generating interface to the parser
      iparser->parse( ).
      emp_node_collection = idocument->get_elements_by_tag_name_ns( name = 'Order' ).
      emp_node_length = emp_node_collection->get_length( ).
      emp_node_iterator = emp_node_collection->create_iterator( ).
    where you start reading the xml node values.
    Hope this helps.
    Regards

  • ABAP mapping XML inside another XML

    <b>Cross posted to ABAP Objects</b>
    From XI we want to make an abap mapping.
    The input xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_dummy xmlns:ns0="http://kmd.dk/phh/externalEventEngine/pfhaen">
    <details>
    <Navn>Nielsen</Navn>
    <Adresse><![CDATA[><?xml version="1.0" encoding="UTF-8"?><ns0:mt_dummy2 xmlns:ns0="http://kmd.dk/phh/externalEventEngine/pfhaen"><Details2><Vej>tingvej</Vej><Husnr>75</Husnr></Details2></ns0:mt_dummy2>]]></Adresse>
    </details>
    </ns0:mt_dummy>
    One of the fields in this structure <Adresse> contains another xml structure. It is this structure we want as a result of our ABAP mapping. First we get the value of the field <Adresse>. This field contains the actual xml structure that we want to map. We convert the structure to xstring and run it through a new parser and create our output document.(See code below).
    The code works fine if we just use a ‘normal’ xml structure, but when one of the fields contains a XML structure and we want to parse this structure, we get the error. Is there anything we have missed, or is this not possible in ABAP mapping ?
    If we test the code with SXI_MAPPING_TEST we get no errors, but in runtime we get the following error in SXMB_MONI:
    ‘The XML page document can not be shown
    The XML document must have an element at the top level’
    method IF_MAPPING~EXECUTE.
    initialize xml
    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 ).
    *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( ).
    data: pnode type ref to if_ixml_node,
    pnode2 type ref to if_ixml_node,
    pnode3 type ref to if_ixml_node.
    data: l_blob type string,
    l_xml type string,
    l_length type i.
    pnode = idocument.
    pnode2 = pnode->get_first_child( ).
    pnode2 = pnode2->get_first_child( ).
    pnode2 = pnode2->get_last_child( ).
    l_blob = pnode2->get_value( ).
    data: l_blob2 type xstring.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    TEXT = l_blob
    MIMETYPE = ' '
    ENCODING =
    IMPORTING
    BUFFER = l_blob2
    EXCEPTIONS
    FAILED = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *2. parse
    *create main factory
    data: ixmlfactory2 type ref to if_ixml.
    ixmlfactory2 = cl_ixml=>create( ).
    *create stream factory
    data: streamfactory2 type ref to if_ixml_stream_factory.
    streamfactory2 = ixmlfactory2->create_stream_factory( ).
    *create input stream
    data: istream2 type ref to if_ixml_istream.
    istream2 = streamfactory2->create_istream_xstring( l_blob2 ).
    *initialize input document
    data: idocument2 type ref to if_ixml_document.
    idocument2 = ixmlfactory2->create_document( ).
    *parse input document
    data: iparser2 type ref to if_ixml_parser.
    iparser2 = ixmlfactory2->create_parser( stream_factory = streamfactory2
    istream = istream2
    document = idocument2 ).
    iparser2->parse( ).
    data: odocument type ref to if_ixml_document.
    odocument = idocument2.
    data: irc type i.
    *render document----
    *create output stream
    data: ostream type ref to if_ixml_ostream.
    ostream = streamfactory2->create_ostream_xstring( result ).
    *create renderer
    data: renderer type ref to if_ixml_renderer.
    renderer = ixmlfactory2->create_renderer( ostream = ostream
    document = odocument ).
    irc = renderer->render( ).
    endmethod.

    Hey,
    It seems like the output is not a valid XML,
    (I guess that the input XML is different from your test).
    XML must have one element at the top level,
    for example:
    <A>
    Ilan
    </A>
    <B>
    Shani
    </B>
    is not a valid XML,
    A valid XML should look like:
    <mt_dummy>
    <A>
    Ilan
    </A>
    <B>
    Shani
    </B>
    </mt_dummy>
    In order to see the in-valid XML, press on the right-click mouse on the i.e error text,
    and chose "view source".

  • Abap mapping code

    Hi friends
    I am new to Abap mapping PLZ can any one helpme on abap mapping code
    with Source structure and target structure
    Message was edited by:
            Viswanadh Vadde

    Hi !!
    refer the below links
    BAP Mapping is used whenever you explicitly need to build your output XML structure . Its entirely depends on your call which approach you want to adopt i.e. JAVA mapping or ABAP mapping as in both the cases you need to explicitly build the output structure . ABAP Mapping however creates a DOM tree in the memory . Therefore it can be a performance issue whenever your source structure is complex . In case you need an idea of how to go about ABAP mapping here is a link which you can refer
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    Also ABAP mappings have the handicap that they are separated from usual development in Repository. Additional there is more (ABAP, DOM) experience required as for example for XSLT or graphical mapping (my point of view). So they are used for special reasons like access to ABAP stack (transparent tables!).
    Refer to following SDN Demo which explains the need and how to do the ABAP mapping.
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken] [original link is broken] [original link is broken]
    Comparing Performance of Mapping Programs
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    ABAP Mapping Blogs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    How to Use ABAP Mapping
    https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    Some more
    ABAP Mapping
    I suggest you also go through these links to know more on ABAP Mapping:
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Refer to following SDN Demo which explains the need and how to do the ABAP mapping.
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken] [original link is broken] [original link is broken]
    This document will help you to create ABAP Mapping.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    why Abap Mapping and how to acheive it
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken] [original link is broken] [original link is broken]
    <b>Pls reward if useful</b>

  • ABAP mapping  constraints/restrictions ?

    what are the  ABAP mapping  constraints/restrictions? Please answer its urgent.

    vinod ,
    constrains are basically
    1) ABAP mapping are very complex....
    2)generally ppl go for ABAP mapping  when its not possible to do the mapping dwith graphical,java or XSLT.
    3) there is no ABAP mapping editor in XI
    4) u have to import the ABAP mapping in IR..then u can use it in Interface mapping.
    ABAP Mapping is used whenever you explicitly need to build your output XML structure . Its entirely depends on your call which approach you want to adopt i.e. JAVA mapping or ABAP mapping as in both the cases you need to explicitly build the output structure . ABAP Mapping however creates a DOM tree in the memory . Therefore it can be a performance issue whenever your source structure is complex . In case you need an idea of how to go about ABAP mapping here is a link which you can refer
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    Also ABAP mappings have the handicap that they are separated from usual development in Repository. Additional there is more (ABAP, DOM) experience required as for example for XSLT or graphical mapping (my point of view). So they are used for special reasons like access to ABAP stack (transparent tables!).
    Refer this Pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
    And these Blog also
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    u can achieve value mapping using ABAP mapping..
    see here..
    ABAP Mapping with Value Mapping
    u can have a look
    Using ABAP XSLT Extensions for XI Mapping
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    regards
    biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

Maybe you are looking for