P_PT_DOCItemAnnexOPUnion

DDL: P_PT_DOCITEMANNEXOPUNION Type: view_entity CONSUMPTION

FI and FICA tax items union for Annex O

P_PT_DOCItemAnnexOPUnion is a Consumption CDS View that provides data about "FI and FICA tax items union for Annex O" in SAP S/4HANA. It reads from 2 data sources (P_PT_CAPrepForUnion, P_PT_FITaxItmPrepForAnexoUnion) and exposes 60 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem, StatryRptgEntity.

Data Sources (2)

SourceAliasJoin Type
P_PT_CAPrepForUnion P_PT_CAPrepForUnion union_all
P_PT_FITaxItmPrepForAnexoUnion P_PT_FITaxItmPrepForAnexoUnion from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label FI and FICA tax items union for Annex O view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY CADocumentNumber Document Number
KEY CARepetitionItemNumber Repetition Item
KEY CABPItemNumber Item
KEY CASubItemNumber Subitem
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
Customer Customer Sold-to Party
Supplier Supplier Supplier
BusinessPartner _BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName _BusinessPartner BusinessPartnerName Extracted Customer Name
DebitCreditCode DebitCreditCode Single-Character Flag
AccountingDocumentType AccountingDocumentType Journal Entry Type
CADocumentType Document Type
WithholdingTaxAmount WithholdingTaxAmount Withholding Tax Amt
CashDiscountAmtInCoCodeCrcy CashDiscountAmtInCoCodeCrcy Discount Amt
CashDiscountAmount CashDiscountAmount CD Amount
TransactionCurrency TransactionCurrency Transaction Currency
IsSalesRelated IsSalesRelated Is Sales Related
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
FinancialAccountType FinancialAccountType Fin. Account Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInReportingCurrency AmountInReportingCurrency
ReportingVATRegistration ReportingVATRegistration Reporting VAT Number
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY CADocumentNumber CADocumentNumber Document Number
KEY CARepetitionItemNumber CARepetitionItemNumber Repetition Item
KEY CABPItemNumber CABPItemNumber Item
KEY CASubItemNumber CASubItemNumber Subitem
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
Customer Customer Sold-to Party
Supplier Supplier Supplier
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
DebitCreditCode DebitCreditCode Single-Character Flag
AccountingDocumentType AccountingDocumentType Journal Entry Type
CADocumentType CADocumentType Document Type
WithholdingTaxAmount WithholdingTaxAmount Withholding Tax Amt
CashDiscountAmtInCoCodeCrcy CashDiscountAmtInCoCodeCrcy Discount Amt
CashDiscountAmount CashDiscountAmount CD Amount
TransactionCurrency TransactionCurrency Transaction Currency
IsSalesRelated IsSalesRelated Is Sales Related
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
FinancialAccountType FinancialAccountType Fin. Account Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInReportingCurrency AmountInReportingCurrency
ReportingVATRegistration ReportingVATRegistration Reporting VAT Number
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.

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_PT_DOCItemAnnexOPUnion.
-- 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_PT_DOCItemAnnexOPUnion AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  AccountingDocumentItem,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  cast('' as opbel_kk) AS CADocumentNumber,
  cast('000' as opupw_kk ) AS CARepetitionItemNumber,
  cast('0000' as opupk_kk ) AS CABPItemNumber,
  cast('000' as opupz_kk ) AS CASubItemNumber,
  PostingDate,
  DocumentDate,
  Customer,
  Supplier,
  _BusinessPartner.BusinessPartner AS BusinessPartner,
  _BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
  DebitCreditCode,
  AccountingDocumentType,
  cast( '' as fica_blart ) AS CADocumentType,
  WithholdingTaxAmount,
  CashDiscountAmtInCoCodeCrcy,
  CashDiscountAmount,
  TransactionCurrency,
  IsSalesRelated,
  AmountInCompanyCodeCurrency,
  FinancialAccountType,
  CompanyCodeCurrency,
  AmountInReportingCurrency,
  ReportingVATRegistration,
  VATRegistrationCountry
FROM P_PT_FITaxItmPrepForAnexoUnion
-- UNION ALL with additional select branch(es): P_PT_CAPrepForUnion
;