Skip to Content
avatar image
Former Member

SAP PO XSD import as external definition error

Hi,

I am getting XSD invalid error when I try to import this XSD as an external definition I am sure I am missing something in the XSD format or tags please let me know

Thanks

Jake

****************************************

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

<!--W3C XML Schema generated by XMLSpy v2011 rel. 3 sp1 (http://www.altova.com)-->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:hl7-org:v3" xmlns:sch="http://www.ascc.net/xml/schematron" targetNamespace="urn:hl7-org:v3">

  <xs:annotation>

  <xs:documentation>Generated using schema builder version 3.4.4. Stylesheets:

Saved in XML file by RMIM Designer in Visio at 2009-04-01T23:37:59

Flat to Serialization Transform: $Id: MIFStaticModelFlatToSerialization.xsl 8355 2009-10-07 03:16:34Z lloyd_mckenzie $

Fix Names Transform: $Id: FixMifNames.xsl 8355 2009-10-07 03:16:34Z lloyd_mckenzie $

  Base transform: $Id: ConvertBase.xsl 8360 2009-10-26 06:00:22Z woody_beeler $

  Package Id Conversion: $Id: TransformPackageIds.xsl 8398 2010-10-12 01:52:15Z lloyd_mckenzie $

Flat to Serialization Transform: $Id: MIFStaticModelFlatToSerialization.xsl 8355 2009-10-07 03:16:34Z lloyd_mckenzie $

Flat to Serialization Transform: $Id: MIFStaticModelFlatToSerialization.xsl 7375 2009-01-26 19:26:53Z wbeeler $

StaticMifToXsd.xsl version 2.0</xs:documentation>

  </xs:annotation>

  <xs:complexType name="COCT_MT440001UV09.ValuedItem">

  <xs:sequence>

  <xs:group ref="InfrastructureRootElements"/>

  <xs:element name="id" type="II" form="qualified" minOccurs="1" maxOccurs="unbounded"/>

  <xs:element name="code" type="CD" form="qualified" minOccurs="0" maxOccurs="1"/>

  <xs:element name="effectiveTime" type="IVL_TS" form="qualified" minOccurs="0" maxOccurs="1"/>

  <xs:element name="unitQuantity" type="RTO_PQ_PQ" form="qualified" minOccurs="0" maxOccurs="1"/>

  <xs:element name="unitPriceAmt" type="RTO_MO_PQ" form="qualified" minOccurs="1" maxOccurs="1"/>

  <xs:element name="netAmt" type="MO" form="qualified" minOccurs="0" maxOccurs="1"/>

  </xs:sequence>

  <xs:attributeGroup ref="InfrastructureRootAttributes"/>

  <xs:attribute name="classCode" type="ActClassInvoiceElement" use="optional" default="INVE"/>

  <xs:attribute name="moodCode" type="x_ActMoodDefEvn" use="required"/>

  </xs:complexType>

  <!--

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 03, 2015 at 04:29 AM

    Hello Jake,

    Seems XSD is in issue. Check with the sender / 3rd party a s ask them to send correct XSD.

    You can validate your XSD / Create your XSD using online tool:Example

    W3C XML Schema (XSD) Validation online

    Check for the optional fields as well in your XML..before creating the XSD for it.

    Hope it helps

    Regards,

    Azhar

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 03, 2015 at 06:35 AM

    Hi Jake,

    Please, share the entire XSD if it is possible, sometimes PI doesn't throw exception.

    Pay attention to set category as XSD.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded