C_AgbuItemQty

DDL: C_AGBUITEMQTY SQL: CAGBUITEMQTY Type: view

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)

SourceAliasJoin Type
wbrp agbu_items from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;