• 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
  • 相关阅读:
    06-Nginx配置详解
    Magica Cloth
    【Linux操作系统-测试】第二节.Linux 常用指令介绍(下)
    人造肉在中国还有未来吗?
    局部变量 全局变量 static变量 static函数
    c++中std::endl 和“\n“ 这两个换行符有什么区别
    基于JAVAWeb的学生宿舍公寓后台管理系统
    科普:String hashCode 方法为什么选择数字 31 作为乘子
    JavaScript数据结构【数组】
    结合实战,浅析GB/T28181(八)——视频丢包(卡顿、花屏、绿屏)排查
  • 原文地址:https://blog.csdn.net/qq_30797051/article/details/126258838