R_PPS_PurOrderContactDraft
PPS Purchase Order Contact Draft
R_PPS_PurOrderContactDraft is a Basic CDS View that provides data about "PPS Purchase Order Contact Draft" in SAP S/4HANA. It reads from 1 data source (pps_po_contact_d) and exposes 22 fields with key fields PurchaseOrder, PPSContactPersonUUID, DraftUUID. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pps_po_contact_d | pps_po_contact_d | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_PPS_PurchaseOrderDraft | _PurchaseOrd | $projection.PurchaseOrder = _PurchaseOrd.PurchaseOrder and $projection.ParentDraftUUID = _PurchaseOrd.DraftUUID |
| [0..1] | I_PPS_ContactCategoryText | _ContactText | $projection.PPSContactCategory = _ContactText.PPSContactCategory and _ContactText.Language = $session.system_language |
| [1..1] | I_PPS_ContactCategoryBasic | _ContactFunc | $projection.PPSContactCategory = _ContactFunc.PPSContactCategory |
| [1..1] | I_PPS_PurgDocCntctCategory | _ContactConfig | $projection.PPSContactCategory = _ContactConfig.PPSContactCategory and $projection.PurchasingDocumentCategory = _ContactConfig.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _ContactConfig.PurchasingDocumentType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | PPS Purchase Order Contact Draft | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | purchaseorder | Purchasing Document | |
| KEY | PPSContactPersonUUID | ppscontactpersonuuid | Contact Person UUID | |
| KEY | DraftUUID | draftuuid | UUID | |
| ParentDraftUUID | parentdraftuuid | NodeID | ||
| PurchasingDocumentCategory | purchasingdocumentcategory | Doc. Category | ||
| PPSSqncNmbrOfContactPerson | ppssqncnmbrofcontactperson | Sequence Number | ||
| PPSContactCategory | ppscontactcategory | Contact Person Type | ||
| PPSContactPerson | ppscontactperson | Contact Person Nr | ||
| BusinessPartnerName | businesspartnername | Extracted Customer Name | ||
| PurchasingDocumentType | purchasingdocumenttype | RFQ Type | ||
| PPSContactCategoryText | _ContactText | PPSContactCategoryText | Contact Description | |
| PPSContactFunction | _ContactFunc | PPSContactFunction | Function | |
| PPSContactFunctionText | _ContactFunc | PPSContactFunctionText | Short Description | |
| PPSContactCategoryIsMandatory | _ContactConfig | PPSContactCategoryIsMandatory | Mandatory Indicator | |
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftFieldChanges | draftfieldchanges | Field Changes | ||
| PPSFieldChangeIndicatorBinary | ppsfieldchangeindicatorbinary | Control | ||
| _PurchaseOrd | _PurchaseOrd |
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 R_PPS_PurOrderContactDraft.
-- 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 R_PPS_PurOrderContactDraft AS
SELECT
PurchaseOrder,
PPSContactPersonUUID,
DraftUUID,
ParentDraftUUID,
PurchasingDocumentCategory,
PPSSqncNmbrOfContactPerson,
PPSContactCategory,
PPSContactPerson,
BusinessPartnerName,
PurchasingDocumentType,
_ContactText.PPSContactCategoryText AS PPSContactCategoryText,
_ContactFunc.PPSContactFunction AS PPSContactFunction,
_ContactFunc.PPSContactFunctionText AS PPSContactFunctionText,
_ContactConfig.PPSContactCategoryIsMandatory AS PPSContactCategoryIsMandatory,
DraftEntityCreationDateTime,
DraftEntityLastChangeDateTime,
DraftAdministrativeDataUUID,
DraftEntityOperationCode,
HasActiveEntity,
DraftFieldChanges,
PPSFieldChangeIndicatorBinary
FROM pps_po_contact_d
LEFT OUTER JOIN R_PPS_PurchaseOrderDraft AS _PurchaseOrd ON PurchaseOrder = _PurchaseOrd.PurchaseOrder AND ParentDraftUUID = _PurchaseOrd.DraftUUID -- association [1..1]
LEFT OUTER JOIN I_PPS_ContactCategoryText AS _ContactText ON PPSContactCategory = _ContactText.PPSContactCategory AND _ContactText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_PPS_ContactCategoryBasic AS _ContactFunc ON PPSContactCategory = _ContactFunc.PPSContactCategory -- association [1..1]
LEFT OUTER JOIN I_PPS_PurgDocCntctCategory AS _ContactConfig ON PPSContactCategory = _ContactConfig.PPSContactCategory AND PurchasingDocumentCategory = _ContactConfig.PurchasingDocumentCategory AND PurchasingDocumentType = _ContactConfig.PurchasingDocumentType -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA