• ABAP Data Types 和XSD Type 映射关系以及XSD Type属性


    1. 常用类型

    2. 常用属性

    ABAP   数据类型ABAP 数据类型说明XSD 类型备注
    I内置类型xsd:int 
    INT1内置类型xsd:unsignedByte 
    INT2内置类型xsd:short 
    INT4内置类型xsd:int 
    F内置类型xsd:double 
    P内置类型xsd:decimal   length <= 28
         xsd:string length > 28
     
    C内置类型xsd:string 
    D内置类型xsd:date 
    T内置类型xsd:time 
    N内置类型xsd:int lenrth   <= 9
         xsd:long length > 9 and <=   19
         xsd:string length > 19
    1.需设置pattern="\d+"
    X(Byte)内置类型xsd:base64Binary 
    STRING内置类型xsd:string 
    XSTRING内置类型xsd:base64Binary 
    ACCP (Posting   Period)衍生类型xsd:int 
    CHAR衍生类型xsd:string 
    CLNT (Client)衍生类型xsd:string 
    CURR (Currency   field)衍生类型xsd:decimal1.最大支持6位小数
         2.设置totalDigits="11"; fractionDigits="2" 等同于CURR(13,2)
    CUKY (Currency   Key)衍生类型xsd:string 
    DATS衍生类型xsd:date 
    TIMS衍生类型xsd:time 
    DEC衍生类型xsd:decimal1.最大支持6位小数
         2.设置totalDigits="11"; fractionDigits="2" 等同于DEC(13,2)
    FLTP衍生类型xsd:double 
    LANG (Language   Key)衍生类型xsd:string 
    LCHR衍生类型xsd:string 
    LRAW (long   byte seq)衍生类型xsd:base64binary 
    NUMC衍生类型xsd:int lenrth   <= 9
         xsd:long length > 9 and <=   19
         xsd:string length > 19
    1.需设置pattern="\d+"
    PREC   (Accuracy)衍生类型xsd:short 
    QUAN   (Quantity)衍生类型xsd:decimal1.最大支持6位小数
         2.设置totalDigits="11"; fractionDigits="2" 等同于QUAN(13,2)
    RAW (byte   sequence)衍生类型xsd:base64binary 
    RAWSTRING   (variable length)衍生类型xsd:base64binary 
    UNIT (Unit for   Qty)衍生类型xsd:string 
    • xsd:string -> ABAP STRING
      1
    • xsd:string + maxLength=“10” -> ABAP CHAR10
      2
    • xsd:decimal + totalDigits=“11”; fractionDigits=“2” -> ABAP DEC13( P 13 Decimal 3)
      3
      4
    • xsd:string + maxLength=“5”; pattern=“\d+” -> ABAP NUMC5
      5
    • xsd:date -> ABAP DATS
    • xsd:time -> ABAP TIMS
      6
    • xsd:unsignedByte -> ABAP INT1
    • xsd:unsignedByte -> ABAP INT2
    • xsd:int -> ABAP INT4
      7
    • xsd:double -> ABAP FLTP
      8
  • 相关阅读:
    JSP声明:变量、方法和类的声明
    FreeRTOS教程4 消息队列
    函数指针作业题目
    SAS学习4(常用过程步sort、format、print、连接数据库、sql过程)
    设计模式之职责链模式应用例题
    SpringMVC入门宝典(七)SpringMVC文件上传(下)
    python+requests库使用post方法采坑
    Api 接口优化的几个技巧
    计算机网络第四节 数据链路层
    是否可以嗅探 HTTPS URL?
  • 原文地址:https://blog.csdn.net/qq_30797051/article/details/126258838