I_WrkfrcPersnRelshpToCoTP
Workforce Person Relationship to Company
I_WrkfrcPersnRelshpToCoTP is a CDS View that provides data about "Workforce Person Relationship to Company" in SAP S/4HANA. It reads from 3 data sources (P_BPUSRPERSONEXTERNALID, I_BPRelationship, bpu_rolecat_whl) and exposes 8 fields with key fields WorkforcePersonExternalID, BusinessPartnerRole, BusinessPartnerCompany, ValidityEndDate. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_BPUSRPERSONEXTERNALID | _BPIdentification | inner |
| I_BPRelationship | _BPRelationship | from |
| bpu_rolecat_whl | bpu_rolecat_whl | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_WorkforcePersonTP | _WorkforcePerson | _WorkforcePerson.WorkforcePersonExternalID = $projection.WorkforcePersonExternalID |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Workforce Person Relationship to Company | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkforcePersonExternalID | P_BPUSRPERSONEXTERNALID | BPIdentificationNumber | Logical System |
| KEY | BusinessPartnerRole | bpu_rolecat_whl | rolecategory | BP Role Cat. |
| KEY | BusinessPartnerCompany | I_BPRelationship | BusinessPartnerCompany | Busn. Partner |
| KEY | ValidityEndDate | I_BPRelationship | ValidityEndDate | ValidTo |
| ValidityStartDate | I_BPRelationship | ValidityStartDate | Validity Start Date | |
| RelationshipCategory | I_BPRelationship | RelationshipCategory | Relationsh.Cat. | |
| _WorkforcePersonRole | _WorkforcePersonRole | |||
| _WorkforcePerson | _WorkforcePerson |
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 I_WrkfrcPersnRelshpToCoTP.
-- 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 I_WrkfrcPersnRelshpToCoTP AS
SELECT
_BPIdentification.BPIdentificationNumber AS WorkforcePersonExternalID,
bpu_rolecat_whl.rolecategory AS BusinessPartnerRole,
_BPRelationship.BusinessPartnerCompany AS BusinessPartnerCompany,
_BPRelationship.ValidityEndDate AS ValidityEndDate,
_BPRelationship.ValidityStartDate AS ValidityStartDate,
_BPRelationship.RelationshipCategory AS RelationshipCategory
FROM I_BPRelationship AS _BPRelationship
INNER JOIN P_BPUSRPERSONEXTERNALID AS _BPIdentification ON /* join condition not captured in parsed metadata */
INNER JOIN bpu_rolecat_whl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePersonTP AS _WorkforcePerson ON _WorkforcePerson.WorkforcePersonExternalID = WorkforcePersonExternalID -- association [1..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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