Skip to Content
avatar image
Former Member

how to define data type

hi all,

I wana make a data type of this form

Employee_MT 0..1

EmpRec 0..Unbounded

EmployeeId 0..1

FullName 0..1

AddressLine1 0..1

but then im not able to maintain it as it is not accepting the attribute as element.

i wana insert a new line at alower virson but the catagory should be element. but its comming as

attribute. how to do it.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 22, 2008 at 09:54 AM

    Hi,

    Employee_MT 0..1------This u need not create, when u create the DT itself this will come

    EmpRec 0..Unbounded----To Create this,Right click on Employee_DT 0..1 and say Insert SubElement.And dont select any Type for this( Like XSD:String)

    EmployeeId 0..1----To create All these 3, Right click on EmpRec 0..Unbounded & say Insert Subelemet .And select Type for this( Like XSD:String)

    FullName 0..1

    AddressLine1 0..1

    Regards

    Seshagiri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2008 at 09:56 AM

    hi

    just don't specify the type when u r going to insert new line

    regards

    chandrakanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2008 at 09:58 AM

    Hi,

    If you want the same below DT.

    copy it and import as XSD.

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

    http://www.w3.org/2001/XMLSchema" xmlns="Http:// Namespace.com" targetNamespace="Http:// Namespace.com">

    <xsd:complexType name="Employee">

    <xsd:sequence>

    <xsd:element name="Employee_MT" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    131f861027e511dd8b640016e69bcda4

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="EmpRec" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    131f861127e511dda4e80016e69bcda4

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="EmployeeId" type="xsd:string" minOccurs="0">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    131f861227e511ddcc380016e69bcda4

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="FullName" type="xsd:string" minOccurs="0">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    131f861327e511dd9b560016e69bcda4

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="AddressLine1" type="xsd:string" minOccurs="0" maxOccurs="0">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    131f861427e511ddab930016e69bcda4

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    </xsd:sequence>

    </xsd:complexType>

    </xsd:schema>

    Change the Name space.

    Regards,

    Ramesh.

    Add comment
    10|10000 characters needed characters exceeded