ABAP mapping code in XI or SAP

Hi All,
         Where do I need to write the ABAP mapping code, in XI or SAP. CAn it be written at either of them and used in interface mapping?
Regards,
XIer

Hi,
These are some of the weblogs which they have used ABAP mapping. In all of them they have used it in XI only. Also I have never seen the way you have mentioned.
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
Regards,
---Satish

Similar Messages

  • 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>

  • Predelivered ABAP Mapping by SAP (I dont want to go from scatch)

    Hi everybody,
    I have to code a ABAP Mapping.
    Is there somting predelivered by SAP?
    What is the name of the class?
    Thanks
    Regards Mario

    Hi,
    There is no such ABAP mapping code already delivered with XI.
    You have to code it in transaction SE24.
    U can go thru the links :-
    1.     How to u2026 Use ABAP Mapping in XI 3.0
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    2.     iXML ABAP Objects Jumpstart
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    3.     Testing ABAP Mapping
    Testing ABAP Mapping
    Regards,
    Chandra

  • Abap Mapping: error in accessing to DynamicConfiguration.

    Hi All,
    I have been trying to put a value into Dynamic Configuration repository with the following abap code.
    DATA: l_record TYPE MPP_DYNAMIC.
    l_record-namespace = 'http://name1/ca/result1'.
    l_record-name = 'FileName'.
    l_record-value = '/mydir/dir1/File01.xml'.
    CALL METHOD dynamic_configuration->add_record
      EXPORTING
        record = l_record.
    I receive the following dump.
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Except.                CX_SY_REF_IS_INITIAL
    Date and Time          25.03.2009 11:06:10
    Short text
         Access using a 'ZERO' object reference is not possible.
    What happened?
         Error in the ABAP application program.
         The current ABAP program "Z_XI_MAPPING_TEST_03==========CP" had to be
          interrupted because it contains
         a statement that cannot be executed.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was n
          caught in
         procedure "IF_MAPPING~EXECUTE" "(METHOD)", nor was it propagated by a R
          clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         An attempt was made to access a component with a 'ZERO' object
         reference (points to 'nothing').
         An object reference must point to an object (an instance of a class)
         before it can be used to access a component.
         Either the reference has not yet been set or it was set to 'ZERO' using
         a CLEAR statement.
    I am executing my test outside PI, by launching the report Z_MAPPING_TEST as explained in a blog.
    In java evironment it is necessary to create an istance of a object for saving the value of the variable 'FileName' inside the Dynamic Configuration repository.
    I do not know if it is necessary to create (before) an istance of the Dynamic Configuration in abap mapping or if the method add_record do this.
    The meaning of my test is to get the name file from the Dynamic Configuration repository set in a previous step in a flow where the abap mapping will be launched.
    Any suggestion will be well appreciated.
    Many thanks in advance for your kind cooperation.
    Regard,
        Giovanni

    Hi,
    in your ABAP mapping code, instead of l_record-namespace = 'http://name1/ca/result1' use below:
    l_record-namespace = 'http://sap.com/xi/XI/System'.
    Then re-run your scenario.
    Regards,
    Rajeev Gupta

  • Abap Mapinng Code

    Hi friends
    I am new to Abap mapping PLZ can any one help me on abap mapping code with Source structure and target structure

    hi
    u can refer this link ...there is an example code written...refer that ..it might help u ..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4

  • Reg:abap mapping

    Hi Gurus,
    Can any one help me in abap mapping ,
    where the source and destination nodes and the source and destination structure different and with multiple nodes.
    Thanks & Regards
    Shiva

    Hi,
    Blog -- /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    SDN TV demo to create and test ABAP mapiing - https://media.sdn.sap.com/SDNTV/main.asp?mediaId=128
    How to guide for ABAP mapping.
    https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&
    pdf for ABAP mapping.
    *https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    *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
    testing ABAP Mapping- Testing ABAP Mapping
    Thanks,
    Shweta

  • Java Maping and ABAP Mapping

    Hello,
    Pls let me know about Java Maping and ABAP Mapping
    Also pls provide good simple scenario blogs for Java Maping and ABAP Mapping.
    Regards

    Hi Ranchit,
    Check these links for Mappings
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://websmp102.sap-ag.de/~sapdownload/011000358700003604872004E/MappingXI30.pdf  (Need Service Makrket place ID)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    JAVA Mapping BLOGS
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    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
    Sachin
    Message was edited by:
            Sachin Dhingra

  • ABAP MAPPING doesn't update immediately after modify ?

    Hi,
    I have developed ABAP mapping in my scenario, but the why the class doesn't effect immediately after i have done some modification in the mapping class.
    is there any step that i have to execute after i have changes the abap mapping code in order to make this class working in my mapping step ?
    Please advise.
    Best Regards
    Fernand

    Fernanad,
    It should ideally...try refreshing the cache....
    Regards,

  • How to find unused ABAP custom code?

    Hi,
    how can I identify the unused ABAP custom code  outside of  the SAP Solution Manager?
    Thanks in advance.
    Nora

    Like a Google for ABAP, the Salt Code Ferret app provides incredibly fast searching of custom ABAP programs or modified standard SAP programs across all your SAP systems. Sniffing out specific pieces of code, Code Ferret is a huge timesaver in locating multiple instances of potentially conflicting code, code errors, or code that developers want to access or replicate. www.saltapps.com
    Try Salt free for 90 days – it’s a suite of eight virtual appliances running on VMware or Hyper-V for understanding what’s happening in SAP systems and across SAP landscapes.

  • ABAP mapping query

    Hi Sdn,
    I am new to ABAP mapping in XI, can you please help me out by answering the below questons.
    1. When is an ABAP mapping being used?
    2. How to write an ABAP mapping?
    3. Some examples of ABAP mapping?
    Suitable links will also do?
    Thanks and regards,
    Aniruddha Bhattacharya

    Hi Aniruddha,
    Few Links from my collection;)
    [ABAP Mapping Steps |https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/abap%252bmapping%252bsteps]
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    collection of all related Blogs and [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426|]Wikis
    The best one http://www.sdn.sap.com/irj/scn/advancedsearch?query=abap+mapping.
    Regards,
    Srinivas
    Edited by: Srinivas on Apr 22, 2010 8:47 PM

  • 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

  • Error in ABAP Mapping (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION)

    Hi ,
      Scenario:  Manually Purchase Order is created, automatically Sales Order should be created in the Target System through PI,
                       I have used Message Mapping which is working fine for single Customer and Vendor,
                       For Multiple Customers and Vendors i am using one ZTABLE, Only Message Mapping is not  sufficient to my requirement.
                      Now i am using both Message Mapping and   ABAP Mapping  at a time in Interface Mapping. I created the class and                done  the   development., whene  i run the scenario i am getting the error as below,
    *<SAP:Stack>Error in mapping program ZCL_SD_IDTO_POSO (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference</SAP:Stack>*
      *<SAP:Retry>M</SAP:Retry>*
      *</SAP:Error>* 
    Please let me know.
    Best Regards
    Vamsi

    Have u seen the ABAP mapping guide?
    Refer this series to the ABAP mapping section.https:///people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii
    It will be very handy and useful.

  • 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

  • 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

  • SAP XI 30: Enable ABAP Mapping

    Hi everybody,
    we are on XI 30 and want to enable ABAP-Mapping.
    What do we have to do?
    regards Mario

    Hi,
    Just Open http://<host>:<port>/exchangeProfile/index.html
    Choose IntegrationBuilder -> IntegrationBuilder.Repository ->com.sap.aii.repository.mapping.additionaltypes
    Maintain the following entry:  R3_ABAP|Abapclass; R3_XSLT|XSL (ABAP Engine)
    The ABAP Mapping would be enabled.
    Regards,
    Chandra
    Edited by: sunil chandra on Sep 11, 2008 5:21 PM

Maybe you are looking for

  • PKCS#11 library issue on Java 5

    Hi, I'm facing problem with PKCS#11 library name using SunPKCS11 in Java 5. My sample program runs successfully either providing only PKCS#11 library name or providing library name with absolute path in Java6. My sample code is given below: String st

  • Live migration with Fault Tolerance (FT)?

    Dose the new version of VM server for SPARC (2.1) have an option for live migration with Fault Tolerance (seemlier to VMware FT)? while live migration is great it dose not protect against a server failure vs something like live migration with FT woul

  • Working on toplink 11.1.1 and weblogic 12.1.2 configuration. I am getting following exception.

    Exception [TOPLINK-7095] (Oracle TopLink - 11g (11.1.1.0.1) (Build 081030)): oracle.toplink.exceptions.ValidationException. The sessions.xml resource [sessions.xml] was not found on the resource path. Check that the resource name/path and classloader

  • [CS6] Cuda and firewire output

    There was problem in CS5 outputing video via firewire to DV/HDV deck when CUDA acceleration is enabled. Has this been fixed in CS6?

  • Dedicated Memory Does Now Show

    My Laptop model is HP ProBook 450 G2 Notebook PC, Serial Number:   [Personal Information Removed], Product Number:   L6B82PT. This PC supports AMD 2GB Dedicated Graphics Card (ATI AMD Radeon R5 M255). I have istalled both driver such as below: 1. AMD