P_KZ_VATCDECLOGRUN

DDL: P_KZ_VATCDECLOGRUN SQL: PKZVATCDECLOGRUN Type: view COMPOSITE Package: GLO_FIN_IS_VAT_KZ_RETURN

submitted custom declarations

P_KZ_VATCDECLOGRUN is a Composite CDS View that provides data about "submitted custom declarations" in SAP S/4HANA. It reads from 2 data sources (I_KZ_VATCstmDeclnItemLog, I_StRpRepRun) and exposes 10 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, FiscalYear. Part of development package GLO_FIN_IS_VAT_KZ_RETURN.

Data Sources (2)

SourceAliasJoin Type
I_KZ_VATCstmDeclnItemLog Log from
I_StRpRepRun ReportRuns inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PKZVATCDECLOGRUN view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity I_KZ_VATCstmDeclnItemLog StatryRptgEntity Reporting Entity
KEY StatryRptCategory I_KZ_VATCstmDeclnItemLog StatryRptCategory Report ID
KEY StatryRptRunID I_KZ_VATCstmDeclnItemLog StatryRptRunID Report Run ID
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY PostingFiscalPeriod PostingFiscalPeriod Period
KEY CustomsDeclaration CustomsDeclaration Cus. Decl. No.
KEY KZ_VATReturnSection KZ_VATReturnSection VAT Return Section
KEY KZ_VATLineItem KZ_VATLineItem VAT Return Line Item
StatryRptRunStatus I_StRpRepRun StatryRptRunStatus Report Run Status

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_KZ_VATCDECLOGRUN.
-- 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: PKZVATCDECLOGRUN

CREATE VIEW P_KZ_VATCDECLOGRUN AS
SELECT
  Log.StatryRptgEntity AS StatryRptgEntity,
  Log.StatryRptCategory AS StatryRptCategory,
  Log.StatryRptRunID AS StatryRptRunID,
  CompanyCode,
  FiscalYear,
  PostingFiscalPeriod,
  CustomsDeclaration,
  KZ_VATReturnSection,
  KZ_VATLineItem,
  ReportRuns.StatryRptRunStatus AS StatryRptRunStatus
FROM I_KZ_VATCstmDeclnItemLog AS Log
INNER JOIN I_StRpRepRun AS ReportRuns ON /* join condition not captured in parsed metadata */
;