MARA → sap::Mara
General Material Data
Key: MANDT + MATNR
| ABAP field | Google Merchant | Rust field | Rust type | DDIC | Data element | Description |
|---|---|---|---|---|---|---|
MANDT (key) | mandt | String | CLNT 3 | MANDT | Client | |
MATNR (key) | id | matnr | String | CHAR 18 | MATNR | Material Number |
ERSDA | ersda | Option<chrono::NaiveDate> | DATS 8 | ERSDA | Created On | |
LVORM | lvorm | bool | CHAR 1 | LVOMA | Deletion Flag at Client Level | |
MTART | mtart | String | CHAR 4 | MTART | Material Type | |
MATKL | google_product_category | matkl | String | CHAR 9 | MATKL | Material Group |
MEINS | meins | String | UNIT 3 | MEINS | Base Unit of Measure | |
BRGEW | shipping_weight | brgew | rust_decimal::Decimal | QUAN 13,3 | BRGEW | Gross Weight |
GEWEI | product_weight shipping_weight | gewei | String | UNIT 3 | GEWEI | Weight Unit |
NTGEW | product_weight | ntgew | rust_decimal::Decimal | QUAN 13,3 | NTGEW | Net Weight |
EAN11 | gtin identifier_exists | ean11 | String | CHAR 18 | EAN11 | International Article Number (EAN/UPC) |
NUMTP | gtin | numtp | String | CHAR 2 | NUMTP | Category of EAN |
MFRNR | brand | mfrnr | String | CHAR 10 | MFRNR | Manufacturer (vendor number) |
MFRPN | mpn identifier_exists | mfrpn | String | CHAR 40 | MFRPN | Manufacturer Part Number |
PRDHA | product_type | prdha | String | CHAR 18 | PRODH_D | Product Hierarchy |
WRKST | material | wrkst | String | CHAR 48 | WRKST | Basic Material |
SATNR | item_group_id | satnr | String | CHAR 18 | SATNR | Generic Article (IS-Retail) |
INHAL | unit_pricing_measure | inhal | rust_decimal::Decimal | QUAN 13,3 | INHAL | Net Contents (IS-Retail) |
INHME | unit_pricing_measure | inhme | String | UNIT 3 | INHME | Content Unit (IS-Retail) |
pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.
Generated Rust
// abap_to_rust::sap::Mara
/// `MARA`: General Material Data
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Mara {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `MATNR` CHAR 18 (key): Material Number
#[serde(rename = "MATNR")]
pub matnr: String,
/// `ERSDA` DATS 8: Created On
#[serde(rename = "ERSDA", default, with = "crate::abap::dats")]
pub ersda: Option<chrono::NaiveDate>,
/// `LVORM` CHAR 1: Deletion Flag at Client Level
#[serde(rename = "LVORM", default, with = "crate::abap::xflag")]
pub lvorm: bool,
/// `MTART` CHAR 4: Material Type
#[serde(rename = "MTART", default)]
pub mtart: String,
/// `MATKL` CHAR 9: Material Group
#[serde(rename = "MATKL", default)]
pub matkl: String,
/// `MEINS` UNIT 3: Base Unit of Measure
#[serde(rename = "MEINS", default)]
pub meins: 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,
/// `NTGEW` QUAN 13,3: Net Weight
#[serde(rename = "NTGEW", default)]
pub ntgew: 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,
/// `MFRNR` CHAR 10: Manufacturer (vendor number)
#[serde(rename = "MFRNR", default)]
pub mfrnr: String,
/// `MFRPN` CHAR 40: Manufacturer Part Number
#[serde(rename = "MFRPN", default)]
pub mfrpn: String,
/// `PRDHA` CHAR 18: Product Hierarchy
#[serde(rename = "PRDHA", default)]
pub prdha: String,
/// `WRKST` CHAR 48: Basic Material
#[serde(rename = "WRKST", default)]
pub wrkst: String,
/// `SATNR` CHAR 18: Generic Article (IS-Retail)
#[serde(rename = "SATNR", default)]
pub satnr: String,
/// `INHAL` QUAN 13,3: Net Contents (IS-Retail)
#[serde(rename = "INHAL", default)]
pub inhal: rust_decimal::Decimal,
/// `INHME` UNIT 3: Content Unit (IS-Retail)
#[serde(rename = "INHME", default)]
pub inhme: String,
}
impl Mara {
pub const TABNAME: &'static str = "MARA";
pub const KEY: &'static [&'static str] = &["MANDT", "MATNR"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("MATNR", "matnr"), ("ERSDA", "ersda"), ("LVORM", "lvorm"), ("MTART", "mtart"), ("MATKL", "matkl"), ("MEINS", "meins"), ("BRGEW", "brgew"), ("GEWEI", "gewei"), ("NTGEW", "ntgew"), ("EAN11", "ean11"), ("NUMTP", "numtp"), ("MFRNR", "mfrnr"), ("MFRPN", "mfrpn"), ("PRDHA", "prdha"), ("WRKST", "wrkst"), ("SATNR", "satnr"), ("INHAL", "inhal"), ("INHME", "inhme")];
}