R_WorkAgreementPaymentMethod
Work Assignment Payment Method
R_WorkAgreementPaymentMethod is a Composite CDS View that provides data about "Work Assignment Payment Method" in SAP S/4HANA. It reads from 3 data sources (I_Supplier_to_BusinessPartner, R_WorkAssignmentBasic, R_WrkAssgmtPaymentMethod) and exposes 9 fields with key fields WorkAssignmentUUID, CompanyCode, PaymentMethod, WorkAssignment. It has 2 associations to related views. Part of development package WFD_WORKER_FACTSHEET_BL.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Supplier_to_BusinessPartner | _SupplierBP | from |
| R_WorkAssignmentBasic | _WorkAssignmentBasic | inner |
| R_WrkAssgmtPaymentMethod | _WrkAssgmtPaymentMethod | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PaymentMethodText | _FinancePaymentMethodText | _FinancePaymentMethodText.Country = $projection.CompanyCodeCountry and _FinancePaymentMethodText.PaymentMethod = $projection.PaymentMethod and _FinancePaymentMethodText.Language = $session.system_language |
| [1..1] | R_WorkforcePersonFactSheet | _WorkforcePerson | $projection.PersonUUID = _WorkforcePerson.PersonUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | R_WRKASSPAYMENT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Work Assignment Payment Method | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | 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 (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkAssignmentUUID | I_Supplier_to_BusinessPartner | BusinessPartnerUUID | |
| KEY | CompanyCode | _CompanyCode | CompanyCode | |
| KEY | PaymentMethod | R_WrkAssgmtPaymentMethod | PaymentMethod | |
| KEY | WorkAssignment | R_WorkAssignmentBasic | WorkAssignment | |
| CompanyCodeCountry | _CompanyCode | Country | ||
| PersonUUID | R_WorkAssignmentBasic | PersonUUID | ||
| _FinancePaymentMethodText | _FinancePaymentMethodText | |||
| _WorkAssignment | _WorkAssignment | |||
| _WorkforcePerson | _WorkforcePerson |
@AbapCatalog.sqlViewName: 'R_WRKASSPAYMENT'
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AbapCatalog.compiler.compareFilter:true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking:#BLOCKED_DATA_EXCLUDED
@EndUserText.label: 'Work Assignment Payment Method'
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #MASTER
}
@Consumption.dbHints:[ 'USE_HEX_PLAN' ]
define view R_WorkAgreementPaymentMethod
as select from I_Supplier_to_BusinessPartner as _SupplierBP
inner join R_WorkAssignmentBasic as _WorkAssignmentBasic on _WorkAssignmentBasic.WorkAssignmentUUID = _SupplierBP.BusinessPartnerUUID
inner join R_WrkAssgmtPaymentMethod as _WrkAssgmtPaymentMethod on _WrkAssgmtPaymentMethod.Supplier = _SupplierBP.Supplier
and _WrkAssgmtPaymentMethod.CompanyCode = _WorkAssignmentBasic.CompanyCode
//Get Company Code Country
left outer to one join I_CompanyCode as _CompanyCode on _CompanyCode.CompanyCode = _WorkAssignmentBasic.CompanyCode
//FI Payment Method Text
association [1..1] to I_PaymentMethodText as _FinancePaymentMethodText on _FinancePaymentMethodText.Country = $projection.CompanyCodeCountry
and _FinancePaymentMethodText.PaymentMethod = $projection.PaymentMethod
and _FinancePaymentMethodText.Language = $session.system_language
//Below associations for handling DCL
association [1..1] to R_WorkforcePersonFactSheet as _WorkforcePerson on $projection.PersonUUID = _WorkforcePerson.PersonUUID
association to parent R_WorkAssignment as _WorkAssignment on $projection.WorkAssignmentUUID = _WorkAssignment.WorkAssignmentUUID
and $projection.WorkAssignment = _WorkAssignment.WorkAssignment
{
key _SupplierBP.BusinessPartnerUUID as WorkAssignmentUUID,
key _CompanyCode.CompanyCode as CompanyCode,
key _WrkAssgmtPaymentMethod.PaymentMethod as PaymentMethod,
key _WorkAssignmentBasic.WorkAssignment as WorkAssignment,
// key _WorkAssignment.WorkAssignment as WorkAssignment,
_CompanyCode.Country as CompanyCodeCountry,
_WorkAssignmentBasic.PersonUUID as PersonUUID,
_FinancePaymentMethodText,
_WorkAssignment,
_WorkforcePerson
}
Learn More
- 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 Annotations — A Complete Guide
- 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