C_PurchaseReqnContractVH

DDL: C_PURCHASEREQNCONTRACTVH SQL: CPURREQNCONTRACT Type: view CONSUMPTION

Ctr Value help for PurReqn Assingn SoS

C_PurchaseReqnContractVH is a Consumption CDS View that provides data about "Ctr Value help for PurReqn Assingn SoS" in SAP S/4HANA. It reads from 2 data sources (I_PurchaseContract, I_PurchaseContractItem) and exposes 26 fields with key fields PurchaseContract, PurchaseContractItem. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_PurchaseContract _PurchaseContract inner
I_PurchaseContractItem _PurchaseContractItem from

Associations (5)

CardinalityTargetAliasCondition
[0..1] C_PurchasingOrgValueHelp _PurchasingOrgValueHelp _PurchasingOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganization
[0..1] C_PurchasingGroupValueHelp _PurchasingGroupValueHelp _PurchasingGroupValueHelp.PurchasingGroup = $projection.PurchasingGroup
[0..1] C_MM_SupplierValueHelp _SupplierValueHelp _SupplierValueHelp.Supplier = $projection.Supplier and _SupplierValueHelp.CompanyCode = $projection.CompanyCode
[0..1] I_CO2eqSuplrFprntAvgBaseUoM _CO2eqSuplrFprntAvgBaseUoM _CO2eqSuplrFprntAvgBaseUoM.Product = $projection.Material and _CO2eqSuplrFprntAvgBaseUoM.Plant = $projection.Plant and _CO2eqSuplrFprntAvgBaseUoM.Supplier = $projection.Supplier
[0..1] I_PurchaseContractItem _PurchaseContractParentItem _PurchaseContractParentItem.PurchaseContract = $projection.PurchaseContract and _PurchaseContractParentItem.PurchaseContractItem = $projection.PurchasingParentItem

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPURREQNCONTRACT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Ctr Value help for PurReqn Assingn SoS view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view
Consumption.ranked true view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract I_PurchaseContractItem PurchaseContract Purchasing Doc.
KEY PurchaseContractItem I_PurchaseContractItem PurchaseContractItem Item
Supplier I_PurchaseContract Supplier Supplier
Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
ContractNetPriceAmount ContractNetPriceAmount Net Price
DocumentCurrency I_PurchaseContract DocumentCurrency Document Currency
ValidityStartDate I_PurchaseContract ValidityStartDate Validity Start Date
ValidityEndDate I_PurchaseContract ValidityEndDate ValidTo
PurchasingOrganization I_PurchaseContract PurchasingOrganization Purchasing Organization
PurchasingGroup I_PurchaseContract PurchasingGroup Purchasing Group
IsEndOfPurposeBlocked I_PurchaseContract IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchaseContractType I_PurchaseContract PurchaseContractType Order Type
PurchasingDocumentDeletionCode I_PurchaseContract PurchasingDocumentDeletionCode Del. Indicator
CompanyCode I_PurchaseContract CompanyCode Receiver Company Code
Plant Plant Valuation Area
PurchasingParentItem PurchasingParentItem Parent Item No
PurchaseContractItemText _PurchaseContractParentItem PurchaseContractItemText Parent Short Text
PFMFootprintQuantity _CO2eqSuplrFprntAvgBaseUoM PFMFootprintFxdPtDcmlQuantity CO2e Footprint
PFMFootprintUnit _CO2eqSuplrFprntAvgBaseUoM PFMFootprintUnit CO2eq Footprint Unit
SupplierName _SupplierValueHelp SupplierName Supplier Name
_PurchasingOrgValueHelp _PurchasingOrgValueHelp
_PurchasingGroupValueHelp _PurchasingGroupValueHelp
_SupplierValueHelp _SupplierValueHelp
_PurchaseContract _PurchaseContract
_PurchaseContractParentItem _PurchaseContractParentItem

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_PurchaseReqnContractVH.
-- 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: CPURREQNCONTRACT

CREATE VIEW C_PurchaseReqnContractVH AS
SELECT
  _PurchaseContractItem.PurchaseContract AS PurchaseContract,
  _PurchaseContractItem.PurchaseContractItem AS PurchaseContractItem,
  _PurchaseContract.Supplier AS Supplier,
  Material,
  MaterialGroup,
  ContractNetPriceAmount,
  _PurchaseContract.DocumentCurrency AS DocumentCurrency,
  _PurchaseContract.ValidityStartDate AS ValidityStartDate,
  _PurchaseContract.ValidityEndDate AS ValidityEndDate,
  _PurchaseContract.PurchasingOrganization AS PurchasingOrganization,
  _PurchaseContract.PurchasingGroup AS PurchasingGroup,
  _PurchaseContract.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  _PurchaseContract.PurchaseContractType AS PurchaseContractType,
  _PurchaseContract.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
  _PurchaseContract.CompanyCode AS CompanyCode,
  Plant,
  PurchasingParentItem,
  _PurchaseContractParentItem.PurchaseContractItemText AS PurchaseContractItemText,
  _CO2eqSuplrFprntAvgBaseUoM.PFMFootprintFxdPtDcmlQuantity AS PFMFootprintQuantity,
  _CO2eqSuplrFprntAvgBaseUoM.PFMFootprintUnit AS PFMFootprintUnit,
  _SupplierValueHelp.SupplierName AS SupplierName
FROM I_PurchaseContractItem AS _PurchaseContractItem
INNER JOIN I_PurchaseContract AS _PurchaseContract ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrgValueHelp ON _PurchasingOrgValueHelp.PurchasingOrganization = PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier AND _SupplierValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CO2eqSuplrFprntAvgBaseUoM AS _CO2eqSuplrFprntAvgBaseUoM ON _CO2eqSuplrFprntAvgBaseUoM.Product = Material AND _CO2eqSuplrFprntAvgBaseUoM.Plant = Plant AND _CO2eqSuplrFprntAvgBaseUoM.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItem AS _PurchaseContractParentItem ON _PurchaseContractParentItem.PurchaseContract = PurchaseContract AND _PurchaseContractParentItem.PurchaseContractItem = PurchasingParentItem  -- association [0..1]
;