P_SrcgProjItemHierDraftText

DDL: P_SRCGPROJITEMHIERDRAFTTEXT SQL: PSRCGPIDTXT Type: view_entity COMPOSITE

P_SrcgProjItemHierDraftText is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SrcgProjItmHierDraftTxtBase) and exposes 65 fields with key field SourcingProjectItemUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SrcgProjItmHierDraftTxtBase I_SrcgProjItmHierDraftTxtBase from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_SrcgProjItemQuotationCount _SrcgProjItmQuotationCount $projection.SourcingProjectItemUUID = _SrcgProjItmQuotationCount.SourcingProjectItemUUID
[1..1] R_SrcgProjItemAwardedDetails _SrcgProjItmAwardedDetails $projection.SourcingProjectItemUUID = _SrcgProjItmAwardedDetails.SourcingProjectItemUUID

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (65)

KeyFieldSource TableSource FieldDescription
KEY SourcingProjectItemUUID SourcingProjectItemUUID Item UUID
SourcingProjectUUID SourcingProjectUUID Sourcing Project UUID
SourcingProjectItemType SourcingProjectItemType Item Type
SourcingProjectItemTypeName
SrcgProjItemClassification SrcgProjItemClassification Item Classification
SrcgProjItemClassificationName
SourcingProject SourcingProject Sourcing Project
SourcingProjectName SourcingProjectName Name
SrcgProjLifecycleStatus SrcgProjLifecycleStatus Status
SourcingProjectType SourcingProjectType Sourcing Project Type
SourcingProjectTypeText
SrcgProjItemDescription SrcgProjItemDescription Description
AlternativeItemID AlternativeItemID Alternative Item ID
HierarchyLevel
Material Material Vehicle Model
MaterialName
ProductType ProductType Product Type Group
ProductTypeName
MaterialGroup MaterialGroup Product Group
MaterialGroupName
RequestedQuantityUnit RequestedQuantityUnit Requested Quantity Unit
UnitOfMeasureName
SourcingScenario SourcingScenario Integration Scenario
SrcgProjSourcingScenarioText
SourcingOrigin SourcingOrigin Sourcing Origin
SrcgProjSourcingOriginText
Plant Plant Valuation Area
PlantName _BackendPlantForPurg PlantName Plant Name
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _BackendCoCodeForPurg CompanyCodeName Company Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
ProcmtHubPurgOrgName _ProcmtHubPurgOrg ProcmtHubPurgOrgName
ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
ProcurementHubSourceSystemName _BackendCoCodeForPurg ProcurementHubSourceSystemName Connected Sys Name
SourcingProjectItemIconURI _SrcgProjItemClassification SourcingProjectItemIconURI Sourcing Project Item Icon
PurchasingDocumentCategoryName
SrcgProjFollowOnDocumentCat SrcgProjFollowOnDocumentCat Follow-On Document Category
SrcgProjFollowOnDocumentType SrcgProjFollowOnDocumentType Follow-On Document Type
PurchasingDocumentTypeName
SrcgProjItemDemandConfCode SrcgProjItemDemandConfCode Confirmation Code
SrcgProjItemDemandConfCodeName
SrcgProjItemUnconfdDemandRsn SrcgProjItemUnconfdDemandRsn Rsn for Unconfd Dmnd
SourcingProjectReasonText
SrcgProjectItemSettledStatus SrcgProjectItemSettledStatus Item Status
SrcgProjItemSettledStatusName
NumberOfAwardedQuotations _SrcgProjItmQuotationCount NumberOfAwardedQuotations
NumberOfSubmittedQuotations _SrcgProjItmQuotationCount NumberOfSubmittedQuotations
SrcgProjTotalNumberOfQuotation _SrcgProjItmQuotationCount SrcgProjTotalNumberOfQuotation
SrcgProjItmRemainingQuantity _SrcgProjItmAwardedDetails SrcgProjItmRemainingQuantity
SrcgProjQtnOfferedQuantity _SrcgProjItmAwardedDetails SrcgProjQtnOfferedQuantity Offered Quantity
SourceSourcingProject
SourceSourcingProjectItem _SourceSourcingProjectItem SourcingProjectItem Item
_SrcgProjItemClassification _SrcgProjItemClassification
_BackendCoCodeForPurg _BackendCoCodeForPurg
_MaterialGroupText _MaterialGroupText
_UnitOfMeasureText _UnitOfMeasureText
_PurgDocumentCategoryText _PurgDocumentCategoryText
_BackendPlantForPurg _BackendPlantForPurg
_ProcmtHubPurgOrg _ProcmtHubPurgOrg
_SourcingProjectItemTypeText _SourcingProjectItemTypeText
_SrcgProjItemClassfctnText _SrcgProjItemClassfctnText
_ProductTypeCodeText _ProductTypeCodeText
_RequestedQuantityUnit _RequestedQuantityUnit
_PurchasingDocumentTypeText _PurchasingDocumentTypeText

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_SrcgProjItemHierDraftText.
-- 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: PSRCGPIDTXT

CREATE VIEW P_SrcgProjItemHierDraftText AS
SELECT
  SourcingProjectItemUUID,
  SourcingProjectUUID,
  SourcingProjectItemType,
  _SourcingProjectItemTypeText[ Language = $session.system_language ].SourcingProjectItemTypeName AS SourcingProjectItemTypeName,
  SrcgProjItemClassification,
  _SrcgProjItemClassfctnText[ Language = $session.system_language ].SrcgProjItemClassificationName AS SrcgProjItemClassificationName,
  SourcingProject,
  SourcingProjectName,
  SrcgProjLifecycleStatus,
  SourcingProjectType,
  _SourcingProjectTypeText[ Language = $session.system_language ].SourcingProjectTypeText AS SourcingProjectTypeText,
  SrcgProjItemDescription,
  AlternativeItemID,
  cast( 0 as abap.int4 ) AS HierarchyLevel,
  Material,
  _MaterialText[ Language = $session.system_language ].MaterialName AS MaterialName,
  ProductType,
  _ProductTypeCodeText[ Language = $session.system_language ].Name AS ProductTypeName,
  MaterialGroup,
  _MaterialGroupText[ Language = $session.system_language ].MaterialGroupName AS MaterialGroupName,
  RequestedQuantityUnit,
  _UnitOfMeasureText[ Language = $session.system_language ].UnitOfMeasureName AS UnitOfMeasureName,
  SourcingScenario,
  _SrcgProjSourcingScenarioText[ Language = $session.system_language ].SrcgProjSourcingScenarioText AS SrcgProjSourcingScenarioText,
  SourcingOrigin,
  _SrcgProjSourcingOriginText[ Language = $session.system_language ].SrcgProjSourcingOriginText AS SrcgProjSourcingOriginText,
  Plant,
  _BackendPlantForPurg.PlantName AS PlantName,
  CompanyCode,
  _BackendCoCodeForPurg.CompanyCodeName AS CompanyCodeName,
  PurchasingGroup,
  PurchasingOrganization,
  _ProcmtHubPurgOrg.ProcmtHubPurgOrgName AS ProcmtHubPurgOrgName,
  ProcurementHubSourceSystem,
  _BackendCoCodeForPurg.ProcurementHubSourceSystemName AS ProcurementHubSourceSystemName,
  _SrcgProjItemClassification.SourcingProjectItemIconURI AS SourcingProjectItemIconURI,
  _PurgDocumentCategoryText[ Language = $session.system_language ].PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName,
  SrcgProjFollowOnDocumentCat,
  SrcgProjFollowOnDocumentType,
  _PurchasingDocumentTypeText[ Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  SrcgProjItemDemandConfCode,
  _SrcgProjItemDmndConfCodeText[1:Language = $session.system_language ].SrcgProjItemDemandConfCodeName AS SrcgProjItemDemandConfCodeName,
  SrcgProjItemUnconfdDemandRsn,
  _SourcingProjectReasonText[1:Language = $session.system_language ].ProductSourcingReasonText AS SourcingProjectReasonText,
  SrcgProjectItemSettledStatus,
  _SrcgProjItmSettledStatusText[1:Language = $session.system_language ].SrcgProjItemSettledStatusName AS SrcgProjItemSettledStatusName,
  _SrcgProjItmQuotationCount.NumberOfAwardedQuotations AS NumberOfAwardedQuotations,
  _SrcgProjItmQuotationCount.NumberOfSubmittedQuotations AS NumberOfSubmittedQuotations,
  _SrcgProjItmQuotationCount.SrcgProjTotalNumberOfQuotation AS SrcgProjTotalNumberOfQuotation,
  _SrcgProjItmAwardedDetails.SrcgProjItmRemainingQuantity AS SrcgProjItmRemainingQuantity,
  _SrcgProjItmAwardedDetails.SrcgProjQtnOfferedQuantity AS SrcgProjQtnOfferedQuantity,
  _SourceSourcingProjectItem._SourcingProject.SourcingProject AS SourceSourcingProject,
  _SourceSourcingProjectItem.SourcingProjectItem AS SourceSourcingProjectItem
FROM I_SrcgProjItmHierDraftTxtBase
LEFT OUTER JOIN R_SrcgProjItemQuotationCount AS _SrcgProjItmQuotationCount ON SourcingProjectItemUUID = _SrcgProjItmQuotationCount.SourcingProjectItemUUID  -- association [1..1]
LEFT OUTER JOIN R_SrcgProjItemAwardedDetails AS _SrcgProjItmAwardedDetails ON SourcingProjectItemUUID = _SrcgProjItmAwardedDetails.SourcingProjectItemUUID  -- association [1..1]
;