Skip to Content
0
Former Member
Apr 08, 2008 at 11:16 AM

MDM Import Manager XML XSD Error

44 Views

Hello All,

I am facing problem while importing MVKE data for Material.

I have created varsatile XML for MVKE fields and XSD for the same. When I try to import data by XML Schema using that versatile file it works, but when i try using the actual xml from R3 containing data, it throws error

"Element Content is invalid according to DTD/schema"

The XSD and XML files i m attaching herewith.

XSD

<?xml version="1.0" encoding="UTF-8"?>

http://www.w3.org/2001/XMLSchema">

<xs:element name="AUMNG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="EFMNG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="IDOC">

<xs:complexType>

<xs:sequence>

<xs:element ref="MDME1MARAM" minOccurs="0"/>

</xs:sequence>

<xs:attribute name="BEGIN" type="xs:NMTOKEN" use="required"/>

</xs:complexType>

</xs:element>

<xs:element name="LFMNG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="LVORM">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="MATNR">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="MDME1MARAM">

<xs:complexType>

<xs:sequence>

<xs:element ref="MATNR" minOccurs="0"/>

<xs:element ref="MDME1MVKEM" minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

<xs:attribute name="SEGMENT" type="xs:NMTOKEN" use="required"/>

</xs:complexType>

</xs:element>

<xs:element name="MDME1MVKEM">

<xs:complexType>

<xs:sequence>

<xs:element ref="MSGFN" minOccurs="0"/>

<xs:element ref="VKORG" minOccurs="0"/>

<xs:element ref="VTWEG" minOccurs="0"/>

<xs:element ref="LVORM" minOccurs="0"/>

<xs:element ref="VERSG" minOccurs="0"/>

<xs:element ref="SKTOF" minOccurs="0"/>

<xs:element ref="VMSTD" minOccurs="0"/>

<xs:element ref="AUMNG" minOccurs="0"/>

<xs:element ref="LFMNG" minOccurs="0"/>

<xs:element ref="EFMNG" minOccurs="0"/>

<xs:element ref="SCMNG" minOccurs="0"/>

<xs:element ref="MTPOS" minOccurs="0"/>

</xs:sequence>

<xs:attribute name="SEGMENT" type="xs:NMTOKEN" use="required"/>

</xs:complexType>

</xs:element>

<xs:element name="MDMMATMAS_MATMAS03_MVKEM">

<xs:complexType>

<xs:sequence>

<xs:element ref="IDOC" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="MSGFN">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="MTPOS">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="SCMNG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="SKTOF">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="VERSG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="VKORG">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="VMSTD">

<xs:complexType mixed="true"/>

</xs:element>

<xs:element name="VTWEG">

<xs:complexType mixed="true"/>

</xs:element>

</xs:schema>

Versatile XML

<?xml version="1.0" encoding="UTF-8"?>

http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:\DOCUME~1\saurabh.pathak\desktop\mvke.xsd">

<IDOC BEGIN="1">

<MDME1MARAM SEGMENT="1">

<MATNR/>

<MDME1MVKEM SEGMENT="1">

<MSGFN/>

<VKORG/>

<VTWEG/>

<LVORM/>

<VERSG/>

<BONUS/>

<PROVG/>

<SKTOF/>

<VMSTA/>

<VMSTD/>

<AUMNG/>

<LFMNG/>

<EFMNG/>

<SCMNG/>

<SCHME/>

<VRKME/>

<MTPOS/>

<DWERK/>

<PRODH/>

<PMATN/>

<KONDM/>

<KTGRM/>

<MVGR1/>

<MVGR2/>

<MVGR3/>

<MVGR4/>

<MVGR5/>

<SSTUF/>

<PFLKS/>

<LSTFL/>

<LSTVZ/>

<LSTAK/>

<PRAT1/>

<PRAT2/>

<PRAT3/>

<PRAT4/>

<PRAT5/>

<PRAT6/>

<PRAT7/>

<PRAT8/>

<PRAT9/>

<PRATA/>

</MDME1MVKEM>

</MDME1MARAM>

</IDOC>

</MDMMATMAS_MATMAS03_MVKEM>

Actual XML

<?xml version="1.0" encoding="UTF-8"?>

<MDMMATMAS_MATMAS03_MVKEM><IDOC BEGIN="1"><MDME1MARAM SEGMENT="1"><MATNR>000000000050086534</MATNR><MDME1MVKEM SEGMENT="1"><MSGFN>005</MSGFN><VKORG>78DM</VKORG><VTWEG>NP</VTWEG><LVORM>X</LVORM><VERSG>A</VERSG><SKTOF>X</SKTOF><VMSTD>00000000</VMSTD><AUMNG>0.000</AUMNG><LFMNG>0.000</LFMNG><EFMNG>0.000</EFMNG><SCMNG>0.000</SCMNG><MTPOS>BANC</MTPOS></MDME1MVKEM><MDME1MVKEM SEGMENT="1"><MSGFN>005</MSGFN><VKORG>78DM</VKORG><VTWEG>OP</VTWEG><LVORM>X</LVORM><VERSG>A</VERSG><SKTOF>X</SKTOF><VMSTD>00000000</VMSTD><AUMNG>0.000</AUMNG><LFMNG>0.000</LFMNG><EFMNG>0.000</EFMNG><SCMNG>0.000</SCMNG><MTPOS>BANC</MTPOS></MDME1MVKEM><MDME1MVKEM SEGMENT="1"><MSGFN>005</MSGFN><VKORG>78IN</VKORG><VTWEG>NP</VTWEG><LVORM>X</LVORM><VERSG>A</VERSG><SKTOF>X</SKTOF><VMSTD>00000000</VMSTD><AUMNG>0.000</AUMNG><LFMNG>0.000</LFMNG><EFMNG>0.000</EFMNG><SCMNG>0.000</SCMNG><MTPOS>BANC</MTPOS></MDME1MVKEM><MDME1MVKEM SEGMENT="1"><MSGFN>005</MSGFN><VKORG>78IN</VKORG><VTWEG>OP</VTWEG><LVORM>X</LVORM><VERSG>A</VERSG><SKTOF>X</SKTOF><VMSTD>00000000</VMSTD><AUMNG>0.000</AUMNG><LFMNG>0.000</LFMNG><EFMNG>0.000</EFMNG><SCMNG>0.000</SCMNG><MTPOS>BANC</MTPOS></MDME1MVKEM></MDME1MARAM></IDOC></MDMMATMAS_MATMAS03_MVKEM>