P_PT_DocItemPartnerJoinWit

DDL: P_PT_DOCITEMPARTNERJOINWIT SQL: PPTPARTJOINWIT Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_PT

Join Partner and WIT view

P_PT_DocItemPartnerJoinWit is a Consumption CDS View that provides data about "Join Partner and WIT view" in SAP S/4HANA. It reads from 2 data sources (P_PT_DocItemPartner, P_PT_DocItemWIT) and exposes 31 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. Part of development package GLO_FIN_IS_VAT_PT.

Data Sources (2)

SourceAliasJoin Type
P_PT_DocItemPartner p from
P_PT_DocItemWIT W left_outer

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPTPARTJOINWIT view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.preserveKey true view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Join Partner and WIT view view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_PT_DocItemPartner CompanyCode Receiver Company Code
KEY FiscalYear P_PT_DocItemPartner FiscalYear G/L Fiscal Year
KEY AccountingDocument P_PT_DocItemPartner AccountingDocument Journal Entry
KEY AccountingDocumentItem P_PT_DocItemPartner AccountingDocumentItem Posting View Item
ClearingDate P_PT_DocItemPartner ClearingDate Clearing Date
PostingDate P_PT_DocItemPartner PostingDate Posting Date for GR
Customer P_PT_DocItemPartner Customer Sold-to Party
Supplier P_PT_DocItemPartner Supplier Supplier
DocumentDate P_PT_DocItemPartner DocumentDate Journal Entry Date
DebitCreditCode P_PT_DocItemPartner DebitCreditCode Single-Character Flag
WithholdingTaxCode P_PT_DocItemPartner WithholdingTaxCode WTax Code
BalanceTransactionCurrency P_PT_DocItemPartner BalanceTransactionCurrency Currency
CashDiscountAmtInCoCodeCrcy P_PT_DocItemPartner CashDiscountAmtInCoCodeCrcy Discount Amt
TransactionCurrency P_PT_DocItemPartner TransactionCurrency Transaction Currency
IsSalesRelated P_PT_DocItemPartner IsSalesRelated Is Sales Related
IsUsedInPaymentTransaction P_PT_DocItemPartner IsUsedInPaymentTransaction Is Used In Payment Transaction
FinancialAccountType P_PT_DocItemPartner FinancialAccountType Fin. Account Type
VATRegistration P_PT_DocItemPartner VATRegistration VAT Registration No.
CompanyCodeCurrency P_PT_DocItemPartner CompanyCodeCurrency Local Currency
ExchangeRate P_PT_DocItemPartner ExchangeRate Exchange rate
AccountingDocumentType P_PT_DocItemPartner AccountingDocumentType Journal Entry Type
SupplierVATRegistration P_PT_DocItemPartner SupplierVATRegistration VAT Registration No.
CustomerVATRegistration P_PT_DocItemPartner CustomerVATRegistration VAT Registration No.
VATRegistrationCountry P_PT_DocItemPartner VATRegistrationCountry CtryRgnSlsTxNo.
SupplierVATRegistrationCountry P_PT_DocItemPartner SupplierVATRegistrationCountry
CustomerVATRegistrationCountry P_PT_DocItemPartner CustomerVATRegistrationCountry
OneTimeVendor P_PT_DocItemPartner OneTimeVendor One-time acct
OneTimeCustomer P_PT_DocItemPartner OneTimeCustomer One-time acct
AmountInCompanyCodeCurrency P_PT_DocItemPartner AmountInCompanyCodeCurrency Local Crcy Amt
CashDiscountAmount P_PT_DocItemPartner CashDiscountAmount CD Amount
TransactionTypeDetermination P_PT_DocItemWIT TransactionTypeDetermination Transaction Key

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_DocItemPartnerJoinWit.
-- 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.
-- SQL view name: PPTPARTJOINWIT

CREATE VIEW P_PT_DocItemPartnerJoinWit AS
SELECT
  p.CompanyCode AS CompanyCode,
  p.FiscalYear AS FiscalYear,
  p.AccountingDocument AS AccountingDocument,
  p.AccountingDocumentItem AS AccountingDocumentItem,
  p.ClearingDate AS ClearingDate,
  p.PostingDate AS PostingDate,
  p.Customer AS Customer,
  p.Supplier AS Supplier,
  p.DocumentDate AS DocumentDate,
  p.DebitCreditCode AS DebitCreditCode,
  p.WithholdingTaxCode AS WithholdingTaxCode,
  p.BalanceTransactionCurrency AS BalanceTransactionCurrency,
  p.CashDiscountAmtInCoCodeCrcy AS CashDiscountAmtInCoCodeCrcy,
  p.TransactionCurrency AS TransactionCurrency,
  p.IsSalesRelated AS IsSalesRelated,
  p.IsUsedInPaymentTransaction AS IsUsedInPaymentTransaction,
  p.FinancialAccountType AS FinancialAccountType,
  p.VATRegistration AS VATRegistration,
  p.CompanyCodeCurrency AS CompanyCodeCurrency,
  p.ExchangeRate AS ExchangeRate,
  p.AccountingDocumentType AS AccountingDocumentType,
  p.SupplierVATRegistration AS SupplierVATRegistration,
  p.CustomerVATRegistration AS CustomerVATRegistration,
  p.VATRegistrationCountry AS VATRegistrationCountry,
  p.SupplierVATRegistrationCountry AS SupplierVATRegistrationCountry,
  p.CustomerVATRegistrationCountry AS CustomerVATRegistrationCountry,
  p.OneTimeVendor AS OneTimeVendor,
  p.OneTimeCustomer AS OneTimeCustomer,
  p.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  p.CashDiscountAmount AS CashDiscountAmount,
  W.TransactionTypeDetermination AS TransactionTypeDetermination
FROM P_PT_DocItemPartner AS p
LEFT OUTER JOIN P_PT_DocItemWIT AS W ON /* join condition not captured in parsed metadata */
;