VBAP → sap::Vbap
Sales Document: Item Data
Key: MANDT + VBELN + POSNR
| ABAP field | Rust field | Rust type | DDIC | Data element | Description |
|---|---|---|---|---|---|
MANDT (key) | mandt | String | CLNT 3 | MANDT | Client |
VBELN (key) | vbeln | String | CHAR 10 | VBELN_VA | Sales Document |
POSNR (key) | posnr | String | NUMC 6 | POSNR_VA | Sales Document Item |
MATNR | matnr | String | CHAR 18 | MATNR | Material Number |
ARKTX | arktx | String | CHAR 40 | ARKTX | Short Text |
KWMENG | kwmeng | rust_decimal::Decimal | QUAN 15,3 | KWMENG | Order Quantity |
VRKME | vrkme | String | UNIT 3 | VRKME | Sales Unit |
NETWR | netwr | rust_decimal::Decimal | CURR 15,2 | NETWR_AP | Net Value |
WAERK | waerk | String | CUKY 5 | WAERK | Document Currency |
WERKS | werks | String | CHAR 4 | WERKS_EXT | Plant |
Generated Rust
// abap_to_rust::sap::Vbap
/// `VBAP`: Sales Document: Item Data
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Vbap {
/// `MANDT` CLNT 3 (key): Client
#[serde(rename = "MANDT")]
pub mandt: String,
/// `VBELN` CHAR 10 (key): Sales Document
#[serde(rename = "VBELN")]
pub vbeln: String,
/// `POSNR` NUMC 6 (key): Sales Document Item
#[serde(rename = "POSNR")]
pub posnr: String,
/// `MATNR` CHAR 18: Material Number
#[serde(rename = "MATNR", default)]
pub matnr: String,
/// `ARKTX` CHAR 40: Short Text
#[serde(rename = "ARKTX", default)]
pub arktx: String,
/// `KWMENG` QUAN 15,3: Order Quantity
#[serde(rename = "KWMENG", default)]
pub kwmeng: rust_decimal::Decimal,
/// `VRKME` UNIT 3: Sales Unit
#[serde(rename = "VRKME", default)]
pub vrkme: String,
/// `NETWR` CURR 15,2: Net Value
#[serde(rename = "NETWR", default)]
pub netwr: rust_decimal::Decimal,
/// `WAERK` CUKY 5: Document Currency
#[serde(rename = "WAERK", default)]
pub waerk: String,
/// `WERKS` CHAR 4: Plant
#[serde(rename = "WERKS", default)]
pub werks: String,
}
impl Vbap {
pub const TABNAME: &'static str = "VBAP";
pub const KEY: &'static [&'static str] = &["MANDT", "VBELN", "POSNR"];
/// (ABAP name, Rust name), in DDIC position order.
pub const FIELDS: &'static [(&'static str, &'static str)] = &[("MANDT", "mandt"), ("VBELN", "vbeln"), ("POSNR", "posnr"), ("MATNR", "matnr"), ("ARKTX", "arktx"), ("KWMENG", "kwmeng"), ("VRKME", "vrkme"), ("NETWR", "netwr"), ("WAERK", "waerk"), ("WERKS", "werks")];
}