cancel
Showing results for 
Search instead for 
Did you mean: 

Facets in Data Types - PI 7.0

Former Member
0 Kudos

Hi there,

does anybody out there now whether facets such as maxLength, etc. are now support in the PI 7.0 Graphical Mapping tool or whether they are still for documentation purposes only.

Thanks. Dieter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Julie-Anne,

your comments are a copy from the online help which I have read as well as tested without success. It appears that facets are still not doing anything in the Graphical mapping tool. It would be nice to get an answer from SAP on this topic.

Thanks. Dieter

Former Member
0 Kudos

Hi Dieter,

this is feature is not available in PI 7.0. What you want is part of XML validation, this is acutally not support yet, but it will be supported in the PI7.1, which will come out shortly. You could turn on/off validation as you want, validation costs some performance and sometimes it is not really needed.

At moment it is only doucmentation purpose. In the java mapping the input message will be parsed but NOT validated against XSD. Nevertheless you could do the effort self and validate it in your own mapping programm.

regards,

Hai

Answers (2)

Answers (2)

aashish_sinha
Active Contributor
0 Kudos

Hi,

Facets enable you to restrict the value range of a data type in XML schema to a particular subset. This enables you to determine exactly which value is expected in a special case for a simple data type, an element, or an attribute. For example:

· A telephone number (using a pattern on a string)

· A selection of permitted values, for example to classify the different classes for a flight (using an enumeration)

Before you can use a facet, you must have selected a built-in data type in the Type column for your simple data type, element, or attribute. Otherwise the input field in the Details column remains locked

Using the XSD editor, you can further restrict the value range of a built-in data type for simple data types, elements or attributes.

So, you can use facets in PI 7.0, provided you can avoid the restrictions on them to use.

Regards

Aashish Sinha

PS : reward points if helpful

prateek
Active Contributor
0 Kudos

maxLength will be supported for ABAP proxy generation but in my opinion other facets are still not supported

Regards,

Prateek