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

T001W → sap::T001w

Plants/Branches

Key: MANDT + WERKS

ABAP fieldGoogle MerchantRust fieldRust typeDDICData elementDescription
MANDT (key)mandtStringCLNT 3MANDTClient
WERKS (key)werksStringCHAR 4WERKS_DPlant
NAME1name1StringCHAR 30NAME1Name
LAND1ships_from_countryland1StringCHAR 3LAND1Country Key
REGIOregioStringCHAR 3REGIORegion

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")];
}