P_JP_LastVndrPaytInfo

DDL: P_JP_LASTVNDRPAYTINFO Type: view_entity COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_StRpWhldgTaxItem I_StRpWhldgTaxItem from

Parameters (2)

NameTypeDefault
P_StartDate datum
P_EndDate datum

Annotations (4)

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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY WithholdingTaxType WithholdingTaxType WTax Type
KEY WithholdingTaxCode WithholdingTaxCode WTax Code
BusinessPartner BusinessPartner Issuing Authority
AccountingDocument

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_JP_LastVndrPaytInfo.
-- 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.
-- Parameters: P_StartDate : datum, P_EndDate : datum

CREATE VIEW P_JP_LastVndrPaytInfo AS
SELECT
  CompanyCode,
  FiscalYear,
  WithholdingTaxType,
  WithholdingTaxCode,
  BusinessPartner,
  max( all AccountingDocument) AS AccountingDocument
FROM I_StRpWhldgTaxItem
;