C_AgbuItemQty
Settlement Management Item Quantity
C_AgbuItemQty is a CDS View that provides data about "Settlement Management Item Quantity" in SAP S/4HANA. It reads from 1 data source (wbrp) and exposes 16 fields with key fields AgencyBusinessDocument, AgencyBusinessItem. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbrp | agbu_items | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | view_ab_head_p | agbu_head | $projection.AgencyBusinessDocument = agbu_head.wbeln |
| [0..*] | t006a | AgBuUnitT006A | $projection.AgBuItemQuantityUnit = AgBuUnitT006A.msehi |
| [0..*] | t006a | BaseUnitT006A | $projection.BaseUnit = BaseUnitT006A.msehi |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CAGBUITEMQTY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Settlement Management Item Quantity | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AgencyBusinessDocument | wbrp | wbeln | Settlement Management Document |
| KEY | AgencyBusinessItem | wbrp | posnr | Settlement Management Item |
| Material | wbrp | matnr | Material | |
| AgBuItemQtyToBaseQtyNmrtr | wbrp | umrez | Settl. Mngt. Item Quantity to Base Quantity Numerator | |
| AgBuItemQtyToBaseQtyDnmntr | wbrp | umren | Settl. Mngt. Item Quantity to Base Quantity Denominator | |
| AgBuItemQuantityUnit | wbrp | wfkme | Settlement Unit | |
| AgBuUnitT006A | AgBuUnitT006A | Settlement Management Item Quantity Unit | ||
| BaseUnit | wbrp | meins | Valuation Unit | |
| BaseUnitT006A | BaseUnitT006A | Base Unit | ||
| AgencyBusinessDocumentCurrency | agbu_head | waerl | Settlement Management Document Currency | |
| AgencyBusinessItemQuantity | wbrp | menge | Settlement Management Item Quantity | |
| AgBuItemQuantityInBaseUnit | wbrp | menge | WarrCountValue | |
| ItemNetAmountOfAgBuDoc | wbrp | netwr | Item Net Amount of Settlement Management Document | |
| CustRelItemNetAmountofAgBuDoc | wbrp | netwrd | Cust Rel Item Net Amnt of Settlment Management Document | |
| Itemcat | wbrp | itemcat | WComp Item Cat. | |
| lftyp | agbu_head | lftyp | Sett. Doc. Cat. |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_AgbuItemQty.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CAGBUITEMQTY
CREATE VIEW C_AgbuItemQty AS
SELECT
agbu_items.wbeln AS AgencyBusinessDocument,
agbu_items.posnr AS AgencyBusinessItem,
agbu_items.matnr AS Material,
agbu_items.umrez AS AgBuItemQtyToBaseQtyNmrtr,
agbu_items.umren AS AgBuItemQtyToBaseQtyDnmntr,
agbu_items.wfkme AS AgBuItemQuantityUnit,
AgBuUnitT006A,
agbu_items.meins AS BaseUnit,
BaseUnitT006A,
agbu_head.waerl AS AgencyBusinessDocumentCurrency,
agbu_items.menge AS AgencyBusinessItemQuantity,
agbu_items.menge AS AgBuItemQuantityInBaseUnit,
agbu_items.netwr AS ItemNetAmountOfAgBuDoc,
agbu_items.netwrd AS CustRelItemNetAmountofAgBuDoc,
agbu_items.itemcat AS Itemcat,
agbu_head.lftyp AS lftyp
FROM wbrp AS agbu_items
LEFT OUTER JOIN view_ab_head_p AS agbu_head ON AgencyBusinessDocument = agbu_head.wbeln -- association [1..1]
LEFT OUTER JOIN t006a AS AgBuUnitT006A ON AgBuItemQuantityUnit = AgBuUnitT006A.msehi -- association [0..*]
LEFT OUTER JOIN t006a AS BaseUnitT006A ON BaseUnit = BaseUnitT006A.msehi -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA