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

TCURX → sap::Tcurx

Decimal Places in Currencies

Key: CURRKEY

ABAP fieldGoogle MerchantRust fieldRust typeDDICData elementDescription
CURRKEY (key)currkeyStringCUKY 5CURRKEYCurrency Key
CURRDECprice sale_pricecurrdecu8INT1 3CURRDECNumber of Decimal Places

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

Generated Rust

// abap_to_rust::sap::Tcurx
/// `TCURX`: Decimal Places in Currencies
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tcurx {
    /// `CURRKEY` CUKY 5 (key): Currency Key
    #[serde(rename = "CURRKEY")]
    pub currkey: String,
    /// `CURRDEC` INT1 3: Number of Decimal Places
    #[serde(rename = "CURRDEC", default)]
    pub currdec: u8,
}

impl Tcurx {
    pub const TABNAME: &'static str = "TCURX";
    pub const KEY: &'static [&'static str] = &["CURRKEY"];
    /// (ABAP name, Rust name), in DDIC position order.
    pub const FIELDS: &'static [(&'static str, &'static str)] = &[("CURRKEY", "currkey"), ("CURRDEC", "currdec")];
}