Skip to main content

ABAP to CSN Interop

DRAFT This mapping definition is work in progress and may be subject to further change.

ABAP DataTypeCDS DatatypePropertiesSpark TypeABAP FormatCommentTransformer
abap.cuky (len=5)cds.Stringlength = 5STRING(5)-
abap.unit (len=3)cds.Stringlength = 3STRING(3)-
abap.char (len=x)cds.Stringlength = xSTRING(x)-
abap.varc (len=x)cds.Stringlength = xSTRING(x)-
abap.sstring (len=x)cds.Stringlength = xSTRING(x)-
abap.stringcds.LargeStringSTRING-
abap.lchrcds.LargeStringSTRING-
abap.rawstringcds.LargeStringSTRING-
abap.geom_ewkbcds.LargeStringSTRING-
abap.numc (len=x)cds.Stringlength = xSTRING(x)-
abap.clnt (len=3)cds.Stringlength = 3STRING(3)-
abap.lang (len=2)cds.Stringlength = 2STRING(2)-
abap.accp (len=6)cds.Stringlength = 6STRING(6)-
abap.char(1) ("@Semantic.booleanIndicator: true")cds.Stringlength = 1STRING(1)We can't enforce the right values - therefore we must use string-
abap.utclongcds.Timestamp"yyyy-MM-dd'T'HH:mm:ss.SSSSSSS"TIMESTAMP"castToTimestamp": [{ "sourceColumnName": "abap_tstmpl", "sourceFormat": ["yyyy-MM-dd'T'HH:mm:ss.SSSSSSS"], "valueReplacements": [{"sourceValues": [ "" ], "targetValue": "NULL_VALUE" }]}]
abap.timscds.TimeSTRING(6)"HHmmss"type time not available in spark-
abap.timncds.TimeSTRING(12)"HH:mm:ss.SSS"type time not available in spark-
abap.datscds.DateDATE"yyyyMMdd""castToDate": [{ "sourceColumnName": "abap_dats", "sourceFormat": ["yyyyMMdd"], "valueReplacements": [{"sourceValues": [ "00000000", "" ], "targetValue": "NULL_VALUE" }]}]
abap.datncds.DateDATE"yyyy-MM-dd""castToDate": [{ "sourceColumnName": "abap_dats", "sourceFormat": ["yyyy-MM-dd"], "valueReplacements": [{"sourceValues": [ "0000-00-00", "" ], "targetValue": "NULL_VALUE" }]}]
abap.dec(precision = p, scale = s)cds.Decimalprecision = p, scale = sDECIMAL(p,s)-
abap.quan(precision = p, scale = s)cds.Decimalprecision = p, scale = sDECIMAL(p,s)-
abap.decfloat16(precision = 16, scale = floating)cds.Decimalprecision = 16, scale = floatingnot supported-
abap.df16_dec(precision = 16, scale = floating)cds.Decimalprecision = 16, scale = floatingnot supported-
abap.df16_raw(precision = 16, scale = floating)cds.Decimalprecision = 16, scale = floatingnot supported-
abap.df16_scl(precision = 16, scale = floating)cds.Decimalprecision = 16, scale = floatingnot supported-
abap.decfloat34(precision = 34, scale = floating)cds.Decimalprecision = 34, scale = floatingnot supported-
abap.df34_dec(precision = 34, scale = floating)cds.Decimalprecision = 34, scale = floatingnot supported-
abap.df34_raw(precision = 34, scale = floating)cds.Decimalprecision = 34, scale = floatingnot supported-
abap.df34_scl(precision = 34, scale = floating)cds.Decimalprecision = 34, scale = floatingnot supported-
abap.curr(precision = 34, scale = floating)cds.Decimalprecision = 34, scale = 4DECIMAL(34, 4)-
abap.int8cds.Integer64BIGINT-
abap.int1cds.IntegerINT-
abap.int2cds.IntegerINT-
abap.int4cds.IntegerINT-
abap.preccds.IntegerINT-
abap.fltpcds.DoubleDOUBLE-
abap.rawnot supportednot supported-
abap.lrawnot supportednot supported-