P_CompanyCodeDetailsBE

DDL: P_COMPANYCODEDETAILSBE Type: view_entity CONSUMPTION

P_CompanyCodeDetailsBE is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CompanyCode, I_CompanyTaxDetail) and exposes 5 fields with key fields CompanyCode, Country, Country.

Data Sources (2)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode union
I_CompanyTaxDetail I_CompanyTaxDetail from

Annotations (4)

NameValueLevelField
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CompanyTaxDetail CompanyCode Receiver Company Code
KEY Country I_CompanyTaxDetail Country Venue: Ctry/Reg
CompanyCode Receiver Company Code
KEY Country I_CompanyCode Country Venue: Ctry/Reg
VATRegistration I_CompanyCode VATRegistration VAT Registration No.

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_CompanyCodeDetailsBE.
-- 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_CompanyCodeDetailsBE AS
SELECT
  I_CompanyTaxDetail.CompanyCode AS CompanyCode,
  I_CompanyTaxDetail.Country AS Country,
  I_CompanyCode.VATRegistration AS VATRegistration
FROM I_CompanyTaxDetail
-- UNION with additional select branch(es): I_CompanyCode
;