Keep namespace tags throughout the message mapping in XI

Hi!
I am facing the following problem:
A backend application sends out XML messages that all have a namespace tag in the element names:
<ns1:StandardBusinessDocument xmlns:ns1="http://www.unece.org/cefact/namespaces/SBDH" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:eanucc="urn:ean.ucc:2" xmlns:deliver="urn:ean.ucc:deliver:2" xsi:schemaLocation="http://www.unece.org/cefact/namespaces/SBDH ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/ReceivingAdviceProxy.xsd">
<ns1:StandardBusinessDocumentHeader>
<ns1:HeaderVersion>2.2</ns1:HeaderVersion>
<ns1:Sender>
<ns1:Identifier Authority="EAN.UCC">1234567890123</ns1:Identifier>
</ns1:Sender>
Problem is that the backend expects the reply from XI to look the same (ns0: or ns1: in front of every element name). But when I import the xsd into XI, it removes these tags and the message then looks completely different to the backend:
<ns0:StandardBusinessDocument xmlns:ns0="urn:ean.ucc:2" ns1="http://www.unece.org/cefact/namespaces/SBDH" eanucc="urn:ean.ucc:2" deliver="urn:ean.ucc:deliver:2" schemaLocation="http://www.unece.org/cefact/namespaces/SBDH ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/ReceivingAdviceProxy.xsd" xsi="http://www.w3.org/2001/XMLSchema-instance"><StandardBusinessDocumentHeader><HeaderVersion>2.2</HeaderVersion><Sender><Identifier Authority="EAN.UCC">1234567890123</Identifier></Sender>
Any help on how to make XI keep the namespace tags is greatly appreciated!
Cheers!
Stefan

Hi Stefan,
plz have a look to following german sides:
Stefan Münz: XSLT
Informationen zur Extensible Markup Language
Einführung in XSL-Transformation (XSLT)
You have to do a construction like
<ns1:Sender>
<ns1:Identifier Authority="EAN.UCC">
<xsl:value-of select="//X-Path expression on my source field"></xsl:value-of></ns1:Identifier>
</ns1:Sender>
Regards,
Udo

Similar Messages

  • My iPod doesn't sync it keeps coming up with the message "The iPod 'iPod Nano' cannot be synced. An unknown error occurred (13019)." What does this mean and how can I fix it.

    My iPod doesn't sync it keeps coming up with the message "The iPod 'iPod Nano' cannot be synced. An unknown error occurred (13019)." What does this mean and how can I fix it?

    I am getting the same error message. Have you figured it out?

  • How to use the variables used in the message mapping

    Hi ,
    In the message mapping we can declare variables in the JAVA section , these variables could be used across the mapping .
    I have tried using it but I am unable to retrieve the values assigned to the variables in one UDF into the another UDF .
    Please guide me how to use the variables declared in the JAVA section in the message mapping .
    Thanks
    Anita Yadav

    Anita,
    I have worked on the Global variables and i found no issues. Make sure that the variable is declared in the Declaration Section and then initlaized in the Initialization section.
    If you declare a variable in the Declaration Section ,
    int i;
    then in any udf you can use if directly. No need to re declare  the variable in the UDF. If you do this, then it becomes a local variable.
    Regards,
    Bhavesh

  • Unable to save the message mapping

    Hi..
    I have completed the Message Mapping. when i am trying to save the Message Mapping i am getting the  Error while executing save "The length 0 of the array ' Sorted Function keys' is not equal to the number of 1 functions".
    can you pls suggest me, how can i rectify this type of strange error.
    Regards,
    Prasad

    Hi,
    that means that one of your Sorted Functions does not have correct input
    as the error says
    you probably placed it in a wrong way - check the functions
    desciption on help.sap.com or an example on SDN blogs
    and correct it - then it will work
    Regards,
    Michal Krawczyk

  • Problem by transporting the message mapping from PI 7.0 to PI 7.1

    Hi Everyone,
    by transporting the message mapping from PI 7.0 to PI 7.1 i have got the following problem.
    "Source code has syntax error:
    K:\usr\sap\E71\DVEBMGS00\j2ee\cluster\serve......
    package udfpool does not exist
    import udfpool.*;
    i have used a UDF in my message mapping.
    This UDF calls for a method of a java class, which is imported as a .jar file with this message mapping.
    this message mapping works very well on PI 7.0,
    but doesn't work any more on PI 7.1 because of the problem described above.
    anyone can help me out of this problem?
    thanks!
    zc

    hi,
    but did you import the jar archive to 7.1 first?
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

  • How to Edit the message mapping in Quality server

    Hi Experts,
    Can you plz tell me, is there any way to edit the message mapping in QUALITY system?

    Hi,
    >>>>Can you plz tell me, is there any way to edit the message mapping in QUALITY system?
    the correct one:
    - correct on DEV
    - export/import
    and it's edited on quality
    if you edit on qulity by changing the SWCV to editable then remember to
    do the change in DEV later and export import and solve the version conflict on quality
    as if you forget to do this someone will have to solve in the future and will not know why....
    Regards,
    Michal Krawczyk

  • CcBPM Process Number in the Message mapping

    Hi,
    I  have a requirement to map the ccBPM's process number in which the Mapping error has occured to be mapped to a specific field in the target.  I wanted to know how could I pass the BPM's process number to the message mapping ( this message mapping(Service mapping) is a part of the same BPM).  If we could get the MESSAGE_ID of the message in the message mapping, we should also be getting the BPM Process number.
    In other words, when an alert is triggered in BPM, we get the BPM process number in its subject, i need that BPM process number in to the message mapping where that message has to be stored in a table in ECC.
    I have searched in help and SDN to check if some system properties can help, but i couldnt.  Any help/inputs from you is highly appreciated.
    Regards,
    Kalpana.

    Hi Manuel,
    it is very easy to to get the <b>Message ID</b>, which is unique and useful for selecting a message in the monitoring
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm">Special Access to Mapping Runtime Constants</a>
    You send a mail from Java Mapping or, what would be the standard, (as additional) message from BPM or just as normal Message Receiver or only in Error case as Alert receiver.
    Regards,
    Udo

  • Get the target system time in the message mapping

    Hi there,
    I need to use the system time of target R/3 system in the message mapping. Any ideas how can I handle this?
    Thanks,
    Igor.

    Thanks for your quick replies.
    XI and R/3 system is in the same timezone but this is not relevant. I know it might sound strange but there is a reason I need to use time in the message mapping which is 2 minutes later than in the target system:
    e.g. target system time: 16:58:32 I need to use 16:56:32 value  in the mapping.
    I found RFC MSS_GET_SY_DATE_TIME which can proide me with the value, just wondering if there is no other way how to do that other than RFC lookup ...
    Thanks,
    Igor

  • Create IDoc from flat file - How to do the message mapping

    Hi everybody,
    I want to create an IDoc from a flat file.
    The file structure looks like this:
    MT_XYZ
    - Node001       0...1
      - Leaf001
    - Node002       0...unbounded
       - Node003    0...1
          - Leaf002
          - Leaf003
       - Node004    0...1
          - Leaf004
       - Node005    0...1
          - Leaf005
    I have created a mapping and all the other stuff to set up the IDoc adapter.
    Now when I try to test the interface the IDoc is created properly but obviously no information from the nodes "Node003" to "Node005" is inserted in the IDoc. Only the information kept in the elements (leafs) of "Node001" are inserted.
    All IDoc segments and their "Segment" elements are linked to the root node of the file structure "MT_XYZ". I tried to link some IDoc segments only to "Node002" but then this segment is not created.
    So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    Thanks in advance for all answers!
    Regards,
    Torben
    Edited by: Torben Hönemann on Dec 14, 2009 4:26 AM

    Hi Torben,
    >>I want to create an IDoc from a flat file.
    So you are using File content Conversion on the sender side. Right?
    >>no information from the nodes "Node003" to "Node005" is inserted in the IDoc.
    Are these information available in the source XML (you can check in transaction SXMB_MONI-> Input Payload).. There is a limitation in File Content Conversion of File adapter and it is that I can make an XML structure of 3 level.. Since these nodes details are in level 4 and 5 they should be missing in Source XML structure itself (after content conversion of File adapter). check that
    >>So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    So you need to take an alternate approach where you do File Content Conversion and make 3 level structure.. then using a mapping convert this three level structure to your 5 level one and then try to map with the idoc.
    Check this blog for an idea
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-complex-structures/
    http://www.riyaz.net/blog/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical-mapping/
    Regards
    Suraj

  • Download (documentation) the Message Mapping to client

    Hi Gurus,
    is there any possibility to download the Message Mapping i have done in the PI to my local pc? I need this to document how i realized my mapping.
    I would be glad about tips and hints.
    Regards
    Udo

    HI,
    I think you are looking for this..
    /people/daniel.graversen/blog/2009/03/16/pi-mapping-diff-tool
    /people/daniel.graversen/blog/2008/12/29/the-easy-pi-message-mapping-documentation-service
    Regards,
    Sarvesh

  • How to view the java code of the message mapping,

    Hi Experts,
    <b>how to view the java code of the message mapping,</b>
    how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi sowmya,
    Open any  Message mapping in IR. Press <b>CtrlShift0(zero)</b> to open a new menu.
    There you will find an option "Is Java Source Code Available?"
    There will be an export button nearby. Use it to get the code.
    Open it in a zip , you will see the hide java code.
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.

  • Does the message mapping editor insure that a valid target message is co

    Hi Friends
    Does the message mapping editor insure that a valid target message is constructed?
    Regards
    Sam

    Samuel,
    Message mapping editor ,will generate the output as per your logic. Hence you need to validate and check whether the target message has been created correctly.
    If you say," I'm perfect with the logic, I created the mapping I checked the target strcuture, its perfect, always the data will be populated correctly?" If the above is your question, then the answer is YES.
    raj.

  • Not Able to Activate the Message Mapping in XI

    Hi All,
    I am facing error while activating a simple Message Mapping (Mapping which I have created using XI’s graphical mapping tool). What I understood from the error log is that, even though we are doing the graphical mapping, internally XI is creating a java mapping program. And while activation its basically compiling the graphical mapping (internally a java program) and while compilation this java program we are getting the error.
    we have XI 3 with SP17 version java 1.4.2_06 running
    i have copied the part of default.trace file which has the error
    #1.5#0011433286D800590000095B000023BC00041BABC8FCF82A#1156324532170#com.sap.engine.compilation#sap.com/com.sap.xi.repository#com.sap.engine.compilation.ExternalCompiler.compile()#RAKESHR#302#SAP J2EE Engine JTA Transaction : [657ffffffa42600cffffffac]#iscsapapp4w_NW2_106406950#RAKESHR#d9a3dc50328711dbbc700011433286d8#SAPEngine_Application_Thread[impl:3]_40##0#0#Error##Plain###Error while compiling :
    java.io.IOException: CreateProcess: null
    bin
    javac -J-Xmx256m @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/O1156324532061.txt @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/S1156324532124.txt error=2
         at java.lang.Win32Process.create(Native Method)
         at java.lang.Win32Process.<init>(Win32Process.java:66)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Runtime.java:566)
         at java.lang.Runtime.exec(Runtime.java:491)
         at java.lang.Runtime.exec(Runtime.java:457)
         at com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:73)
         at com.sap.aii.ib.server.cmpl.Compiler.compile(Compiler.java:192)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:203)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:156)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:361)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:301)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileWithoutSave(ServerMapService.java:264)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compile(ServerMapService.java:222)
         at com.sap.aii.ibrep.server.check.mapping.XiMappingChecker.check(XiMappingChecker.java:113)
         at com.sap.aii.ibrep.server.mapping.xitrafo.XiTransformationChecker.check(XiTransformationChecker.java:114)
         at com.sap.aii.ibrep.server.check.mapping.InternalCheckServiceImplXiTransformation.checkObject(InternalCheckServiceImplXiTransformation.java:37)
         at com.sap.aii.ib.core.check.CheckServiceProvider$CheckServiceImpl.checkObject(CheckServiceProvider.java:98)
         at com.sap.aii.ib.server.oa.ServerObjectAccess.checkBeforeIntegrate(ServerObjectAccess.java:2205)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmtImpl.releaseChangeList(ChangeListMgmtImpl.java:767)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmtImpl.submitChangeList(ChangeListMgmtImpl.java:217)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmt.submitChangeList(ChangeListMgmt.java:132)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmt.submitChangeList(ChangeListMgmt.java:124)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtBean.submitChangeList(ChangeListMgmtBean.java:92)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtRemoteObjectImpl10.submitChangeList(ChangeListMgmtRemoteObjectImpl10.java:435)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtRemoteObjectImpl10p4_Skel.dispatch(ChangeListMgmtRemoteObjectImpl10p4_Skel.java:343)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:309)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:194)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.5#0011433286D800590000095D000023BC00041BABC8FDCA9D#1156324532217#XIREP.com.sap.aii.ib.server.mapping.exec.ServiceUtil#sap.com/com.sap.xi.repository#XIREP.com.sap.aii.ib.server.mapping.exec.ServiceUtil#RAKESHR#302#SAP J2EE Engine JTA Transaction : [657ffffffa42600cffffffac]#iscsapapp4w_NW2_106406950#RAKESHR#d9a3dc50328711dbbc700011433286d8#SAPEngine_Application_Thread[impl:3]_40##0#0#Error#1#/Applications/ExchangeInfrastructure/Repository#Plain###Compilation process error : CreateProcess: null
    bin
    javac -J-Xmx256m @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/O1156324532061.txt @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/S1156324532124.txt error=2
    Thrown:
    MESSAGE ID: com.sap.aii.ib.server.cmpl.CompilerException
    com.sap.aii.ib.server.cmpl.CompilerException: Compilation process error : CreateProcess: null
    bin
    javac -J-Xmx256m @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/O1156324532061.txt @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/S1156324532124.txt error=2
         at com.sap.aii.ib.server.cmpl.Compiler.compile(Compiler.java:209)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:203)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:156)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:361)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:301)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileWithoutSave(ServerMapService.java:264)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compile(ServerMapService.java:222)
         at com.sap.aii.ibrep.server.check.mapping.XiMappingChecker.check(XiMappingChecker.java:113)
         at com.sap.aii.ibrep.server.mapping.xitrafo.XiTransformationChecker.check(XiTransformationChecker.java:114)
         at com.sap.aii.ibrep.server.check.mapping.InternalCheckServiceImplXiTransformation.checkObject(InternalCheckServiceImplXiTransformation.java:37)
         at com.sap.aii.ib.core.check.CheckServiceProvider$CheckServiceImpl.checkObject(CheckServiceProvider.java:98)
         at com.sap.aii.ib.server.oa.ServerObjectAccess.checkBeforeIntegrate(ServerObjectAccess.java:2205)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmtImpl.releaseChangeList(ChangeListMgmtImpl.java:767)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmtImpl.submitChangeList(ChangeListMgmtImpl.java:217)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmt.submitChangeList(ChangeListMgmt.java:132)
         at com.sap.aii.ib.server.clmgmt.ChangeListMgmt.submitChangeList(ChangeListMgmt.java:124)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtBean.submitChangeList(ChangeListMgmtBean.java:92)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtRemoteObjectImpl10.submitChangeList(ChangeListMgmtRemoteObjectImpl10.java:435)
         at com.sap.aii.ib.sbeans.clmgmt.ChangeListMgmtRemoteObjectImpl10p4_Skel.dispatch(ChangeListMgmtRemoteObjectImpl10p4_Skel.java:343)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:309)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:194)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Root cause:
    com.sap.engine.compilation.CompilerProcessFailureException: Compilation process error : CreateProcess: null
    bin
    javac -J-Xmx256m @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/O1156324532061.txt @E:/usr/sap/NW2/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapec86e9c0328711dbb0ab0011433286d8/S1156324532124.txt error=2
         at com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:77)
         at com.sap.aii.ib.server.cmpl.Compiler.compile(Compiler.java:192)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:203)
         at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:156)
         at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapS

    are you facing the problem for every mapping created ? Else try to delete the existing mapping and recreate the same.

  • No effect after changing the message mapping

    Hi everybody,
    i'm using PI 7.1. After changing the attributes in my message mapping i can no see any effect in my result.
    Should it be a cache problem? Where can i delete the caches?
    regards,
    Sid

    Hi,
    I guess there can be two things.
    before going to the tcode sxi_cache...
    Please go to the IR, Click Environment, Cache Notification and then select author as your id.
    Now see if any are in red status. if so click on the change and click Repeat Cache Notification.
    Now press refresh.
    I guess this will resolve your problem

Maybe you are looking for

  • Oracle tnsping alerts

    Hi All, From one of my application to Oracle DB i am getting the tnsping alerts like below, the problem fixing automatically after some. But its hapenning frequently (day by day). What was the reason. The result of tnsping "haridb.world" was: TNS-125

  • Event ID error

    Event 5586 (SharePoint Foundation) of severity 'Error' occurred 380 more time(s) and was suppressed in the event log Event 2159 This error might be caused by one of the following conditions: The account that Windows SharePoint Services 3.0 is using t

  • Where can i get a e-book on java sound?

    I want to know where i can download a ebook on java sound.

  • Pasting webpages to email

    I regularly paste Safari images into Apple Mail for my consulting work. In the past, I was able to merely cut-and-paste the entire page, which would appear as a regular image below the text. After one of the recent upgrades (before 5.0), I found I ha

  • Customizing container screen of CICO

    Hi all, I have requirement where in I need to enhance the enviroment tabstrip of CICO subscreen. indeed this subscreen actually consists of hiearchical data for a business partner which is filled by a BSP application. now that i need to include some