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 (P_StRpWhldgTaxItemLog) and exposes 7 fields with key fields CompanyCode, WithholdingTaxType, WithholdingTaxCode.

Data Sources (1)

SourceAliasJoin Type
P_StRpWhldgTaxItemLog P_StRpWhldgTaxItemLog 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 (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY WithholdingTaxType WithholdingTaxType WTax Type
KEY WithholdingTaxCode WithholdingTaxCode WTax Code
BusinessPartner BusinessPartner Issuing Authority
AddressID _Supplier AddressID Ship-to address
AccountingDocument
NumberOfDocuments

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,
  WithholdingTaxType,
  WithholdingTaxCode,
  BusinessPartner,
  _Supplier.AddressID AS AddressID,
  max( all AccountingDocument) AS AccountingDocument,
  count(*) AS NumberOfDocuments
FROM P_StRpWhldgTaxItemLog
;