MBEW → sap::Mbew
Material Valuation
Key: MANDT + MATNR + BWKEY + BWTAR
| 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 | |
BWKEY (key) | bwkey | String | CHAR 4 | BWKEY | Valuation Area | |
BWTAR (key) | bwtar | String | CHAR 10 | BWTAR_D | Valuation Type | |
VPRSV | cost_of_goods_sold | vprsv | String | CHAR 1 | VPRSV | Price Control (S standard / V moving average) |
VERPR | cost_of_goods_sold | verpr | rust_decimal::Decimal | CURR 11,2 | VERPR | Moving Average Price |
STPRS | cost_of_goods_sold | stprs | rust_decimal::Decimal | CURR 11,2 | STPRS | Standard Price |
PEINH | cost_of_goods_sold | peinh | rust_decimal::Decimal | DEC 5 | PEINH | Price Unit |
pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.
Generated Rust
// abap_to_rust::sap::Mbew
/// `MBEW`: Material Valuation
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Mbew {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `MATNR` CHAR 18 (key): Material Number
#[serde(rename = "MATNR")]
pub matnr: String,
/// `BWKEY` CHAR 4 (key): Valuation Area
#[serde(rename = "BWKEY")]
pub bwkey: String,
/// `BWTAR` CHAR 10 (key): Valuation Type
#[serde(rename = "BWTAR")]
pub bwtar: String,
/// `VPRSV` CHAR 1: Price Control (S standard / V moving average)
#[serde(rename = "VPRSV", default)]
pub vprsv: String,
/// `VERPR` CURR 11,2: Moving Average Price
#[serde(rename = "VERPR", default)]
pub verpr: rust_decimal::Decimal,
/// `STPRS` CURR 11,2: Standard Price
#[serde(rename = "STPRS", default)]
pub stprs: rust_decimal::Decimal,
/// `PEINH` DEC 5: Price Unit
#[serde(rename = "PEINH", default)]
pub peinh: rust_decimal::Decimal,
}
impl Mbew {
pub const TABNAME: &'static str = "MBEW";
pub const KEY: &'static [&'static str] = &["MANDT", "MATNR", "BWKEY", "BWTAR"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("MATNR", "matnr"), ("BWKEY", "bwkey"), ("BWTAR", "bwtar"), ("VPRSV", "vprsv"), ("VERPR", "verpr"), ("STPRS", "stprs"), ("PEINH", "peinh")];
}