C_CustInvcItQty
Customer Invoice Item Quantity
C_CustInvcItQty is a CDS View that provides data about "Customer Invoice Item Quantity" in SAP S/4HANA. It reads from 1 data source (vbrp) and exposes 15 fields with key fields BillingDocument, BillingDocumentItem. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vbrp | sdi_items | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | view_sdi_head_p | sdi_head | $projection.BillingDocument = sdi_head.vbeln |
| [0..*] | t006a | BillingUnitT006A | $projection.BillingQuantityUnit = BillingUnitT006A.msehi |
| [0..*] | t006a | BaseUnitT006A | $projection.BaseUnit = BaseUnitT006A.msehi |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCUSTINVCITQTY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Customer Invoice Item Quantity | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | vbrp | vbeln | Billing Document |
| KEY | BillingDocumentItem | vbrp | posnr | Billing Document Item |
| Material | vbrp | matnr | Material | |
| BillingToBaseQuantityNmrtr | vbrp | umvkz | Billing To Base Quantity Numerator | |
| BillingToBaseQuantityDnmntr | vbrp | umvkn | Billing To Base Quantity Denominator | |
| BillingQuantityUnit | vbrp | vrkme | ||
| BillingUnitT006A | BillingUnitT006A | Billing Quantity Unit | ||
| BaseUnit | vbrp | meins | ||
| BaseUnitT006A | BaseUnitT006A | Base Unit | ||
| BillingDocumentCurrency | sdi_head | waerk | Billing Document Currency | |
| BillingQuantity | vbrp | fkimg | Billing Quantity | |
| BillingQuantityInBaseUnit | vbrp | fklmg | ||
| ItemNetAmountOfBillingDoc | vbrp | netwr | Item Net Amount of Billing Document | |
| shkzg | vbrp | shkzg | ||
| vbtyp | sdi_head | vbtyp |
@AbapCatalog.sqlViewName: 'CCUSTINVCITQTY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Customer Invoice Item Quantity'
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
define view C_CustInvcItQty as
// all items of a SD Invoice (billing); only the data which are necessary to determine the following information are selected:
// --- material number, item quantity in document UoM and base UoM, the conversion factors, net value in document currency; concerning
// the quantities and the net value, the sign is considered depending from the billing category and the 'Returns-Item'-Flag.
// --- Assignment of internal to language dependent Units of Measure (table T006A)
select from vbrp as sdi_items
// header data:
association [1..1] to view_sdi_head_p as sdi_head on $projection.BillingDocument = sdi_head.vbeln
// Assign Internal to Language Dependent Unit for Billing Quantity Unit:
association [0..*] to t006a as BillingUnitT006A on $projection.BillingQuantityUnit = BillingUnitT006A.msehi
// Assign Internal to Language Dependent Unit for Base Unit:
association [0..*] to t006a as BaseUnitT006A on $projection.BaseUnit = BaseUnitT006A.msehi
{
@EndUserText.label: 'Billing Document'
key sdi_items.vbeln as BillingDocument,
@EndUserText.label: 'Billing Document Item'
key sdi_items.posnr as BillingDocumentItem,
@EndUserText.label: 'Material'
sdi_items.matnr as Material,
@EndUserText.label: 'Billing To Base Quantity Numerator'
sdi_items.umvkz as BillingToBaseQuantityNmrtr,
@EndUserText.label: 'Billing To Base Quantity Denominator'
sdi_items.umvkn as BillingToBaseQuantityDnmntr,
@Semantics.unitOfMeasure sdi_items.vrkme as BillingQuantityUnit,
@EndUserText.label: 'Billing Quantity Unit'
BillingUnitT006A as BillingUnitT006A,
@Semantics.unitOfMeasure sdi_items.meins as BaseUnit,
@EndUserText.label: 'Base Unit'
BaseUnitT006A as BaseUnitT006A,
@EndUserText.label: 'Billing Document Currency'
@Semantics.currencyCode sdi_head.waerk as BillingDocumentCurrency,
@Semantics.quantity.unitOfMeasure: 'BillingQuantityUnit'
@EndUserText.label:'Billing Quantity'
sdi_items.fkimg as BillingQuantity,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
sdi_items.fklmg as BillingQuantityInBaseUnit,
@Semantics.amount.currencyCode: 'BillingDocumentCurrency'
@EndUserText.label:'Item Net Amount of Billing Document'
sdi_items.netwr as ItemNetAmountOfBillingDoc,
sdi_items.shkzg as shkzg,
sdi_head.vbtyp as vbtyp
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"VIEW_SDI_HEAD_P",
"VBRP"
],
"ASSOCIATED":
[
"VIEW_SDI_HEAD_P",
"T006A"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA