Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/data/sap.common-Weights.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
code;name
g;Grams
kg;Kilograms
mg;Milligrams
lb;Pounds
oz;Ounces
11 changes: 11 additions & 0 deletions common/data/sap.common-Weights_texts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
code;locale;name
g;de;Gramm
kg;de;Kilogramm
mg;de;Milligramm
lb;de;Pfund
oz;de;Unze
g;fr;Grammes
kg;fr;Kilogrammes
mg;fr;Milligrammes
lb;fr;Livres
oz;fr;Onces
1 change: 1 addition & 0 deletions common/index.cds
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
using from './currencies';
using from './regions';
using from './uom';
19 changes: 19 additions & 0 deletions common/uom.cds
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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)
}

type PackagingUnit : Association to PackagingUnits;
type Length : Association to Lengths;
type Weight : Association to Weights;