R_WrkAssignmentBankAccountTP_2

DDL: R_WRKASSIGNMENTBANKACCOUNTTP_2 Type: view_entity TRANSACTIONAL Package: ODATA_CA_BUM_WF

TP View for Bank Accounts for Workforce Person

R_WrkAssignmentBankAccountTP_2 is a Transactional CDS View that provides data about "TP View for Bank Accounts for Workforce Person" in SAP S/4HANA. It reads from 2 data sources (R_WorkAssignmentBP, I_BusinessPartnerBank_2) and exposes 20 fields with key fields WorkAssignmentBusinessPartner, BankIdentification. It has 2 associations to related views. Part of development package ODATA_CA_BUM_WF.

Data Sources (2)

SourceAliasJoin Type
R_WorkAssignmentBP _BuPaIdentification inner
I_BusinessPartnerBank_2 _BusinessPartnerBank from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CountryText _CountryText $projection.BankCountryKey = _CountryText.Country and _CountryText.Language = $session.system_language
[1..1] R_WorkforcePersonTP_2 _WorkforcePerson $projection.BusinessPartner = _WorkforcePerson.BusinessPartner

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label TP View for Bank Accounts for Workforce Person 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 #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY WorkAssignmentBusinessPartner I_BusinessPartnerBank_2 BusinessPartner Issuing Authority
KEY BankIdentification I_BusinessPartnerBank_2 BankIdentification Bank Details
WorkforceAssignment R_WorkAssignmentBP WorkforceAssignment WorkForce Assgmt ID
BankAccountHolderName I_BusinessPartnerBank_2 BankAccountHolderName Account Holder
BankAccountName I_BusinessPartnerBank_2 BankAccountName Account Name
BankControlKey I_BusinessPartnerBank_2 BankControlKey Control Key
BankCountryKey I_BusinessPartnerBank_2 BankCountryKey Bank Ctry/Reg.
Bank I_BusinessPartnerBank_2 BankNumber Bank Key
BankName I_BusinessPartnerBank_2 BankName Bank Name
BankAccount I_BusinessPartnerBank_2 BankAccount Bank acct
IBAN I_BusinessPartnerBank_2 IBAN IBAN House Bank
SWIFTCode I_BusinessPartnerBank_2 SWIFTCode SWIFT/BIC
datsendasValidityStartDate
datsendasValidityEndDate
BankReference
BusinessPartner R_WorkAssignmentBP BusinessPartner Issuing Authority
BPBankIsProtected I_BusinessPartnerBank_2 BPBankIsProtected Sensitivity
_WorkAssignment _WorkAssignment
_WorkforcePerson _WorkforcePerson
_CountryText _CountryText

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_WrkAssignmentBankAccountTP_2.
-- 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_WrkAssignmentBankAccountTP_2 AS
SELECT
  _BusinessPartnerBank.BusinessPartner AS WorkAssignmentBusinessPartner,
  _BusinessPartnerBank.BankIdentification AS BankIdentification,
  _BuPaIdentification.WorkforceAssignment AS WorkforceAssignment,
  _BusinessPartnerBank.BankAccountHolderName AS BankAccountHolderName,
  _BusinessPartnerBank.BankAccountName AS BankAccountName,
  _BusinessPartnerBank.BankControlKey AS BankControlKey,
  _BusinessPartnerBank.BankCountryKey AS BankCountryKey,
  _BusinessPartnerBank.BankNumber AS Bank,
  _BusinessPartnerBank.BankName AS BankName,
  _BusinessPartnerBank.BankAccount AS BankAccount,
  _BusinessPartnerBank.IBAN AS IBAN,
  _BusinessPartnerBank.SWIFTCode AS SWIFTCode,
  case when _BusinessPartnerBank.ValidityStartDate != 00010101000000 then tstmp_to_dats(_BusinessPartnerBank.ValidityStartDate,'UTC', $session.client, 'NULL') else cast ( '00010101' as abap.dats ) end as ValidityStartDate AS datsendasValidityStartDate,
  case when _BusinessPartnerBank.ValidityEndDate != 00010101000000 then tstmp_to_dats(_BusinessPartnerBank.ValidityEndDate,'UTC', $session.client, 'NULL') else cast ( '99991231' as abap.dats) end as ValidityEndDate AS datsendasValidityEndDate,
  cast(_BusinessPartnerBank.BankAccountReferenceText as refbk) AS BankReference,
  _BuPaIdentification.BusinessPartner AS BusinessPartner,
  _BusinessPartnerBank.BPBankIsProtected AS BPBankIsProtected
FROM I_BusinessPartnerBank_2 AS _BusinessPartnerBank
INNER JOIN R_WorkAssignmentBP AS _BuPaIdentification ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CountryText AS _CountryText ON BankCountryKey = _CountryText.Country AND _CountryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN R_WorkforcePersonTP_2 AS _WorkforcePerson ON BusinessPartner = _WorkforcePerson.BusinessPartner  -- association [1..1]
;