MARD → sap::Mard
Storage Location Data for Material
Key: MANDT + MATNR + WERKS + LGORT
| 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 | |
WERKS (key) | werks | String | CHAR 4 | WERKS_D | Plant | |
LGORT (key) | lgort | String | CHAR 4 | LGORT_D | Storage Location | |
LABST | availability | labst | rust_decimal::Decimal | QUAN 13,3 | LABST | Unrestricted-Use Stock |
INSME | availability | insme | rust_decimal::Decimal | QUAN 13,3 | INSME | Stock in Quality Inspection |
SPEME | availability | speme | rust_decimal::Decimal | QUAN 13,3 | SPEME | Blocked Stock |
pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.
Generated Rust
// abap_to_rust::sap::Mard
/// `MARD`: Storage Location Data for Material
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Mard {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `MATNR` CHAR 18 (key): Material Number
#[serde(rename = "MATNR")]
pub matnr: String,
/// `WERKS` CHAR 4 (key): Plant
#[serde(rename = "WERKS")]
pub werks: String,
/// `LGORT` CHAR 4 (key): Storage Location
#[serde(rename = "LGORT")]
pub lgort: String,
/// `LABST` QUAN 13,3: Unrestricted-Use Stock
#[serde(rename = "LABST", default)]
pub labst: rust_decimal::Decimal,
/// `INSME` QUAN 13,3: Stock in Quality Inspection
#[serde(rename = "INSME", default)]
pub insme: rust_decimal::Decimal,
/// `SPEME` QUAN 13,3: Blocked Stock
#[serde(rename = "SPEME", default)]
pub speme: rust_decimal::Decimal,
}
impl Mard {
pub const TABNAME: &'static str = "MARD";
pub const KEY: &'static [&'static str] = &["MANDT", "MATNR", "WERKS", "LGORT"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("MATNR", "matnr"), ("WERKS", "werks"), ("LGORT", "lgort"), ("LABST", "labst"), ("INSME", "insme"), ("SPEME", "speme")];
}