MARM → sap::Marm
Units of Measure for Material
Key: MANDT + MATNR + MEINH
| ABAP field | Google Merchant | Rust field | Rust type | DDIC | Data element | Description |
|---|---|---|---|---|---|---|
MANDT (key) | mandt | String | CLNT 3 | MANDT | Client | |
MATNR (key) | matnr | String | CHAR 18 | MATNR | Material Number | |
MEINH (key) | meinh | String | UNIT 3 | LRMEI | Alternative Unit of Measure | |
UMREZ | umrez | rust_decimal::Decimal | DEC 5 | UMREZ | Numerator for Conversion to Base Unit | |
UMREN | umren | rust_decimal::Decimal | DEC 5 | UMREN | Denominator for Conversion to Base Unit | |
EAN11 | gtin | ean11 | String | CHAR 18 | EAN11 | International Article Number (EAN/UPC) |
NUMTP | gtin | numtp | String | CHAR 2 | NUMTP | Category of EAN |
LAENG | shipping_length | laeng | rust_decimal::Decimal | QUAN 13,3 | LAENG | Length |
BREIT | shipping_width | breit | rust_decimal::Decimal | QUAN 13,3 | BREIT | Width |
HOEHE | shipping_height | hoehe | rust_decimal::Decimal | QUAN 13,3 | HOEHE | Height |
MEABM | shipping_length shipping_width shipping_height | meabm | String | UNIT 3 | MEABM | Unit of Dimension |
BRGEW | brgew | rust_decimal::Decimal | QUAN 13,3 | BRGEW | Gross Weight | |
GEWEI | gewei | String | UNIT 3 | GEWEI | Weight Unit |
pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.
Generated Rust
// abap_to_rust::sap::Marm
/// `MARM`: Units of Measure for Material
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Marm {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `MATNR` CHAR 18 (key): Material Number
#[serde(rename = "MATNR")]
pub matnr: String,
/// `MEINH` UNIT 3 (key): Alternative Unit of Measure
#[serde(rename = "MEINH")]
pub meinh: String,
/// `UMREZ` DEC 5: Numerator for Conversion to Base Unit
#[serde(rename = "UMREZ", default)]
pub umrez: rust_decimal::Decimal,
/// `UMREN` DEC 5: Denominator for Conversion to Base Unit
#[serde(rename = "UMREN", default)]
pub umren: rust_decimal::Decimal,
/// `EAN11` CHAR 18: International Article Number (EAN/UPC)
#[serde(rename = "EAN11", default)]
pub ean11: String,
/// `NUMTP` CHAR 2: Category of EAN
#[serde(rename = "NUMTP", default)]
pub numtp: String,
/// `LAENG` QUAN 13,3: Length
#[serde(rename = "LAENG", default)]
pub laeng: rust_decimal::Decimal,
/// `BREIT` QUAN 13,3: Width
#[serde(rename = "BREIT", default)]
pub breit: rust_decimal::Decimal,
/// `HOEHE` QUAN 13,3: Height
#[serde(rename = "HOEHE", default)]
pub hoehe: rust_decimal::Decimal,
/// `MEABM` UNIT 3: Unit of Dimension
#[serde(rename = "MEABM", default)]
pub meabm: String,
/// `BRGEW` QUAN 13,3: Gross Weight
#[serde(rename = "BRGEW", default)]
pub brgew: rust_decimal::Decimal,
/// `GEWEI` UNIT 3: Weight Unit
#[serde(rename = "GEWEI", default)]
pub gewei: String,
}
impl Marm {
pub const TABNAME: &'static str = "MARM";
pub const KEY: &'static [&'static str] = &["MANDT", "MATNR", "MEINH"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("MATNR", "matnr"), ("MEINH", "meinh"), ("UMREZ", "umrez"), ("UMREN", "umren"), ("EAN11", "ean11"), ("NUMTP", "numtp"), ("LAENG", "laeng"), ("BREIT", "breit"), ("HOEHE", "hoehe"), ("MEABM", "meabm"), ("BRGEW", "brgew"), ("GEWEI", "gewei")];
}