P_TH_CreditMemo

DDL: P_TH_CREDITMEMO Type: view_entity COMPOSITE

P_TH_CreditMemo is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, I_Withholdingtaxitem) and exposes 7 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_OperationalAcctgDocItem doc from
I_Withholdingtaxitem wht inner

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode Receiver Company Code
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument Journal Entry
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear G/L Fiscal Year
InvoiceReference I_OperationalAcctgDocItem InvoiceReference Invoice Reference
CompanyCodeCurrency I_OperationalAcctgDocItem CompanyCodeCurrency Local Currency
WhldgTaxAmtInCoCodeCrcy I_Withholdingtaxitem WhldgTaxAmtInCoCodeCrcy WTax Amt in LC
WhldgTaxBaseAmtInCoCodeCrcy I_Withholdingtaxitem WhldgTaxBaseAmtInCoCodeCrcy W/Tax Base LC

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_TH_CreditMemo.
-- 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 P_TH_CreditMemo AS
SELECT
  doc.CompanyCode AS CompanyCode,
  doc.AccountingDocument AS AccountingDocument,
  doc.FiscalYear AS FiscalYear,
  doc.InvoiceReference AS InvoiceReference,
  doc.CompanyCodeCurrency AS CompanyCodeCurrency,
  wht.WhldgTaxAmtInCoCodeCrcy AS WhldgTaxAmtInCoCodeCrcy,
  wht.WhldgTaxBaseAmtInCoCodeCrcy AS WhldgTaxBaseAmtInCoCodeCrcy
FROM I_OperationalAcctgDocItem AS doc
INNER JOIN I_Withholdingtaxitem AS wht ON /* join condition not captured in parsed metadata */
;