on 04-14-2011 8:00 AM
Hi experts!
I wonder if it's possible when creating a data type that the highest treelevel doesn't get Category "Complex Type".
I want it to be an Element instead. Because the receiving system which is terradata can't read the message with start root Complex Type.
The Idocs which I import into PI have the highest treelevel as Element.
Any ideas?
Regards
You can customize your structure as you like by creating externally and import in ESR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
just create a XML Schema (e.g. with XML Spy) and import it as "external definition" to PI. If you avoid Message Mapping (and use XSL, Java or ABAP instead), you can create a dummy data type which will not be checked during runtime.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I wonder if it's possible when creating a data type that the highest treelevel doesn't get Category "Complex Type".
Once you added a sub-element to a data type it will become a complex type. You can settle for simple type though.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes I know the process of how to export and import the schema. But I don't know how to change the complex type into an element or simple type in the schema.
It complains all the time about some error when saving.
do you have an email I can send you the schema and get some help?
Would appreciate it!
Hi Sonny,
I think i dint understand your query earlier but now its clear and hence the solution.
Actually your requirement is not correct.
By definition, A simple element is an XML element that can contain only text. It cannot contain any other elements or attributes.
http://www.w3schools.com/schema/schema_simple.asp
Whereas a complex element is an XML element that contains other elements and/or attribute
http://www.w3schools.com/schema/schema_complex.asp
And the root node of a DT in PI contains other elements so it has to be a complex type. This is the basic concept of XSD so even if you change the XSD type manually outside PI and import; the PI will give you an error while activating the DT.
Let us know if you have any other doubts!!
Hi!
I appreciate the help! Now it's more clear to me.
something I wonder is that when I import an Idoc to PI and click on the XSD tab of it's structure then I notice that it begins with an element as startroot. How is that possible then? I want to do the same with my Datatype. It's a requirement from the receiving system in order to be able to read the messages. They can't open the message with a startroot of complexType.
Regards
Sonny,
Even if you will see the XSD of idoc, it will show you that the complex type (one which contains furhter nodes inside it ) node is under <xsd:complexType> only.
Please find below the extract of one of the idoc's (just to give you a pointer 😞
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="COND_A01">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IDOC" type="ZCOND_A01.COND_A01" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
I hope it helps!!
Edited by: Puneet Singhal on Apr 21, 2011 2:31 PM
Hi, I have solved this issue.
the problem was that I gave the receiver system the DataType XSD schema. that's why it was complextype at the highest level. You must give the MessageType XSD schema...there it will automatically be created as an element at highest level.
thanks everyone for contributing!
Best regards
Hi Sonny
Simple create XSD in some other tool and import it to ESR as Exteral Definition
Kind Regards
Maciej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.