P_AR_SalesFromSDWithZeroVAT

DDL: P_AR_SALESFROMSDWITHZEROVAT SQL: PARSALESZEROVAT Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_AR

Argentina Sales Documents from SD with Zero VAT

P_AR_SalesFromSDWithZeroVAT is a Consumption CDS View that provides data about "Argentina Sales Documents from SD with Zero VAT" in SAP S/4HANA. It reads from 4 data sources (I_CFinBillingDocument, I_CompanyCode, I_Country, P_AR_JournalEntry) and exposes 39 fields with key fields CompanyCode, FiscalYear, AccountingDocument, CFinBillingDocumentItem. Part of development package GLO_FIN_IS_VAT_AR.

Data Sources (4)

SourceAliasJoin Type
I_CFinBillingDocument CFinBillingDocument inner
I_CompanyCode CompanyCode inner
I_Country Country inner
P_AR_JournalEntry JournalEntry from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PARSALESZEROVAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_AR_JournalEntry CompanyCode Receiver Company Code
KEY FiscalYear P_AR_JournalEntry FiscalYear G/L Fiscal Year
KEY AccountingDocument P_AR_JournalEntry AccountingDocument Journal Entry
KEY CFinBillingDocumentItem CFinBillingDocumentItem CFinBillingDocumentItem
SoldToParty I_CFinBillingDocument SoldToParty Sold-to Party
PostingDate P_AR_JournalEntry PostingDate Posting Date for GR
DocumentDate P_AR_JournalEntry DocumentDate Journal Entry Date
TaxReportingDate P_AR_JournalEntry TaxReportingDate Tax Reporting Date
ReportingDate P_AR_JournalEntry ReportingDate
FiscalPeriod P_AR_JournalEntry FiscalPeriod Tax period
AccountingDocumentType P_AR_JournalEntry AccountingDocumentType Journal Entry Type
DocumentReferenceID P_AR_JournalEntry DocumentReferenceID Reference
IsDocumentFromSD P_AR_JournalEntry IsDocumentFromSD
Branch P_AR_JournalEntry Branch Repository branch
AR_Branch P_AR_JournalEntry AR_Branch
AR_PrintCharacter P_AR_JournalEntry AR_PrintCharacter
AR_OfficialDocumentNumber P_AR_JournalEntry AR_OfficialDocumentNumber
NmbrOfPages P_AR_JournalEntry NmbrOfPages SDS Number of Pages
IsReversal P_AR_JournalEntry IsReversal Reversal doc.
IsReversed P_AR_JournalEntry IsReversed Reversed?
ReverseDocument P_AR_JournalEntry ReverseDocument Reversed With
ReverseDocumentFiscalYear P_AR_JournalEntry ReverseDocumentFiscalYear Year
ReversalReferenceDocument P_AR_JournalEntry ReversalReferenceDocument Reversal Reference Document
LogicalSystem P_AR_JournalEntry LogicalSystem Logical System
OriginalReferenceDocument P_AR_JournalEntry OriginalReferenceDocument Reference Key
ReferenceDocumentType P_AR_JournalEntry ReferenceDocumentType Reference Document Type
ReferenceDocumentLogicalSystem P_AR_JournalEntry ReferenceDocumentLogicalSystem Ref. Doc. Lgcl Syst.
ExchangeRateDate P_AR_JournalEntry ExchangeRateDate Translatn Date
ExchangeRate P_AR_JournalEntry ExchangeRate Exchange rate
TaxType
TaxRate
TaxCalculationProcedure I_Country TaxCalculationProcedure Tax Procedure
TransactionTypeDetermination TaxItem TransactionTypeDetermination Transaction Key
CompanyCodeCountry I_CompanyCode Country Venue: Ctry/Reg
CompanyCodeCurrency I_CompanyCode Currency Valuation Crcy
TaxAmountInCoCodeCrcy
TransactionCurrency P_AR_JournalEntry TransactionCurrency Transaction Currency
TaxAmountInTransCrcy
_OneTimeAccountBP P_AR_JournalEntry _OneTimeAccountBP

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_AR_SalesFromSDWithZeroVAT.
-- 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: PARSALESZEROVAT

CREATE VIEW P_AR_SalesFromSDWithZeroVAT AS
SELECT
  JournalEntry.CompanyCode AS CompanyCode,
  JournalEntry.FiscalYear AS FiscalYear,
  JournalEntry.AccountingDocument AS AccountingDocument,
  CFinBillingDocumentItem.CFinBillingDocumentItem AS CFinBillingDocumentItem,
  CFinBillingDocument.SoldToParty AS SoldToParty,
  JournalEntry.PostingDate AS PostingDate,
  JournalEntry.DocumentDate AS DocumentDate,
  JournalEntry.TaxReportingDate AS TaxReportingDate,
  JournalEntry.ReportingDate AS ReportingDate,
  JournalEntry.FiscalPeriod AS FiscalPeriod,
  JournalEntry.AccountingDocumentType AS AccountingDocumentType,
  JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  JournalEntry.IsDocumentFromSD AS IsDocumentFromSD,
  JournalEntry.Branch AS Branch,
  JournalEntry.AR_Branch AS AR_Branch,
  JournalEntry.AR_PrintCharacter AS AR_PrintCharacter,
  JournalEntry.AR_OfficialDocumentNumber AS AR_OfficialDocumentNumber,
  JournalEntry.NmbrOfPages AS NmbrOfPages,
  JournalEntry.IsReversal AS IsReversal,
  JournalEntry.IsReversed AS IsReversed,
  JournalEntry.ReverseDocument AS ReverseDocument,
  JournalEntry.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
  JournalEntry.ReversalReferenceDocument AS ReversalReferenceDocument,
  JournalEntry.LogicalSystem AS LogicalSystem,
  JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
  JournalEntry.ReferenceDocumentType AS ReferenceDocumentType,
  JournalEntry.ReferenceDocumentLogicalSystem AS ReferenceDocumentLogicalSystem,
  JournalEntry.ExchangeRateDate AS ExchangeRateDate,
  JournalEntry.ExchangeRate AS ExchangeRate,
  cast( 'A' as mwart preserving type ) AS TaxType,
  cast( 0 as fitaxrate ) AS TaxRate,
  Country.TaxCalculationProcedure AS TaxCalculationProcedure,
  TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  CompanyCode.Country AS CompanyCodeCountry,
  CompanyCode.Currency AS CompanyCodeCurrency,
  cast( 0 as hwste ) AS TaxAmountInCoCodeCrcy,
  JournalEntry.TransactionCurrency AS TransactionCurrency,
  cast( 0 as wmwst_shl ) AS TaxAmountInTransCrcy,
  JournalEntry._OneTimeAccountBP AS _OneTimeAccountBP
FROM P_AR_JournalEntry AS JournalEntry
INNER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_Country AS Country ON /* join condition not captured in parsed metadata */
INNER JOIN I_CFinBillingDocument AS CFinBillingDocument ON /* join condition not captured in parsed metadata */
;