
Attachment: Mapping XSD to ABAP
|
ABAP |
Java |
Simple XSD Data Types and Their Exact Equivalent in ABAP
|
XSD |
ABAP |
|
String (Length > 65535) |
STRING |
|
String (Length <= 65535) |
CHAR |
|
String with pattern="\d+" |
NUMC |
|
Boolean |
Mapping to a character field of length 5 using the constants sai_true and sai_false (Type Pool: sai). |
|
Int |
INT4 |
|
Short |
INT2 |
|
UnsignedByte |
INT1 |
|
Date |
DATS |
|
Time |
TIMS |
|
Decimal with fractionDigits<=14, totalDigits<=31 |
DEC |
|
Binary (Length <= 65535) |
RAW |
|
Binary (Length > 65535) |
RAWSTRING |
Tags Supported for Complex Data Types (in Alphabetical Order)
|
XSD |
Equivalent in ABAP Dictionary |
|
<attribute> (local) |
Structure field |
|
<complexType> (global) |
Structure |
|
<complexType> (local) |
Structure |
|
<element maxOccurs="unbounded"> |
Structure field and a table type |
|
<element> (local) |
Structure field |

Restrictions for XSD Elements
|
XSD Element |
Note |
|
<extension> and abstract types |
These elements cannot be converted. |
|
substitutionGroup |
|
|
<redefine> |
|
|
Restriction of value area |
These tags are ignored by the proxy runtime. The schema validation checks these properties. |
|
Key references, uniqueness ( <key>, <keyref>, <unique>, and so on.) |