I_PE_StRpCrdMmWhldgTxItmC

DDL: I_PE_STRPCRDMMWHLDGTXITMC Type: view_entity COMPOSITE

Peru Credit Memo - Cube

I_PE_StRpCrdMmWhldgTxItmC is a Composite CDS View (Cube) that provides data about "Peru Credit Memo - Cube" in SAP S/4HANA. It reads from 1 data source (P_StRpWhldgTaxItem) and exposes 12 fields with key fields CompanyCode, InvoiceReferenceFiscalYear, InvoiceReference, WithholdingTaxType, WithholdingTaxCode.

Data Sources (1)

SourceAliasJoin Type
P_StRpWhldgTaxItem doc from

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
EndUserText.label Peru Credit Memo - Cube view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_StRpWhldgTaxItem CompanyCode Receiver Company Code
KEY InvoiceReferenceFiscalYear P_StRpWhldgTaxItem InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
KEY InvoiceReference P_StRpWhldgTaxItem InvoiceReference Invoice Reference
KEY WithholdingTaxType P_StRpWhldgTaxItem WithholdingTaxType WTax Type
KEY WithholdingTaxCode P_StRpWhldgTaxItem WithholdingTaxCode WTax Code
ReportingCurrency P_StRpWhldgTaxItem ReportingCurrency Currency
TransactionCurrency P_StRpWhldgTaxItem TransactionCurrency Transaction Currency
WhldgTaxAmtInCoCodeCrcy
WhldgTaxBaseAmtInCoCodeCrcy
WhldgTaxAmtInTransacCrcy
WhldgTaxBaseAmtInTransacCrcy
_CompanyCode P_StRpWhldgTaxItem _CompanyCode

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 I_PE_StRpCrdMmWhldgTxItmC.
-- 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.

CREATE VIEW I_PE_StRpCrdMmWhldgTxItmC AS
SELECT
  doc.CompanyCode AS CompanyCode,
  doc.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  doc.InvoiceReference AS InvoiceReference,
  doc.WithholdingTaxType AS WithholdingTaxType,
  doc.WithholdingTaxCode AS WithholdingTaxCode,
  doc.ReportingCurrency AS ReportingCurrency,
  doc.TransactionCurrency AS TransactionCurrency,
  sum(doc.WhldgTaxAmtInCoCodeCrcy) AS WhldgTaxAmtInCoCodeCrcy,
  sum(doc.WhldgTaxBaseAmtInCoCodeCrcy) AS WhldgTaxBaseAmtInCoCodeCrcy,
  sum(doc.WhldgTaxAmtInTransacCrcy) AS WhldgTaxAmtInTransacCrcy,
  sum(doc.WhldgTaxBaseAmtInTransacCrcy) AS WhldgTaxBaseAmtInTransacCrcy,
  doc._CompanyCode AS _CompanyCode
FROM P_StRpWhldgTaxItem AS doc
;