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

MAKT → sap::Makt

Material Descriptions

Key: MANDT + MATNR + SPRAS

ABAP fieldGoogle MerchantRust fieldRust typeDDICData elementDescription
MANDT (key)mandtStringCLNT 3MANDTClient
MATNR (key)matnrStringCHAR 18MATNRMaterial Number
SPRAS (key)titlesprasStringLANG 1SPRASLanguage Key
MAKTXtitlemaktxStringCHAR 40MAKTXMaterial Description

pink attributes are machine data: converted by a fixed rule, never rewritten. See Google Merchant Center.

Generated Rust

// abap_to_rust::sap::Makt
/// `MAKT`: Material Descriptions
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Makt {
    /// `MANDT` CLNT 3 (key): Client
    #[serde(rename = "MANDT")]
    pub mandt: String,
    /// `MATNR` CHAR 18 (key): Material Number
    #[serde(rename = "MATNR")]
    pub matnr: String,
    /// `SPRAS` LANG 1 (key): Language Key
    #[serde(rename = "SPRAS")]
    pub spras: String,
    /// `MAKTX` CHAR 40: Material Description
    #[serde(rename = "MAKTX", default)]
    pub maktx: String,
}

impl Makt {
    pub const TABNAME: &'static str = "MAKT";
    pub const KEY: &'static [&'static str] = &["MANDT", "MATNR", "SPRAS"];
    /// (ABAP name, Rust name), in DDIC position order.
    pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("MATNR", "matnr"), ("SPRAS", "spras"), ("MAKTX", "maktx")];
}