P_HUPSchedgAgrmt

DDL: P_HUPSCHEDGAGRMT Type: view_entity BASIC

Scheduling Agreement Item details 4 HUP

P_HUPSchedgAgrmt is a Basic CDS View that provides data about "Scheduling Agreement Item details 4 HUP" in SAP S/4HANA. It reads from 2 data sources (vbak, vbap) and exposes 16 fields with key fields SalesSchedulingAgreement, SalesSchedulingAgreementItem. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
vbak _SalesDocumentHeader inner
vbap _SalesDocumentItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_HUPProduct _Product $projection.Product = _Product.Product and $projection.Plant = _Product.Plant
[0..*] I_ProductText _ProductText $projection.Product = _ProductText.Product

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Scheduling Agreement Item details 4 HUP view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY SalesSchedulingAgreement vbap vbeln SD Sched. Agmt
KEY SalesSchedulingAgreementItem vbap posnr WBS Element
SalesDocumentType vbap auart_ana Sales Doc. Type
OrganizationDivision vbap spart_ana Division
SalesOrganization vbap vkorg_ana Sales Org.
DistributionChannel vbap vtweg_ana Distr. Channel
Plant vbap werks Receiving Plant
StorageLocation vbap lgort Sublocation
ShipToParty vbap kunwe_ana Ship-to Party
Product
OrderQuantity vbap kwmeng Sales Quantity
OrderQuantityUnit vbap vrkme UoM for SubItm CCD
SalesDocumentDate vbap audat_ana Document Date
SDDocumentCategory vbap vbtyp_ana Document Cat.
_Product _Product
_ProductText _ProductText

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 P_HUPSchedgAgrmt.
-- 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 P_HUPSchedgAgrmt AS
SELECT
  _SalesDocumentItem.vbeln AS SalesSchedulingAgreement,
  _SalesDocumentItem.posnr AS SalesSchedulingAgreementItem,
  _SalesDocumentItem.auart_ana AS SalesDocumentType,
  _SalesDocumentItem.spart_ana AS OrganizationDivision,
  _SalesDocumentItem.vkorg_ana AS SalesOrganization,
  _SalesDocumentItem.vtweg_ana AS DistributionChannel,
  _SalesDocumentItem.werks AS Plant,
  _SalesDocumentItem.lgort AS StorageLocation,
  _SalesDocumentItem.kunwe_ana AS ShipToParty,
  cast (_SalesDocumentItem.matnr as productnumber preserving type) AS Product,
  _SalesDocumentItem.kwmeng AS OrderQuantity,
  _SalesDocumentItem.vrkme AS OrderQuantityUnit,
  _SalesDocumentItem.audat_ana AS SalesDocumentDate,
  _SalesDocumentItem.vbtyp_ana AS SDDocumentCategory
FROM vbap AS _SalesDocumentItem
INNER JOIN vbak AS _SalesDocumentHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_HUPProduct AS _Product ON Product = _Product.Product AND Plant = _Product.Plant  -- association [0..1]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Product = _ProductText.Product  -- association [0..*]
;