P_CompanyCodeDetailsPT

DDL: P_COMPANYCODEDETAILSPT Type: view_entity COMPOSITE

Company Code details PT

P_CompanyCodeDetailsPT is a Composite CDS View that provides data about "Company Code details PT" in SAP S/4HANA. It reads from 2 data sources (I_CompanyCode, t001n) and exposes 7 fields with key fields CompanyCode, Country, Country.

Data Sources (2)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode union
t001n t001n from

Annotations (5)

NameValueLevelField
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Company Code details PT view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode t001n bukrs Value
KEY Country t001n land1 Venue: Ctry/Reg
VATRegistration t001n stceg VAT Registration No.
CompanyCode Value
KEY Country I_CompanyCode Country Venue: Ctry/Reg
VATRegistration I_CompanyCode VATRegistration VAT Registration No.
VATRegistration_wo_prefix

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_CompanyCodeDetailsPT.
-- 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_CompanyCodeDetailsPT AS
SELECT
  t001n.bukrs AS CompanyCode,
  t001n.land1 AS Country,
  t001n.stceg AS VATRegistration,
  substring(I_CompanyCode.VATRegistration, 3, 18) AS VATRegistration_wo_prefix
FROM t001n
-- UNION with additional select branch(es): I_CompanyCode
;