Types
The first matching row wins. A DDIC type with no row stops the build and names the field.
| DDIC type | Condition | Rust type | Helper | Fields in this book | Notes |
|---|---|---|---|---|---|
CLNT, LANG, CUKY, UNIT, NUMC, STRG, SSTR | String | 38 | Text. NUMC stays text because leading zeros are data (0000012345). | ||
CHAR | length 1 and data element XFELD, BOOLE_D, FLAG, XFLAG, LOEVM_X, LOEVM_V, LVOMA, LOEVM_KO, AD_FLGDFNR, AD_FLNOUSE | bool | abap::xflag | 9 | “X” is true, blank is false; anything else is refused. |
CHAR | String | 87 | Text, blank when initial. | ||
DATS | Option<chrono::NaiveDate> | abap::dats | 8 | YYYYMMDD; 00000000 is None. | |
TIMS | Option<chrono::NaiveTime> | abap::tims | 2 | HHMMSS; 000000 is midnight, blank is None. | |
DEC | data element TIMESTAMP | Option<chrono::NaiveDateTime> | abap::timestamp | 1 | YYYYMMDDhhmmss UTC, as a number or a string; 0 is None. |
CURR, QUAN, DEC | rust_decimal::Decimal | 20 | Read and written as strings, scale kept (258.00). Currency comes from the CUKY field it references. | ||
INT1 | u8 | 1 | |||
INT2 | i16 | 0 | |||
INT4 | i32 | 1 | |||
INT8 | i64 | 0 |
ABAP has no null. Key fields are required; every other field defaults to ABAP’s initial value (blank, zero, 00000000) when it is missing, and a None date is written back as 00000000.