KONP → sap::Konp
Conditions (Item)
Key: MANDT + KNUMH + KOPOS
| ABAP field | Google Merchant | Rust field | Rust type | DDIC | Data element | Description |
|---|---|---|---|---|---|---|
MANDT (key) | mandt | String | CLNT 3 | MANDT | Client | |
KNUMH (key) | knumh | String | CHAR 10 | KNUMH | Condition Record Number | |
KOPOS (key) | kopos | String | NUMC 2 | KOPOS | Sequential Number of the Condition | |
KSCHL | kschl | String | CHAR 4 | KSCHA | Condition Type | |
KBETR | price sale_price | kbetr | rust_decimal::Decimal | CURR 11,2 | KBETR_KOND | Rate (amount) |
KONWA | price sale_price | konwa | String | CUKY 5 | KONWA | Rate Unit (currency) |
KPEIN | price sale_price | kpein | rust_decimal::Decimal | DEC 5 | KPEIN | Condition Pricing Unit |
KMEIN | kmein | String | UNIT 3 | KMEIN | Condition Unit | |
LOEVM_KO | price | loevm_ko | bool | CHAR 1 | LOEVM_KO | Deletion 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")];
}