Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MARM → sap::Marm

Units of Measure for Material

Key: MANDT + MATNR + MEINH

ABAP fieldGoogle MerchantRust fieldRust typeDDICData elementDescription
MANDT (key)mandtStringCLNT 3MANDTClient
MATNR (key)matnrStringCHAR 18MATNRMaterial Number
MEINH (key)meinhStringUNIT 3LRMEIAlternative Unit of Measure
UMREZumrezrust_decimal::DecimalDEC 5UMREZNumerator for Conversion to Base Unit
UMRENumrenrust_decimal::DecimalDEC 5UMRENDenominator for Conversion to Base Unit
EAN11gtinean11StringCHAR 18EAN11International Article Number (EAN/UPC)
NUMTPgtinnumtpStringCHAR 2NUMTPCategory of EAN
LAENGshipping_lengthlaengrust_decimal::DecimalQUAN 13,3LAENGLength
BREITshipping_widthbreitrust_decimal::DecimalQUAN 13,3BREITWidth
HOEHEshipping_heighthoeherust_decimal::DecimalQUAN 13,3HOEHEHeight
MEABMshipping_length shipping_width shipping_heightmeabmStringUNIT 3MEABMUnit of Dimension
BRGEWbrgewrust_decimal::DecimalQUAN 13,3BRGEWGross Weight
GEWEIgeweiStringUNIT 3GEWEIWeight 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")];
}