Adding samples for Units of Measures

This commit is contained in:
Daniel Hutzel
2025-05-14 14:09:51 +02:00
parent 987611b009
commit f3209da2e1
3 changed files with 32 additions and 0 deletions

15
common/uom.cds Normal file
View File

@@ -0,0 +1,15 @@
using { sap.common.CodeList } from '@sap/cds/common';
namespace sap.common.uom;
entity PackagingUnits : CodeList {
key code : String(3); // e.g. pc for Piece(s)
abbrev : localized String(3); // e.g. st for Stück
}
entity Weights : CodeList {
key code : String(3); // e.g. kg for Kilogram(s)
}
entity Lengths : CodeList {
key code : String(3); // e.g. m for Meter(s)
}