T001W → sap::T001w
Plants/Branches
Key: MANDT + WERKS
| ABAP field | Google Merchant | Rust field | Rust type | DDIC | Data element | Description |
|---|---|---|---|---|---|---|
MANDT (key) | mandt | String | CLNT 3 | MANDT | Client | |
WERKS (key) | werks | String | CHAR 4 | WERKS_D | Plant | |
NAME1 | name1 | String | CHAR 30 | NAME1 | Name | |
LAND1 | ships_from_country | land1 | String | CHAR 3 | LAND1 | Country Key |
REGIO | regio | String | CHAR 3 | REGIO | Region |
pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.
Generated Rust
// abap_to_rust::sap::T001w
/// `T001W`: Plants/Branches
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct T001w {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `WERKS` CHAR 4 (key): Plant
#[serde(rename = "WERKS")]
pub werks: String,
/// `NAME1` CHAR 30: Name
#[serde(rename = "NAME1", default)]
pub name1: String,
/// `LAND1` CHAR 3: Country Key
#[serde(rename = "LAND1", default)]
pub land1: String,
/// `REGIO` CHAR 3: Region
#[serde(rename = "REGIO", default)]
pub regio: String,
}
impl T001w {
pub const TABNAME: &'static str = "T001W";
pub const KEY: &'static [&'static str] = &["MANDT", "WERKS"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("WERKS", "werks"), ("NAME1", "name1"), ("LAND1", "land1"), ("REGIO", "regio")];
}