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

KONP → sap::Konp

Conditions (Item)

Key: MANDT + KNUMH + KOPOS

ABAP fieldGoogle MerchantRust fieldRust typeDDICData elementDescription
MANDT (key)mandtStringCLNT 3MANDTClient
KNUMH (key)knumhStringCHAR 10KNUMHCondition Record Number
KOPOS (key)koposStringNUMC 2KOPOSSequential Number of the Condition
KSCHLkschlStringCHAR 4KSCHACondition Type
KBETRprice sale_pricekbetrrust_decimal::DecimalCURR 11,2KBETR_KONDRate (amount)
KONWAprice sale_pricekonwaStringCUKY 5KONWARate Unit (currency)
KPEINprice sale_pricekpeinrust_decimal::DecimalDEC 5KPEINCondition Pricing Unit
KMEINkmeinStringUNIT 3KMEINCondition Unit
LOEVM_KOpriceloevm_koboolCHAR 1LOEVM_KODeletion Indicator for Condition Item

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

Generated Rust

// abap_to_rust::sap::Konp
/// `KONP`: Conditions (Item)
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Konp {
    /// `MANDT` CLNT 3 (key): Client
    #[serde(rename = "MANDT")]
    pub mandt: String,
    /// `KNUMH` CHAR 10 (key): Condition Record Number
    #[serde(rename = "KNUMH")]
    pub knumh: String,
    /// `KOPOS` NUMC 2 (key): Sequential Number of the Condition
    #[serde(rename = "KOPOS")]
    pub kopos: String,
    /// `KSCHL` CHAR 4: Condition Type
    #[serde(rename = "KSCHL", default)]
    pub kschl: String,
    /// `KBETR` CURR 11,2: Rate (amount)
    #[serde(rename = "KBETR", default)]
    pub kbetr: rust_decimal::Decimal,
    /// `KONWA` CUKY 5: Rate Unit (currency)
    #[serde(rename = "KONWA", default)]
    pub konwa: String,
    /// `KPEIN` DEC 5: Condition Pricing Unit
    #[serde(rename = "KPEIN", default)]
    pub kpein: rust_decimal::Decimal,
    /// `KMEIN` UNIT 3: Condition Unit
    #[serde(rename = "KMEIN", default)]
    pub kmein: String,
    /// `LOEVM_KO` CHAR 1: Deletion Indicator for Condition Item
    #[serde(rename = "LOEVM_KO", default, with = "crate::abap::xflag")]
    pub loevm_ko: bool,
}

impl Konp {
    pub const TABNAME: &'static str = "KONP";
    pub const KEY: &'static [&'static str] = &["MANDT", "KNUMH", "KOPOS"];
    /// (ABAP name, Rust name), in DDIC position order.
    pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("KNUMH", "knumh"), ("KOPOS", "kopos"), ("KSCHL", "kschl"), ("KBETR", "kbetr"), ("KONWA", "konwa"), ("KPEIN", "kpein"), ("KMEIN", "kmein"), ("LOEVM_KO", "loevm_ko")];
}