P_TaxBoxStructureValidTo1

DDL: P_TAXBOXSTRUCTUREVALIDTO1 SQL: PTBSVALTO1 Type: view BASIC

P_TaxBoxStructureValidTo1 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (vgtbs, vgtbs) and exposes 4 fields with key fields Country, ValidFrom, TaxBoxStructureType.

Data Sources (2)

SourceAliasJoin Type
vgtbs TaxBoxStructure from
vgtbs TaxBoxStructureValidTo left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PTBSVALTO1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Country vgtbs land1 Trip Ctry/Reg
KEY ValidFrom vgtbs fdate Valid from
KEY TaxBoxStructureType vgtbs tbstype Tax Box Str. Type
ValidTo

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_TaxBoxStructureValidTo1.
-- 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: PTBSVALTO1

CREATE VIEW P_TaxBoxStructureValidTo1 AS
SELECT
  TaxBoxStructure.land1 AS Country,
  TaxBoxStructure.fdate AS ValidFrom,
  TaxBoxStructure.tbstype AS TaxBoxStructureType,
  coalesce(TaxBoxStructureValidTo.fdate,'99991231') AS ValidTo
FROM vgtbs AS TaxBoxStructure
LEFT OUTER JOIN vgtbs AS TaxBoxStructureValidTo ON /* join condition not captured in parsed metadata */
;