Adding samples for Units of Measures
This commit is contained in:
6
common/data/sap.common-Weights.csv
Normal file
6
common/data/sap.common-Weights.csv
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
code;name
|
||||||
|
g;Grams
|
||||||
|
kg;Kilograms
|
||||||
|
mg;Milligrams
|
||||||
|
lb;Pounds
|
||||||
|
oz;Ounces
|
||||||
|
11
common/data/sap.common-Weights_texts.csv
Normal file
11
common/data/sap.common-Weights_texts.csv
Normal file
@@ -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
|
||||||
|
15
common/uom.cds
Normal file
15
common/uom.cds
Normal 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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user