cancel
Showing results for 
Search instead for 
Did you mean: 

How to import XSD?

Former Member
0 Kudos

Hi Friends,

I have export the IDOC to XSD. If i want to import XSD, i get this Error:

- <b>Schema to be handled does not contain a definition of type ....</b>

How do you import a XSD structure?

Thanks in advance

Fatih

Accepted Solutions (0)

Answers (3)

Answers (3)

moorthy
Active Contributor
0 Kudos

Hi,

First go to WE60 and Doument->XML and download the schema.

And if you have any XML tools like XML SPy etc , check the schema.

In XI-

Go to External Definition->Import the Schema. While importing make sure that Type option is "XSD"

Thanks,

Moorthy

Former Member
0 Kudos

Hi, Does anybody have any idea...

I get this Error:

- Schema to be handled does not contain a definition of type Data_DT

Former Member
0 Kudos

hey,

just check when u import the xsd the data type in ur xsd matches with the data type name u have used.see whtether the data type name which u have defined and where u import ur xsd is similar the data type name given ibn the XSD.chk whether both r similar.

regards

jithesh

Former Member
0 Kudos

Can you test it?


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:cts-com:BPM" xmlns="urn:cts-com:BPM" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:element name="BANK_CREATE01">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="IDOC" type="BANK_CREATE.BANK_CREATE01"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="BANK_CREATE01.E1BANK_CREATE">
		<xsd:annotation>
			<xsd:documentation>Header segment</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="BANK_CTRY" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Bank country key</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="3"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="BANK_KEY" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Bank Keys</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="15"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="BANK_METHOD" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Check digit calculation method</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="4"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="BANK_FORMATTING" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Format of File with Bank Data</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="3"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="E1BP1011_ADDRESS" type="BANK_CREATE01.E1BP1011_ADDRESS" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
			<xsd:element name="E1BPADR1" type="BANK_CREATE01.E1BPADR1" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
		</xsd:sequence>
		<xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
	</xsd:complexType>
	<xsd:complexType name="BANK_CREATE.BANK_CREATE01">
		<xsd:annotation>
			<xsd:documentation>Create Bank</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="EDI_DC40" type="EDI_DC40.BANK_CREATE.BANK_CREATE01"/>
			<xsd:element name="E1BANK_CREATE" type="BANK_CREATE01.E1BANK_CREATE" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
		</xsd:sequence>
		<xsd:attribute name="BEGIN" type="xsd:string" fixed="1" use="required" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
	</xsd:complexType>
</xsd:schema> 

former_member187339
Active Contributor
0 Kudos

Hi,

I have imported the same file i there was no error !!!

Just remember when you import this in External defintion, import as <b>XSD</b>.

Regards

Suraj

Former Member
0 Kudos

if I import in IR (as XSD),i get this error message.

! TYPE_IGNORED

Regards

Fatih

former_member187339
Active Contributor
0 Kudos

Hi,

No such error for me!!!

Try to reimport it again...

If it doesn't work then remove the tarfetNamespace from the XSD and again try to reimport....

Regards

Suraj

former_member187339
Active Contributor
0 Kudos

Hi,

Go to we60. Specify the basic type and from the menu select Documentation->XML Schema.

Import this xsd, like ordinary XSD's.

Regards

Suraj

Former Member
0 Kudos

Fatih

We can easily Convert any R/3 structure to XSD. If you want to know how to convert step by step go through the urls:

/people/sravya.talanki2/blog/2005/12/21/convert-any-r3-structure-to-xsd-made-easy-was-60

/people/michal.krawczyk2/blog/2005/09/01/xi-importing-an-r3-structure-or-table-into-repository-not-possible

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0a575986-0601-0010-7cbe-f17...

---Mohan