P_CountCountry

DDL: P_COUNTCOUNTRY SQL: PCOUNTCNTRY Type: view COMPOSITE

P_CountCountry is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_StRpTaxReturn) and exposes 6 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
P_StRpTaxReturn P_StRpTaxReturn from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCOUNTCNTRY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
Country Country Venue: Ctry/Reg
ReportingDate ReportingDate
NmbrOfChmlCmplncMktCountries

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_CountCountry.
-- 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.
-- SQL view name: PCOUNTCNTRY

CREATE VIEW P_CountCountry AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  Country,
  ReportingDate,
  count(*) AS NmbrOfChmlCmplncMktCountries
FROM P_StRpTaxReturn
;