R_ContractAccountPartnerTP

DDL: R_CONTRACTACCOUNTPARTNERTP Type: view_entity TRANSACTIONAL Package: RAP_FICA_CONTRACCT

Contract Account Partner - TP

R_ContractAccountPartnerTP is a Transactional CDS View that provides data about "Contract Account Partner - TP" in SAP S/4HANA. It reads from 1 data source (I_ContractAccountPartner) and exposes 168 fields with key fields ContractAccount, BusinessPartner. It has 17 associations to related views. Part of development package RAP_FICA_CONTRACCT.

Data Sources (1)

SourceAliasJoin Type
I_ContractAccountPartner I_ContractAccountPartner from

Associations (17)

CardinalityTargetAliasCondition
[1..1] I_ContractAccountPartnerUI _ContrAcctPrtnUI $projection.ContractAccount = _ContrAcctPrtnUI.ContractAccount and $projection.BusinessPartner = _ContrAcctPrtnUI.BusinessPartner
[0..1] I_UserContactCard _CreatedByContactCard $projection.CreatedByUser = _CreatedByContactCard.ContactCardID
[0..1] I_UserContactCard _LastChangedByContactCard $projection.LastChangedByUser = _LastChangedByContactCard.ContactCardID
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_CAContractPartnerAddress _Address $projection.BusinessPartner = _Address.BusinessPartner and $projection.AddressID = _Address.AddressNumber
[0..1] I_CAContractPartnerAddress _AlternativePayerAddress $projection.CAAlternativePayer = _AlternativePayerAddress.BusinessPartner and $projection.AddressID = _AlternativePayerAddress.AddressNumber
[0..1] I_CAContractPartnerPaymentCard _PaytCardForIncomingPayment $projection.BusinessPartner = _PaytCardForIncomingPayment.BusinessPartner and $projection.CAPaymentCardIDForIncomingPayt = _PaytCardForIncomingPayment.PaymentCardID
[0..1] I_CAContractPartnerPaymentCard _PaytCardForOutgoingPayment $projection.BusinessPartner = _PaytCardForOutgoingPayment.BusinessPartner and $projection.CAPaymentCardIDForOutgoingPayt = _PaytCardForOutgoingPayment.PaymentCardID
[0..1] I_CAContractPartnerBank _BankForIncomingPayment $projection.BusinessPartner = _BankForIncomingPayment.BusinessPartner and $projection.CABankIDForIncomingPayments = _BankForIncomingPayment.BankIdentification
[0..1] I_CAContractPartnerBank _BankForOutgoingPayment $projection.BusinessPartner = _BankForOutgoingPayment.BusinessPartner and $projection.CABankIDForOutgoingPayments = _BankForOutgoingPayment.BankIdentification
[1..1] I_CADetnCodeForAltvInvcFm _CADetnCodeForAltvInvcFm $projection.CADetnCodeForAltvInvoiceForm = _CADetnCodeForAltvInvcFm.CADetnCodeForAltvInvoiceForm
[1..1] I_CALastDayOfBillingPeriod _CALastDayOfBillingPeriod $projection.CALastDayOfBillingPeriod = _CALastDayOfBillingPeriod.CALastDayOfBillingPeriod
[1..1] E_ContractAccountPartner _Extension $projection.ContractAccount = _Extension.ContractAccount and $projection.BusinessPartner = _Extension.BusinessPartner
[0..*] R_ContrAcctPrtnBusinessLockTP _ContrAcctPrtnBusinessLock
[0..*] R_ContrAcctPrtnCorrespncTP _ContrAcctPrtnCorrespnc
[0..*] R_ConAcctPrtnInvcgChrgDscTP _ContrAcctPrtnInvcgChrgAndDisc

Annotations (16)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Contract Account Partner - TP view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey BusinessPartner view
ObjectModel.sapObjectNodeType.name ContractAccountPartner view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix VKP view
AbapCatalog.extensibility.quota.maximumFields 270 view
AbapCatalog.extensibility.quota.maximumBytes 13400 view
AbapCatalog.extensibility.allowNewCompositions true view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view

Fields (168)

KeyFieldSource TableSource FieldDescription
KEY ContractAccount ContractAccount Contract Acct
KEY BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerForEdit BusinessPartner Issuing Authority
ContractAccountName ContractAccountName Cont. acct name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
ContrAcctPrtnCreationDateTime
CreatedByUser CreatedByUser User Name
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
ContrAcctPrtnLastChgDateTime
LastChangedByUser LastChangedByUser User Name
CABankIDForIncomingPayments CABankIDForIncomingPayments Bank Det. Inc.
CABankIDForOutgoingPayments CABankIDForOutgoingPayments Bank ID - Outg.
CAIncomingPaymentMethod CAIncomingPaymentMethod Inc.Payt Method
CACnctntdOutgPaymentMethods CACnctntdOutgPaymentMethods Outg.Payt Meth.
CAFirstOutgoingPaymentMethod CAFirstOutgoingPaymentMethod
CASecondOutgoingPaymentMethod CASecondOutgoingPaymentMethod
CAThirdOutgoingPaymentMethod CAThirdOutgoingPaymentMethod
CAFourthOutgoingPaymentMethod CAFourthOutgoingPaymentMethod
CAFifthOutgoingPaymentMethod CAFifthOutgoingPaymentMethod
CAHouseBankReference CAHouseBankReference Own Bank Dtls
CAPaymentCardIDForIncomingPayt CAPaymentCardIDForIncomingPayt CardID Incoming
CAPaymentCardIDForOutgoingPayt CAPaymentCardIDForOutgoingPayt CardID Outgoing
SEPAMandate SEPAMandate SEPA Mandate
CADunningProcedure CADunningProcedure Dunning Proc.
CADunningNoticeGroup CADunningNoticeGroup Grouping
CACorrespondenceDunningProced CACorrespondenceDunningProced CorrDunnProced.
CACollectionsClerk CACollectionsClerk Clerk Respons.
CACollectionsMasterDataGroup CACollectionsMasterDataGroup Master Data Grp
CACollectionStrategy CACollectionStrategy Coll. Strategy
CACollectionsContactPerson CACollectionsContactPerson Contact Person
ContractAccountForPayment ContractAccountForPayment Paid By
CABusinessPartnerForPayment CABusinessPartnerForPayment Payer/Payee
CAAlternativePayer CAAlternativePayer Alternate Payer
CAAlternativePayee CAAlternativePayee Alt. Payee
CAAlternativeDunningRecipient CAAlternativeDunningRecipient Alt.dun. recip.
CAAlternativeInvoiceRecipient CAAlternativeInvoiceRecipient Alt. bill rec.
CAAlternativeCorrespncRcpnt CAAlternativeCorrespncRcpnt Corresp. Recip.
CAAddressIDOfAlternativePayer CAAddressIDOfAlternativePayer Alt.Payer AddNo
CAAddressIDOfAlternativePayee CAAddressIDOfAlternativePayee Alt.Payee AddNo
CAAddressIDOfAltvDunRecipient CAAddressIDOfAltvDunRecipient Address number for alternative dunning notice recipient
CAAddressIDOfAltvInvoiceRcpnt CAAddressIDOfAltvInvoiceRcpnt Address number for alternative bill recipient
CACurrencyForDirectDebitLimit CACurrencyForDirectDebitLimit Currency
CADirectDebitLimit CADirectDebitLimit Dir. Debit Lmt
CANmbrMnthsForDirectDebitLimit CANmbrMnthsForDirectDebitLimit No. of Months
CADirectDebitLimitCalcMode CADirectDebitLimitCalcMode Rolling
ContrAcctPrtnHasInvcgChrgDsc ContrAcctPrtnHasInvcgChrgDsc Charges/Disc.
CATargetCurrencyForInvoicing CATargetCurrencyForInvoicing Target Currency
CAInvcgCategory CAInvcgCategory Invoicing Cat.
CAInvcgSchedule CAInvcgSchedule Scheduling
CABillgCycle CABillgCycle Billing Cycle
CALastDayOfBillingPeriod CALastDayOfBillingPeriod Last Day
CADetnCodeForAltvInvoiceForm CADetnCodeForAltvInvoiceForm Form Determin.
CABusinessPartnerForPosting CABusinessPartnerForPosting Post Partner
ContractAccountForPosting ContractAccountForPosting Contract Acct
CABusinessPartnerForInvcgList CABusinessPartnerForInvcgList Recipient
ContractAccountForInvcgList ContractAccountForInvcgList Contract Acct
CAMasterAgreement CAMasterAgreement Master Agrmt
CAPartnerSettlementRule CAPartnerSettlementRule Settlement Rule
ValdtyDateForWhldgTaxExmpCert ValdtyDateForWhldgTaxExmpCert Valid Until
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
OutgPaytWithholdingTaxCode OutgPaytWithholdingTaxCode W/Htax o.payts
IncgPaytWithholdingTaxCode IncgPaytWithholdingTaxCode W/Htax i.payts
WithholdingTaxCertificate WithholdingTaxCertificate WHT Certificate
CAAdditionalDaysForCashMgmt CAAdditionalDaysForCashMgmt CM Extra Days
CABusPartnerPostgLockExstcCode CABusPartnerPostgLockExstcCode BP Lock
CABusPartnerAddlLockExstcCode CABusPartnerAddlLockExstcCode Dun./Payt Lock
CABusinessPartnerLockStartDate CABusinessPartnerLockStartDate From
CABusinessPartnerLockEndDate CABusinessPartnerLockEndDate To
CABPReferenceNumber CABPReferenceNumber Reference No.
CACompanyCodeGroup CACompanyCodeGroup Company Code Gp
AltvContractAcctForCollvBills AltvContractAcctForCollvBills Coll. Bill Acct
CAInterestCode CAInterestCode Interest key
CashPlanningGroup CashPlanningGroup Planning Group
CARelationshipOfBPToContrAcct CARelationshipOfBPToContrAcct Acct.Relation.
AddressID AddressID Ship-to address
CAAddressIDOfJurisdictionCode CAAddressIDOfJurisdictionCode JurisdicCode address
CAAuthorizationGroup CAAuthorizationGroup AuthorizGroup
CAToleranceGroup CAToleranceGroup Tolerance group
CACorrespondenceVariant CACorrespondenceVariant Corresp.Variant
PartnerCompany PartnerCompany Trading Partner
CACorrespondenceActivityCode CACorrespondenceActivityCode Activity
CAClearingCategory CAClearingCategory Clearing Cat.
CADefaultClearingRstrcnCode CADefaultClearingRstrcnCode Restriction
SupplyingCountry SupplyingCountry Supplying Ctry/Reg.
BusinessPlace BusinessPlace Business place
CASubledgerApplication CASubledgerApplication Subledger App
PaymentCondition PaymentCondition Payment Terms
CAAccountDeterminationCode CAAccountDeterminationCode Acct Determ. ID
BusinessArea BusinessArea Business Area
CAPaymentCompanyCode CAPaymentCompanyCode Paying Co. Code
Country Country Venue: Ctry/Reg
_ContractAccount _ContractAccount
_ContrAcctPrtnBusinessLock _ContrAcctPrtnBusinessLock
_ContrAcctPrtnCorrespnc _ContrAcctPrtnCorrespnc
_ContrAcctPrtnInvcgChrgAndDisc _ContrAcctPrtnInvcgChrgAndDisc
_ContrAcctPrtnUI _ContrAcctPrtnUI
_Address _Address
_AcctDetnCode _AcctDetnCode
_AlternativePayee _AlternativePayee
_AlternativePayer _AlternativePayer
_AlternativePayerAddress _AlternativePayerAddress
_AltvContrAcc _AltvContrAcc
_AltvCorrespncRcpnt _AltvCorrespncRcpnt
_AltvDunningRecipient _AltvDunningRecipient
_AltvInvoiceRecipient _AltvInvoiceRecipient
_BankForIncomingPayment _BankForIncomingPayment
_BankForOutgoingPayment _BankForOutgoingPayment
_BillgCycle _BillgCycle
_BPForInvcgList _BPForInvcgList
_BPForPayment _BPForPayment
_BPForPosting _BPForPosting
_BusinessArea _BusinessArea
_BusinessPartner _BusinessPartner
_BusinessPlace _BusinessPlace
_CAAuthorizationGroup _CAAuthorizationGroup
_CABusPrtnAddlLockExstcCode _CABusPrtnAddlLockExstcCode
_CABusPrtnPostgLockExstcCode _CABusPrtnPostgLockExstcCode
_CACorrespncActivityCode _CACorrespncActivityCode
_CADetnCodeForAltvInvcFm _CADetnCodeForAltvInvcFm
_CADfltClearingRstrcnCode _CADfltClearingRstrcnCode
_CADirectDebitLimitCalcMod _CADirectDebitLimitCalcMod
_CAFifthOutgoingPaymentMethod _CAFifthOutgoingPaymentMethod
_CAFirstOutgoingPaymentMethod _CAFirstOutgoingPaymentMethod
_CAFourthOutgoingPaymentMethod _CAFourthOutgoingPaymentMethod
_CAIncomingPaymentMethod _CAIncomingPaymentMethod
_CALastDayOfBillingPeriod _CALastDayOfBillingPeriod
_CAPartnerSettlementRule _CAPartnerSettlementRule
_CASecondOutgoingPaymentMethod _CASecondOutgoingPaymentMethod
_CashPlanningGroup _CashPlanningGroup
_CASubledgerApplication _CASubledgerApplication
_CAThirdOutgoingPaymentMethod _CAThirdOutgoingPaymentMethod
_ClearingCategory _ClearingCategory
_CollContactPerson _CollContactPerson
_CollectionsClerk _CollectionsClerk
_CollectionStrategy _CollectionStrategy
_CollMasterDataGroup _CollMasterDataGroup
_CompCode _CompCode
_CompCodeGroup _CompCodeGroup
_ContrAcctForInvcgList _ContrAcctForInvcgList
_ContrAcctForPayt _ContrAcctForPayt
_ContrAcctForPosting _ContrAcctForPosting
_CorrespncVar _CorrespncVar
_Country _Country
_CreatedByContactCard _CreatedByContactCard
_CreatedByUser _CreatedByUser
_CurrencyForDDL _CurrencyForDDL
_CurrencyForInvoicing _CurrencyForInvoicing
_DunningProcedure _DunningProcedure
_CorrespncDunningProcedure _CorrespncDunningProcedure
_DunNoticeGroup _DunNoticeGroup
_HouseBankRef _HouseBankRef
_InterestCode _InterestCode
_InvcgCategory _InvcgCategory
_InvcgSchedule _InvcgSchedule
_LastChangedByUser _LastChangedByUser
_LastChangedByContactCard _LastChangedByContactCard
_MasterAgreement _MasterAgreement
_PartnerCompany _PartnerCompany
_PaytCardForIncomingPayment _PaytCardForIncomingPayment
_PaytCardForOutgoingPayment _PaytCardForOutgoingPayment
_PaymentCompCode _PaymentCompCode
_PaymentCondition _PaymentCondition
_RelshpOfBP _RelshpOfBP
_SupplyingCountry _SupplyingCountry
_ToleranceGroup _ToleranceGroup

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_ContractAccountPartnerTP.
-- 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_ContractAccountPartnerTP AS
SELECT
  ContractAccount,
  BusinessPartner,
  BusinessPartner AS BusinessPartnerForEdit,
  ContractAccountName,
  CreationDate,
  CreationTime,
  cast( dats_tims_to_tstmp( CreationDate, CreationTime, 'UTC', $session.client, 'NULL' ) as vdm_creationdatetime) AS ContrAcctPrtnCreationDateTime,
  CreatedByUser,
  IsMarkedForDeletion,
  LastChangeDate,
  LastChangeTime,
  cast( dats_tims_to_tstmp( LastChangeDate, LastChangeTime, 'UTC', $session.client, 'NULL' ) as vdm_lastchangedon) AS ContrAcctPrtnLastChgDateTime,
  LastChangedByUser,
  CABankIDForIncomingPayments,
  CABankIDForOutgoingPayments,
  CAIncomingPaymentMethod,
  CACnctntdOutgPaymentMethods,
  CAFirstOutgoingPaymentMethod,
  CASecondOutgoingPaymentMethod,
  CAThirdOutgoingPaymentMethod,
  CAFourthOutgoingPaymentMethod,
  CAFifthOutgoingPaymentMethod,
  CAHouseBankReference,
  CAPaymentCardIDForIncomingPayt,
  CAPaymentCardIDForOutgoingPayt,
  SEPAMandate,
  CADunningProcedure,
  CADunningNoticeGroup,
  CACorrespondenceDunningProced,
  CACollectionsClerk,
  CACollectionsMasterDataGroup,
  CACollectionStrategy,
  CACollectionsContactPerson,
  ContractAccountForPayment,
  CABusinessPartnerForPayment,
  CAAlternativePayer,
  CAAlternativePayee,
  CAAlternativeDunningRecipient,
  CAAlternativeInvoiceRecipient,
  CAAlternativeCorrespncRcpnt,
  CAAddressIDOfAlternativePayer,
  CAAddressIDOfAlternativePayee,
  CAAddressIDOfAltvDunRecipient,
  CAAddressIDOfAltvInvoiceRcpnt,
  CACurrencyForDirectDebitLimit,
  CADirectDebitLimit,
  CANmbrMnthsForDirectDebitLimit,
  CADirectDebitLimitCalcMode,
  ContrAcctPrtnHasInvcgChrgDsc,
  CATargetCurrencyForInvoicing,
  CAInvcgCategory,
  CAInvcgSchedule,
  CABillgCycle,
  CALastDayOfBillingPeriod,
  CADetnCodeForAltvInvoiceForm,
  CABusinessPartnerForPosting,
  ContractAccountForPosting,
  CABusinessPartnerForInvcgList,
  ContractAccountForInvcgList,
  CAMasterAgreement,
  CAPartnerSettlementRule,
  ValdtyDateForWhldgTaxExmpCert,
  TaxJurisdiction,
  OutgPaytWithholdingTaxCode,
  IncgPaytWithholdingTaxCode,
  WithholdingTaxCertificate,
  CAAdditionalDaysForCashMgmt,
  CABusPartnerPostgLockExstcCode,
  CABusPartnerAddlLockExstcCode,
  CABusinessPartnerLockStartDate,
  CABusinessPartnerLockEndDate,
  CABPReferenceNumber,
  CACompanyCodeGroup,
  AltvContractAcctForCollvBills,
  CAInterestCode,
  CashPlanningGroup,
  CARelationshipOfBPToContrAcct,
  AddressID,
  CAAddressIDOfJurisdictionCode,
  CAAuthorizationGroup,
  CAToleranceGroup,
  CACorrespondenceVariant,
  PartnerCompany,
  CACorrespondenceActivityCode,
  CAClearingCategory,
  CADefaultClearingRstrcnCode,
  SupplyingCountry,
  BusinessPlace,
  CASubledgerApplication,
  PaymentCondition,
  CAAccountDeterminationCode,
  BusinessArea,
  CAPaymentCompanyCode,
  Country
FROM I_ContractAccountPartner
LEFT OUTER JOIN I_ContractAccountPartnerUI AS _ContrAcctPrtnUI ON ContractAccount = _ContrAcctPrtnUI.ContractAccount AND BusinessPartner = _ContrAcctPrtnUI.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByContactCard ON CreatedByUser = _CreatedByContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByContactCard ON LastChangedByUser = _LastChangedByContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerAddress AS _Address ON BusinessPartner = _Address.BusinessPartner AND AddressID = _Address.AddressNumber  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerAddress AS _AlternativePayerAddress ON CAAlternativePayer = _AlternativePayerAddress.BusinessPartner AND AddressID = _AlternativePayerAddress.AddressNumber  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerPaymentCard AS _PaytCardForIncomingPayment ON BusinessPartner = _PaytCardForIncomingPayment.BusinessPartner AND CAPaymentCardIDForIncomingPayt = _PaytCardForIncomingPayment.PaymentCardID  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerPaymentCard AS _PaytCardForOutgoingPayment ON BusinessPartner = _PaytCardForOutgoingPayment.BusinessPartner AND CAPaymentCardIDForOutgoingPayt = _PaytCardForOutgoingPayment.PaymentCardID  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerBank AS _BankForIncomingPayment ON BusinessPartner = _BankForIncomingPayment.BusinessPartner AND CABankIDForIncomingPayments = _BankForIncomingPayment.BankIdentification  -- association [0..1]
LEFT OUTER JOIN I_CAContractPartnerBank AS _BankForOutgoingPayment ON BusinessPartner = _BankForOutgoingPayment.BusinessPartner AND CABankIDForOutgoingPayments = _BankForOutgoingPayment.BankIdentification  -- association [0..1]
LEFT OUTER JOIN I_CADetnCodeForAltvInvcFm AS _CADetnCodeForAltvInvcFm ON CADetnCodeForAltvInvoiceForm = _CADetnCodeForAltvInvcFm.CADetnCodeForAltvInvoiceForm  -- association [1..1]
LEFT OUTER JOIN I_CALastDayOfBillingPeriod AS _CALastDayOfBillingPeriod ON CALastDayOfBillingPeriod = _CALastDayOfBillingPeriod.CALastDayOfBillingPeriod  -- association [1..1]
LEFT OUTER JOIN E_ContractAccountPartner AS _Extension ON ContractAccount = _Extension.ContractAccount AND BusinessPartner = _Extension.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN R_ContrAcctPrtnBusinessLockTP AS _ContrAcctPrtnBusinessLock ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_ContrAcctPrtnCorrespncTP AS _ContrAcctPrtnCorrespnc ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_ConAcctPrtnInvcgChrgDscTP AS _ContrAcctPrtnInvcgChrgAndDisc ON /* condition not available in parsed metadata */  -- association [0..*]
;