P_AR_BPRelationshipRole

DDL: P_AR_BPRELATIONSHIPROLE Type: view_entity COMPOSITE

P_AR_BPRelationshipRole is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 19 fields with key fields CompanyCode, OffsettingAccountType, OffsettingAccount, OffsettingAccountType, OffsettingAccount.

Data Sources (6)

SourceAliasJoin Type
I_CompanyCode CompanyCode from
I_CompanyCode CompanyCode union_all
I_Customer Customer inner
I_CustomerCompany CustomerCompany inner
I_Supplier Supplier inner
I_SupplierCompany SupplierCompany inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CompanyCode CompanyCode Receiver Company Code
KEY OffsettingAccountType
KEY OffsettingAccount
BusinessPartnerFullName I_Customer BPCustomerFullName
TaxNumberType
TaxNumber1 I_Customer TaxNumber1 VAT Reg. No.
IsOneTimeAccount I_Customer IsOneTimeAccount One-time acct
AuthorizationGroup I_Customer AuthorizationGroup AuthorizGroup
ReferenceAccountGroup
CompanyCode Receiver Company Code
KEY OffsettingAccountType
KEY OffsettingAccount
BusinessPartnerFullName I_Supplier BPSupplierFullName
TaxNumberType
TaxNumber1 I_Supplier TaxNumber1 VAT Reg. No.
IsOneTimeAccount I_Supplier IsOneTimeAccount One-time acct
AuthorizationGroup I_Supplier AuthorizationGroup AuthorizGroup
ReferenceAccountGroup
CoCodeSpcfcAuthorizationGroup I_SupplierCompany AuthorizationGroup AuthorizGroup

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 P_AR_BPRelationshipRole.
-- 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 P_AR_BPRelationshipRole AS
SELECT
  CompanyCode.CompanyCode AS CompanyCode,
  cast( 'D' as fis_gkoar preserving type ) AS OffsettingAccountType,
  cast( CustomerCompany.Customer as fis_gkont preserving type ) AS OffsettingAccount,
  Customer.BPCustomerFullName AS BusinessPartnerFullName,
  cast( Customer.TaxNumberType as j_1atoid preserving type ) AS TaxNumberType,
  Customer.TaxNumber1 AS TaxNumber1,
  Customer.IsOneTimeAccount AS IsOneTimeAccount,
  Customer.AuthorizationGroup AS AuthorizationGroup,
  cast( Customer.CustomerAccountGroup as ktokd preserving type ) AS ReferenceAccountGroup,
  SupplierCompany.AuthorizationGroup AS CoCodeSpcfcAuthorizationGroup
FROM I_CompanyCode AS CompanyCode
INNER JOIN I_CustomerCompany AS CustomerCompany ON /* join condition not captured in parsed metadata */
INNER JOIN I_Customer AS Customer ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierCompany AS SupplierCompany ON /* join condition not captured in parsed metadata */
INNER JOIN I_Supplier AS Supplier ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_CompanyCode
;