ABAP Mapping - How to test it

Hi,
I'm trying to test the SAP example found  in document "How to use Abap-Mapping in XI 3.0". This one is:
class interface = Z_TEST_ABAP_MAPPING
method = IF_MAPPING~EXECUTE
But I cannot test it.
1. In IR, when I uses the "Test" option inside my Interface Mapping, I have the following error message:
"Unable to tes. You cannot execute program Z_TEST_ABAP_MAPPING in the test environnement".
2. and when I uses transaction SXI_MAPPING_TEST, I have first this message: <i><SUCCESS>Services Processed Without Error</SUCCESS></i> But in the Trace folder, there is that:
  <?xml version="1.0" encoding="iso-8859-1" ?>
- <Top>
  <First>BeginTrace</First>
  <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
  <Trace level="2" type="T">......attachment XI_Context not found</Trace>
  <Trace level="1" type="T">No mapping configured</Trace>
  <Trace level="1" type="E">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
  </Top>
Anybody can help me?
Regards.
Mickael.

Hello,
Have you create a scenario in Integration Directory ?
Check in the Directory if in your interface determination you put correct information.
The sender service : SENDER
The sender interface : BookingOrders corresponding interface.
The sender namespace : http://sap.com/test/ABAPMapping
The receiver service : RECEIVER
Under Configured Inbound Interfaces, you can find :
The Inbound interface : MsgOut corresponding interface.
Interface mapping : BookingOrders2MsgOut that use your ABAP Mapping.
I am not sure the Receiver determination is necessary.
Then if it's OK, check that you put exactly the same information in transaction SXI_MAPPING_TEST :
Sender Service : SENDER
Sender Interface Namespace : http://sap.com/test/ABAPMapping
Sender Interface Name : BookingOrders corresponding interface.
Receiver Service : RECEIVER
Receiver Interface Namespace : namespace where you define your MsgOut Interface.
Receiver Interface Name : MsgOut corresponding interface.
Regards,
Chris

Similar Messages

  • How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0).

    Hi,
    I am looking for this document: How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0), and not able to find it.
    Can anybody please point me the location, to look for, or post the document.
    Thanks,
    Namadev

    Hi Namadev Chillal  ,
    These r the links containing PDF docs which u r looking for:
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Excellent PDF Document on Mapping
    http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
    Mapping Development with the ABAP Workbench
    http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
    ABAP Mappings
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm

  • Abap mapping "How to" not available, can you send me the pdf?

    Hello,
    I need information about ABAP Mapping and all the posts about that kind of mapping have a link to the sdn guide "How to Use ABAP Mapping in Exchange Infrastructure 3.0" --> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    But that link is broken , is there any way that you can send me that file if you got it?

    Hi Marshal,
    Start with this...........
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    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
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping

  • Reg: Test an ABAP mapping

    Hi All,
                        When i go to test at interface mapping level there is no possiblity to test ABAP mapping. Is there any way to test ABAP mapping without executing scenario.
    Thanks,
    Satish.

    This is a link very useful for ABAP Mapping :
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    You should define a simple scenario. Sender Service, Receiver Service and Interface Mapping using your ABAP Mapping
    You can test your ABAP Mapping using the transaction,
    SXI_MAPPING_TEST
    Check my weblog as to how to use the transaction for testing,
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Check this thread:
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D44%26threadID%3D34468%26messageID%3D326456%23326456
    Note:please reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Testing ABAP mapping

    Hi,
            I have created one ABAP mapping class with the method IF_MAPPING~EXECUTE.I tried to test the mapping program in a report by passing  the source(XML document as a string).The call to the mapping method is done as follows:
    CALL METHOD CLASS1=>IF_MAPPING~EXECUTE
         EXPORTING
              source = sxml
            IMPORTING
               result = sxml1.
    When I try to activate the above call, I get an error message which says that You can only use class=>method  with static methods.This is happening in SAP WAS6.20.I understand that ABAP mapping can be tested in dynamic calls only in XI.
             So the only option left is to test the ABAP mapping in Integration repository Design -Interface mapping.When I include ABAP mapping class  in the interface mapping and run the whole scenario,I get error message in SXMB_MONI.
    Is there an easy way out to test the ABAP mapping than including it in the Interface mapping?If you have some ideas,please inform.
    Thanks in advance,
    S.Banukumar

    Hi Chris,
              Thanks a lot.I have corrected the name space as ns instead of ns0.I have  done the Design and Directory setting as suggested by you.Now I am getting the following error when I try to test my scenario in
    SXI_MAPPING_TEST.
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
      <ERROR href="#o97" />
      </asx:values>
    - <asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:abap="http://www.sap.com/abapxml/types/built-in" xmlns:cls="http://www.sap.com/abapxml/classes/global" xmlns:dic="http://www.sap.com/abapxml/types/dictionary">
    - <cls:CX_XMS_SYSERR_MAPPING id="o97">
    - <CX_ROOT>
      <TEXTID>579DFEE1FC5AF24F9C83617A696DC539</TEXTID>
      <PREVIOUS />
      <KERNEL_ERRID />
    - <INTERNAL_SOURCE_POS>
      <PROGID>160</PROGID>
      <CONTID>650</CONTID>
      </INTERNAL_SOURCE_POS>
      </CX_ROOT>
      <CX_STATIC_CHECK />
    - <CX_XMS_SYSTEM_ERROR>
      <ID>APPLICATION_PROGRAM_ERROR</ID>
      <P1>$TMP.BOOKINGTOMSG</P1>
      <P2>R3_ABAP</P2>
      <P3>UNCAUGHT_EXCEPTION</P3>
      <P4 />
      <INFO />
      <CATEGORY />
    What could be possible reason for the exception?Do I need to give the name space for the ABAP mapping name when I include it in the Interface mapping?
    Thanks,
    S.Banukumar

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

  • Material on ABAP mapping

    Hi Experts,
           Can any one please send a good material on ABAP mapping. I had searched in SDN, but unable find. I want the material from the basics......
    Regards,
    Jayaram.G

    Hi
    Generic mapping to convert nested XML to flat - Receiver file adatper
    Generic mapping to convert nested XML to flat - Receiver file adatper
    Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
    Dynamically sending a mail to the PO creator using XSLT- ABAP  Mapping
    How to call XI ABAP Mapping via RFC
    How to call XI ABAP Mapping via RFC
    Testing ABAP mapping
    Testing ABAP Mapping
    use this thread
    ABAP Mapping

  • How to test ABAP Mapping

    Hi,
    In the Interface Mapping there is an option to test the
    map. But it is not for the ABAP Mapping.
    How can we test ABAP Mapping ?
    rgds,
    RM

    Hi Ruby
    What kind of scenario are you working on, IDOC to file, file to IDoc or what.
    Depending on the scenario you have created, enter all the details such as Sender Service, Receiver Service etc in the transaction SXI_MAPPING_TEST (in your XI box).
    The next step is for you to enter your source XML file, if it is a file to IDoc scenario enter your source xml file. If it is a IDOC to file scenario, then enter the XML payload.
    And once you execute it you will be able to test your mapping and see if it successful or not.
    cheers
    Sameer

  • How to test ABAP mapping used in a Integration Process node

    Hi,
    anyone can suggest me how to debug an ABAP mapping used into a transformation node belonging to an Integration Process ?
    Thanks.
    Francesco

    Hi, Francesco.
    I've debugged ABAP Mapping with SXI_MAPPING_TEST transaction.
    If you have creted a scenario including your ABAP Mapping, you only hace to put the correct sender/sender interface and receiver/receiver interface. You have to put some XML document as an input.
    I wrote in my code the Break-point instruction an debugged the process without problems.
    regards,
    Francisco

  • ABAP Mapping - Testing - IDoc - Trouble

    Hi Friends,
    There is one ABAP Mapping used in our system. The outbound interface is based on one message in external definition and inbound interface is IDoc.
    When I try to test this mapping in our PI System using the transaction "SXI_MAPPING_TEST", in the initial screen/input screen in F4 help for the Sender Interface selection, our outbound interface is not displayed. In the Receiver Interface also, it is not display the IDoc.
    What could be the problem ? How to test our Z class in this case with the input XML.
    Could you please help me?
    Kind regards
    Jegathees P.

    Hi,
    don't use SXI_MAPPING_TEST
    use my report which is much better
    XI/PI: Easy ABAP mapping tests - no more SXI_MAPPING_TEST
    BTW
    there is no need to use any HTTP client nor anything to test ABAP mapping - just my report
    Regards,
    Michal Krawczyk

  • Can somebody post link to How to Use ABAP-Mapping in XI 3.0?

    Hello,
    can somebody post a real link to the document How to Use ABAP-Mapping in XI 3.0. All the links to this documnet in the existing posts are not valid.
    Thanks for your information
    Jayson

    Hi
    Following weblog might help you.
    Testing ABAP Mapping - Testing ABAP Mapping
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    /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&
    Also check these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    Testing ABAP Mapping
    Using ABAP XSLT Extensions for XI Mapping
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 9, 2008 6:27 AM

  • ABAP MAPPING TESTING

    How can I test an ABAP mapping where the input file is a flat file (fieldfixed length file)?
    Kindly give me the detailed steps for doing so.

    Hi Biswa,
    One of the many disadvantages of using ABAP mapping.
    U cannot test in ESR. Unlike Graphical mapping, there will not be any Msg Mapping object in ABAP mapping. Only an operation mapping is there.
    The only way to test the interface is End-To-End. I.E. Process the scenario frm picking the file from Application server location and checking the data posted in backend system correctly.
    One more way, u can test the mapping program in the ABAP stack by passing on the file as input.
    Cheers,
    Souvik

  • How to debug ABAP mapping

    Hello
    I've built a ABAP mapping based on How To convert an IDoc-XML structure to a flat file and vice versa in XI 3.0, however it runs into exeception when I tested it in SXI_MAPPING_TEST with error;
    - <cls:CX_SY_NO_HANDLER id="o265">
    - <CX_ROOT>
      <TEXTID>1F09B73915F6B645E10000000A11447B</TEXTID>
      <PREVIOUS href="#o266" />
      <KERNEL_ERRID>UNCAUGHT_EXCEPTION</KERNEL_ERRID>
      <IS_RESUMABLE />
    - <INTERNAL_SOURCE_POS>
      <PROGID>217</PROGID>
      <CONTID>5192</CONTID>
      </INTERNAL_SOURCE_POS>
      </CX_ROOT>
      <CX_NO_CHECK />
    - <CX_SY_NO_HANDLER>
      <CLASSNAME>CX_SY_REF_IS_INITIAL</CLASSNAME>
      </CX_SY_NO_HANDLER>
      </cls:CX_SY_NO_HANDLER>
    I want to debug into the mapping class, someone said jsut set break point in the mapping class and run sxi_mapping_test, then I would be able to debug. However this doesn't work, the execution doesnot stop at the break point (I set session break point, not external break point). Somebody can help?
    Thanks
    Eric

    The trace I got is like:
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="3" type="T">Mapping is determined</Trace>
      <Trace level="1" type="T">Interface Mapping http://mynamespace/xi OM_Order_to_Simple</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping F1B943B7E3EB382FB1334066F113E0E6</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping EAA847208A4B11DD96D8F1C80AD60A0B</Trace>
      <Trace level="3" type="T">Mapping Steps 1 R3_ABAP Z_ABAP_MAPPING_IDOC_TO_FLAT</Trace>
      <Trace level="3" type="T">MTOM Attachments are Transferred to the Payload</Trace>
      </Top>

  • Test ABAP Mapping

    I have completed an ABAP mapping scenario (first time).  I am not sure how to test the ABAP mapping.  Does anyone have a detailed document on this?
    Thanks
    Skip Ford

    Hi,
    here is a blog about this topic:
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Regards
    Patrick

  • 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

Maybe you are looking for

  • Want to play a video in pop up via a CEWP link in sp 2013 but facing issue after publishing the page pop up does not open

    Hi All, My Steps:- 0<sup>th</sup> Step:- Upload a video in any doc library. 1<sup>st</sup> step:- Add the uploaded link in App as per instruction http://stevemannspath.blogspot.com/2012/12/sharepoint-2013-videos-in-sharepoint.html 2nd step:- write th

  • Strange problem with jars in Java Mapping

    Hi All, I'm trying to implement a Java Mapping that uses Xerces. I'm using xercesImpl.jar. I put the xercesImpl.jar file in the folder containing the .class file (the Java Mapping program), and zipped the folder.I imported the zip file as an archive

  • MULTIPLE VALUES PASSING TO STORED PROCEDURE

    Hi,  I have a following stored procedure, I am passing two parameters from the drop down list by using a different dataset. User is selecting multiple values from drop down list in reporting services from code a drop down and code b drop down. I have

  • Ipad has frozen whilst updating system from itunes

    my ipad has frozen with the itunes symbol on it after trying to upload some music from laptop.  The system said I had to update my ipad before continuinng and now it has frozen.  Can not get it to do anything.  When i plug my ipad back into my laptop

  • A Problem on removing a ActionListener

    In my program, due to the structure constraint, I have one action listener attached to a button in one place. And in somewhere else of my code I have to attach another action listener to this button, in this listener's actionPerformed method, I need