cancel
Showing results for 
Search instead for 
Did you mean: 

Import XSD to create Data type in Design

Former Member
0 Kudos

hi,

I know that we can import XSD in Design and create data type,my question is:

1. Can i import an XSD thats been created in message mapping and use that to create my data type in design.

(or)

2.Should i have to write an XSD on my own and then import it to create my data type, and is there any standard format to write it.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Prasanth,

You can do that absolutely. But, should be careful with the following:

1. Name of the element in the XSD you copied from the mapping source and that of Data type to be created should be same.

2. The XSD should not have Type and Ref node relationship.

Regards,

Sreenivas.

udo_martens
Active Contributor
0 Kudos

Hi Prashanth,

1. Ur mapping creates XML, the idea u have is very confusing. And ur mapping is be executed at runtime, ur XLD imported at design time.

2. U can wright it for urself, but there r a lot constraints. Better use the grafical surface. If u want to change or create it with editor of ur choice, first make a dummy and export it, 2 look, how it is build. I use sometimes XSD parts 2 copy them in a other datatype, but never create them without grafical tool.

Regards,

Udo

Former Member
0 Kudos

Hello Prashanth,

For your first question: i don't know exactly what you mean that the the xsd you create in the data mapping steps. So can you explain it in details?

For your 2nd question: Sure you can write your own XSD to create a data type. And i will give you an example xsd file format. Then you can import it in the XSD tab view.

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/hansteel" targetNamespace="http://sap.com/xi/XI/hansteel">

<xsd:complexType name="CustomerInfo">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

a6c26c80000f11dac45e00096b1669b3

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="ID">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

dfe699c0e7bc11d9c736d51c0a0013e1

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:length value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NAME">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

dfe82060e7bc11d9b2efd51c0a0013e1

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:length value="35" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CUSTTYPE">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

dfe82061e7bc11d9c193d51c0a0013e1

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:length value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="POSTCODE">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

e93039a0e7bc11d9c7c6d51c0a0013e1

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:length value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CITY">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f0122850e7bc11d99189d51c0a0013e1

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:length value="35" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

Hope this will be helpful.

Eric Ma

Former Member
0 Kudos

Hi,

We can View XSD for the Data type created in message mapping(Design Tab-Source document).Can we use it to Create the data type?