I_CustCmmdtyQuantityHeaderTP

DDL: I_CUSTCMMDTYQUANTITYHEADERTP Type: view_entity TRANSACTIONAL Package: LOG_CMM_PRC_CMMDTY_QTY_CUST

Customer Commodity Quantities Hdr - TP

I_CustCmmdtyQuantityHeaderTP is a Transactional CDS View that provides data about "Customer Commodity Quantities Hdr - TP" in SAP S/4HANA. It reads from 1 data source (I_CustomerCommodityQtyHdr) and exposes 25 fields with key field UniqueSpecificationUUID. It has 8 associations to related views. Part of development package LOG_CMM_PRC_CMMDTY_QTY_CUST.

Data Sources (1)

SourceAliasJoin Type
I_CustomerCommodityQtyHdr I_CustomerCommodityQtyHdr from

Associations (8)

CardinalityTargetAliasCondition
[0..*] I_ProductDescription _ProductDesc $projection.Product = _ProductDesc.Product
[0..*] I_SalesOrganizationText _SalesText $projection.SalesOrganization = _SalesText.SalesOrganization
[0..*] I_DistributionChannelText _DistChannelText $projection.DistributionChannel = _DistChannelText.DistributionChannel
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_User _UserCreate $projection.CreatedByUser = _UserCreate.UserID
[0..1] I_User _UserChange $projection.LastChangedByUser = _UserChange.UserID
[1..1] E_CustCommoditySpecification _Extension $projection.UniqueSpecificationUUID = _Extension.UniqueSpecificationUUID
[0..*] I_CustCommodityQuantityItemTP _CustomerItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Customer Commodity Quantities Hdr - TP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
Feature SW:LOG_CMM_PRC_SFWS_CMMDTY_QTY view
VDM.viewType #TRANSACTIONAL view
ObjectModel.representativeKey UniqueSpecificationUUID view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY UniqueSpecificationUUID UniqueSpecificationUUID Spec ID
Product Product Product Sold
ProductDescription
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName
Customer Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
CreatedByUser CreatedByUser User Name
CreatedByUserName _UserCreate UserDescription Full Name
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
ChangedByUserName _UserChange UserDescription Full Name
LastChangeDateTime LastChangeDateTime Timestamp
LocalLastChangeDateTime LocalLastChangeDateTime Time Stamp
DocumentIsSavedOnDatabase
IsBusinessPurposeCompleted _Customer IsBusinessPurposeCompleted Purpose Completed
_CustomerItem _CustomerItem
_ProductDesc _ProductDesc
_SalesText _SalesText
_DistChannelText _DistChannelText
_Customer _Customer
_UserCreate _UserCreate
_UserChange _UserChange

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 I_CustCmmdtyQuantityHeaderTP.
-- 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.

CREATE VIEW I_CustCmmdtyQuantityHeaderTP AS
SELECT
  UniqueSpecificationUUID,
  Product,
  _ProductDesc[1: Language=$session.system_language].ProductDescription AS ProductDescription,
  SalesOrganization,
  _SalesText[1: Language=$session.system_language].SalesOrganizationName AS SalesOrganizationName,
  DistributionChannel,
  _DistChannelText[1: Language=$session.system_language].DistributionChannelName AS DistributionChannelName,
  Customer,
  _Customer.CustomerName AS CustomerName,
  CreatedByUser,
  _UserCreate.UserDescription AS CreatedByUserName,
  CreationDateTime,
  LastChangedByUser,
  _UserChange.UserDescription AS ChangedByUserName,
  LastChangeDateTime,
  LocalLastChangeDateTime,
  cast('X' as cmm_doc_available_in_db preserving type ) AS DocumentIsSavedOnDatabase,
  _Customer.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_CustomerCommodityQtyHdr
LEFT OUTER JOIN I_ProductDescription AS _ProductDesc ON Product = _ProductDesc.Product  -- association [0..*]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesText ON SalesOrganization = _SalesText.SalesOrganization  -- association [0..*]
LEFT OUTER JOIN I_DistributionChannelText AS _DistChannelText ON DistributionChannel = _DistChannelText.DistributionChannel  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_User AS _UserCreate ON CreatedByUser = _UserCreate.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _UserChange ON LastChangedByUser = _UserChange.UserID  -- association [0..1]
LEFT OUTER JOIN E_CustCommoditySpecification AS _Extension ON UniqueSpecificationUUID = _Extension.UniqueSpecificationUUID  -- association [1..1]
LEFT OUTER JOIN I_CustCommodityQuantityItemTP AS _CustomerItem ON /* condition not available in parsed metadata */  -- association [0..*]
;