Views: 86
以下は、ISO PC 295 WG1会議(2017年5月)にて発表した資料です。修正が必要な箇所もありますが、基本方針はこれで良いと考えています。残念ながらデータ型の議論を深めることができませんでした。
Question:
Why do we need datatype besides representation?
Answer:
A common datatype makes transformation to different file format, namely delimited, xml, xbrl-gl, json more easy and simplify design effort.
DATA TYPES IN SOFTWARE PACKAGE
SAP
Data Types in the ABAP Dictionary
Predefined Elementary ABAP Types with Fixed Length

https://help.sap.com/saphelp_nw70/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/frameset.htm

https://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htmz

https://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htmz
UNIT: Unit. Fields of this type are referenced by fields of type QUAN. The length of this data type is set to 2 or 3 places.
Mapping between SAP, XML and .NET


ORACLE
Character String Datatypes in ORACLE

NUMBER Datatype in ORACLE
The NUMBER datatype stores fixed and floating-point numbers.
Numbers of virtually any magnitude can be stored and are guaranteed portable among different systems operating Oracle Database, up to 38 digits of precision.
Numbers can be stored in a NUMBER column:
- Positive numbers in the range 1 x 10-130 to 9.99…9 x 10125 with up to 38 significant digits
- Negative numbers from -1 x 10-130 to 9.99…99 x 10125 with up to 38 significant digits
- Zero
- Positive and negative infinity (generated only by importing from an Oracle Database, Version 5)
How data is stored in ORACLE
column_name NUMBER (precision, scale)

If a precision is not specified, the column stores values as given.
If no scale is specified, the scale is zero.
Oracle guarantees portability of numbers with a precision equal to or less than 38 digits.
You can specify a scale and no precision: column_name NUMBER (*, scale)
In this case, the precision is 38, and the specified scale is maintained.
Microsoft EXCEL
Excel can store 15 decimal places accuracy.
Number in Excel

Auditdata collection data type
Datatype in ADCS

ADCS Legal Character


String Datatype

printable ASCII character (that is, Unicode character in the range #x21 to #x7E)
Name

Code

Numeric Datatype

composite type
Audit Data

MonetaryAmount

MeasurementQuantity

Transformation rules
Construction of Composite Datatypes

Flat file Transformation
Field representation for Datatype

Transform to flat file

Flat File(Document_Type)

XML SCHEMA Transformation
XML datatype for Atomic Type

Transform to XML Schema

XML Instance(Document_Type)

json Transformation
Transform to JSON

The JSON Data Interchange Format

The JSON Data Interchange Format
https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf
xbrl gl Transformation
Mapping ADCS to ADCS Logical Model

Mapping ADCS Logical Model to XBRL GL

Resulting XBRL GL
