C_PurContrDrftForMngPurReqn

DDL: C_PURCONTRDRFTFORMNGPURREQN SQL: CPCDRAFTFORPR Type: view CONSUMPTION

Purchase Contract Draft For PR

C_PurContrDrftForMngPurReqn is a Consumption CDS View that provides data about "Purchase Contract Draft For PR" in SAP S/4HANA. It reads from 1 data source (I_PurContrDrftForMngPurReqn) and exposes 20 fields with key field PurchaseContractDraftUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurContrDrftForMngPurReqn I_PurContrDrftForMngPurReqn from

Associations (5)

CardinalityTargetAliasCondition
[1..*] C_PurContrItmDrftForMngPurReqn _PurContrItmDrftForMngPurReqn $projection.PurchaseContractDraftUUID = _PurContrItmDrftForMngPurReqn.PurchaseContractDraftUUID
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[0..1] C_MM_SupplierValueHelp _SupplierValueHelp $projection.Supplier = _SupplierValueHelp.Supplier and $projection.CompanyCode = _SupplierValueHelp.CompanyCode
[1..1] I_Purchasecontracttype_Vh _Purchasecontracttype_Vh $projection.PurchasingDocumentType = _Purchasecontracttype_Vh.PurchasingDocumentType

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPCDRAFTFORPR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchase Contract Draft For PR view
ObjectModel.updateEnabled true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContractDraftUUID PurchaseContractDraftUUID Key
PurchaseContract PurchaseContract Purchasing Doc.
DocumentCurrency DocumentCurrency Document Currency
PurchaseContractTargetAmount PurchaseContractTargetAmount Target Value
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
SupplyingSupplier SupplyingSupplier Goods Supplier
ValidityEndDate ValidityEndDate ValidTo
ValidityStartDate ValidityStartDate Validity Start Date
SerialNumber
_SupplierValueHelp _SupplierValueHelp
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_PurContrItmDrftForMngPurReqn _PurContrItmDrftForMngPurReqn
_Purchasecontracttype_Vh _Purchasecontracttype_Vh

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_PurContrDrftForMngPurReqn.
-- 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: CPCDRAFTFORPR

CREATE VIEW C_PurContrDrftForMngPurReqn AS
SELECT
  PurchaseContractDraftUUID,
  PurchaseContract,
  DocumentCurrency,
  PurchaseContractTargetAmount,
  PurchasingDocumentType,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  CompanyCode,
  Supplier,
  SupplyingSupplier,
  ValidityEndDate,
  ValidityStartDate,
  cast ('' as abap.char( 10 )) AS SerialNumber
FROM I_PurContrDrftForMngPurReqn
LEFT OUTER JOIN C_PurContrItmDrftForMngPurReqn AS _PurContrItmDrftForMngPurReqn ON PurchaseContractDraftUUID = _PurContrItmDrftForMngPurReqn.PurchaseContractDraftUUID  -- association [1..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON Supplier = _SupplierValueHelp.Supplier AND CompanyCode = _SupplierValueHelp.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Purchasecontracttype_Vh AS _Purchasecontracttype_Vh ON PurchasingDocumentType = _Purchasecontracttype_Vh.PurchasingDocumentType  -- association [1..1]
;