Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XML to IDoc scenario

Hi all,

for a customer I'm building an xml to IDoc scenario. The xml-file looks like this:

<?xml version="1.0" encoding="UTF-8" ?> 
<ROOT>
  <ROW>
    <_5731 /> 
    <_5735 /> 
    <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
     ....
  </ROW>
</ROOT>

The message type I created in the message mapping looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<ns0:ROOT xmlns:ns0="http://wartsila.com/i-protect">
   <ROW>
    <_5731 /> 
    <_5735 /> 
    <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
     ....
  </ROW>
</ROOT>

My problem is I'm not able to translate the customer xml-file in my message mapping, unless I add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by deleting the namespace declaration in the message mapping. After that I receive an error when I import the changed structure into the message mapping.

Is anyone familiair with this problem? Is there someway to add a namespace to the sourcefile or to change the message mapping such a way that it corresponds to the source file?

Thanks in advance!

Regards,

Ivo van Ee

Former Member
Former Member replied

Hey

Just delete the namespace from the Message type as given in the following blog

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Thanx

aamir

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question