R_WorkAssignmentTP
Work assignment TP
R_WorkAssignmentTP is a Transactional CDS View that provides data about "Work assignment TP" in SAP S/4HANA. It reads from 2 data sources (R_BPUsrRole, R_WorkAssignmentBP) and exposes 32 fields with key field WorkAssignmentUUID. It has 9 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| R_BPUsrRole | _BPUsrRole | inner |
| R_WorkAssignmentBP | _BuPaIdentification | inner |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | R_BPUsrRoleText | _BPUsrRoleText | _BPUsrRoleText.Role = $projection.BasicRoleCategory and _BPUsrRoleText.Language = $session.system_language |
| [1..1] | I_BusinessPartner | _WorkforcePersonBP | _WorkforcePersonBP.BusinessPartner = _AssignmentKeyMap.BusinessPartner |
| [1..1] | I_BusinessPartner | _WorkAssignmentBP | _WorkAssignmentBP.BusinessPartner = _BuPaIdentification.WorkAssignmentBusinessPartner |
| [1..1] | I_WorkAssignmentDetail_1 | _AssignmentDetailsForKeyDate | _AssignmentDetailsForKeyDate.WorkforceAssignment = _AssignmentKeyMap.WorkforceAssignment and _AssignmentDetailsForKeyDate.WorkforceAssgmtStartDate = _BPUsrRole.BPUsrRoleValidFromDate |
| [0..1] | I_CompanyCode | _CompanyCodeText | _CompanyCodeText.CompanyCode = $projection.CompanyCode |
| [1..*] | R_WorkAssignmentDetailsTP | _WorkAssignmentDetails | |
| [0..*] | R_WorkAssgmtSrvcCostLvlTP | _WorkAssgmtSrvcCostLvl | |
| [0..*] | R_BPRltnShipSupplierTP | _BPRltnShipSupplier | |
| [0..*] | R_WorkAssgmtAltCostAssgmtTP | _WorkAssgmtAltCostAssgmt | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Work assignment TP | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkAssignmentUUID | _WorkAssignmentBP | BusinessPartnerUUID | UUID |
| StartDate | R_BPUsrRole | BPUsrRoleValidFromDate | ||
| EndDate | R_BPUsrRole | BPUsrRoleValidToDate | ||
| WorkAssignment | _AssignmentKeyMap | WorkforceAssignment | WorkForce Assgmt ID | |
| WorkAssignmentExternalID | _AssignmentKeyMap | WorkAssignmentExternalID | WFA Ext. ID | |
| WorkforcePersonID | _AssignmentKeyMap | WorkforcePersonID | Worker ID | |
| WorkforcePersonUserID | _AssignmentKeyMap | WorkforcePersonUserID | User ID | |
| WorkAssignmentDataSource | _AssignmentKeyMap | WorkAssignmentDataSource | Data Source | |
| WorkAssignmentBusinessPartner | R_WorkAssignmentBP | WorkAssignmentBusinessPartner | Busn. Partner | |
| Person | _AssignmentKeyMap | BusinessPartner | Issuing Authority | |
| PersonUUID | _WorkforcePersonBP | BusinessPartnerUUID | UUID | |
| CompanyCode | _AssignmentDetailsForKeyDate | CompanyCode | Receiver Company Code | |
| WorkAssignmentCountryISOCode | _AssignmentDetailsForKeyDate | Country2DigitISOCode | Country/Region | |
| RoleCategory | R_BPUsrRole | RoleCategory | BP Role Cat. | |
| BasicRoleCategoryendasBasicRoleCategory | ||||
| BusinessPartnerRole | R_BPUsrRole | BusinessPartnerRole | BP Role | |
| EmploymentSituation | ||||
| BusPartRelshpSupplierIsVisible | ||||
| BusinessPartnerRelshpSupplier | ||||
| BusinessPartnerName | ||||
| IsBlocked | _AssignmentKeyMap | IsBlocked | Boolean Variable (X = True, - = False, Space = Unknown) | |
| IsBusinessPurposeCompleted | _WorkAssignmentBP | IsBusinessPurposeCompleted | Purpose Completed | |
| _WorkAssignmentBP | _WorkAssignmentBP | |||
| _WorkforcePersonBP | _WorkforcePersonBP | |||
| _WorkAssgmtSrvcCostLvl | _WorkAssgmtSrvcCostLvl | |||
| _BPRltnShipSupplier | _BPRltnShipSupplier | |||
| _WorkAssgmtAltCostAssgmt | _WorkAssgmtAltCostAssgmt | |||
| _WorkforcePerson | _WorkforcePerson | |||
| _WorkAssignmentDetails | _WorkAssignmentDetails | |||
| _AssignmentDetailsForKeyDate | _AssignmentDetailsForKeyDate | |||
| _CompanyCodeText | _CompanyCodeText | |||
| _BPUsrRoleText | _BPUsrRoleText |
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_WorkAssignmentTP.
-- 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_WorkAssignmentTP AS
SELECT
_WorkAssignmentBP.BusinessPartnerUUID AS WorkAssignmentUUID,
_BPUsrRole.BPUsrRoleValidFromDate AS StartDate,
_BPUsrRole.BPUsrRoleValidToDate AS EndDate,
_AssignmentKeyMap.WorkforceAssignment AS WorkAssignment,
_AssignmentKeyMap.WorkAssignmentExternalID AS WorkAssignmentExternalID,
_AssignmentKeyMap.WorkforcePersonID AS WorkforcePersonID,
_AssignmentKeyMap.WorkforcePersonUserID AS WorkforcePersonUserID,
_AssignmentKeyMap.WorkAssignmentDataSource AS WorkAssignmentDataSource,
_BuPaIdentification.WorkAssignmentBusinessPartner AS WorkAssignmentBusinessPartner,
_AssignmentKeyMap.BusinessPartner AS Person,
_WorkforcePersonBP.BusinessPartnerUUID AS PersonUUID,
_AssignmentDetailsForKeyDate.CompanyCode AS CompanyCode,
_AssignmentDetailsForKeyDate.Country2DigitISOCode AS WorkAssignmentCountryISOCode,
_BPUsrRole.RoleCategory AS RoleCategory,
case _BPUsrRole.BasicRoleCategory when '' then _BPUsrRole.RoleCategory else _BPUsrRole.BasicRoleCategory end as BasicRoleCategory AS BasicRoleCategoryendasBasicRoleCategory,
_BPUsrRole.BusinessPartnerRole AS BusinessPartnerRole,
cast( '' as bum_wf_employment_situation preserving type ) AS EmploymentSituation,
cast( ' ' as boolean preserving type ) AS BusPartRelshpSupplierIsVisible,
cast ( '' as abap.char(10)) AS BusinessPartnerRelshpSupplier,
cast ( '' as abap.char(100)) AS BusinessPartnerName,
_AssignmentKeyMap.IsBlocked AS IsBlocked,
_WorkAssignmentBP.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
INNER JOIN R_WorkAssignmentBP AS _BuPaIdentification ON /* join condition not captured in parsed metadata */
INNER JOIN R_BPUsrRole AS _BPUsrRole ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_BPUsrRoleText AS _BPUsrRoleText ON _BPUsrRoleText.Role = BasicRoleCategory AND _BPUsrRoleText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _WorkforcePersonBP ON _WorkforcePersonBP.BusinessPartner = _AssignmentKeyMap.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _WorkAssignmentBP ON _WorkAssignmentBP.BusinessPartner = _BuPaIdentification.WorkAssignmentBusinessPartner -- association [1..1]
LEFT OUTER JOIN I_WorkAssignmentDetail_1 AS _AssignmentDetailsForKeyDate ON _AssignmentDetailsForKeyDate.WorkforceAssignment = _AssignmentKeyMap.WorkforceAssignment AND _AssignmentDetailsForKeyDate.WorkforceAssgmtStartDate = _BPUsrRole.BPUsrRoleValidFromDate -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON _CompanyCodeText.CompanyCode = CompanyCode -- association [0..1]
LEFT OUTER JOIN R_WorkAssignmentDetailsTP AS _WorkAssignmentDetails ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN R_WorkAssgmtSrvcCostLvlTP AS _WorkAssgmtSrvcCostLvl ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_BPRltnShipSupplierTP AS _BPRltnShipSupplier ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_WorkAssgmtAltCostAssgmtTP AS _WorkAssgmtAltCostAssgmt ON /* condition not available in parsed metadata */ -- association [0..*]
;
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