FAC_AUDIT_Z3_PROPOSE_TAX_VIEW

DDL: FAC_AUDIT_Z3_PROPOSE_TAX_VIEW SQL: FACAUDPROTAXVIEW Type: view

Tax Proposal Posting View Based

FAC_AUDIT_Z3_PROPOSE_TAX_VIEW is a CDS View that provides data about "Tax Proposal Posting View Based" in SAP S/4HANA. It reads from 4 data sources (I_CsgnmtAndSTOTaxPrpsl, I_CsgnmtAndSTOTaxPrpslItem, I_CsgnmtAndSTOTxPrpslTaxItem, I_LedgerCompanyCodeCrcyRoles) and exposes 87 fields with key fields ProposalTaxPostingIdentifier, ProposalTaxPostingItem, ProposalTaxPostingTaxItem. It has 2 associations to related views.

Data Sources (4)

SourceAliasJoin Type
I_CsgnmtAndSTOTaxPrpsl _header from
I_CsgnmtAndSTOTaxPrpslItem _item left_outer
I_CsgnmtAndSTOTxPrpslTaxItem _taxItem left_outer
I_LedgerCompanyCodeCrcyRoles I_LedgerCompanyCodeCrcyRoles inner

Parameters (4)

NameTypeDefault
P_Ledger fins_ledger
P_FiscalYear fins_gjahr
P_FromFiscalPeriod fins_fagl_fiscper_from
P_ToFiscalPeriod fins_fagl_fiscper_to

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_FiscalPeriodForVariant _ToFiscalPeriodForVariant _ToFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant and _ToFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear and _ToFiscalPeriodForVariant.FiscalPeriod = $parameters.P_ToFiscalPeriod
[0..1] I_FiscalPeriodForVariant _FromFiscalPeriodForVariant _FromFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant and _FromFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear and _FromFiscalPeriodForVariant.FiscalPeriod = $parameters.P_FromFiscalPeriod

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName FACAUDPROTAXVIEW view
AbapCatalog.preserveKey true view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Tax Proposal Posting View Based view

Fields (87)

KeyFieldSource TableSource FieldDescription
KEY ProposalTaxPostingIdentifier I_CsgnmtAndSTOTaxPrpsl ProposalTaxPostingIdentifier Proposal Tax Posting UUID
KEY ProposalTaxPostingItem I_CsgnmtAndSTOTaxPrpslItem ProposalTaxPostingItem Proposal Tax Posting Item No.
KEY ProposalTaxPostingTaxItem I_CsgnmtAndSTOTxPrpslTaxItem ProposalTaxPostingTaxItem Sequence Number
CrossBorderTaxProposalCategory I_CsgnmtAndSTOTaxPrpsl CrossBorderTaxProposalCategory Process Type
CrossBorderTaxPrpslSubcategory I_CsgnmtAndSTOTaxPrpsl CrossBorderTaxPrpslSubcategory Consignment Type
MaterialDocument I_CsgnmtAndSTOTaxPrpsl MaterialDocument Material Doc.
MaterialDocumentYear I_CsgnmtAndSTOTaxPrpsl MaterialDocumentYear Material Document Year
NrOfMaterialDocumentHeaders I_CsgnmtAndSTOTaxPrpsl NrOfMaterialDocumentHeaders Matl. Doc. Header Counter
OutboundDelivery I_CsgnmtAndSTOTaxPrpsl OutboundDelivery LE Delivery
TransactionCurrency I_CsgnmtAndSTOTaxPrpsl TransactionCurrency Transaction Currency
CompanyCode I_CsgnmtAndSTOTaxPrpsl CompanyCode Receiver Company Code
ReversedMaterialDocument I_CsgnmtAndSTOTaxPrpsl ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentYear I_CsgnmtAndSTOTaxPrpsl ReversedMaterialDocumentYear Reversed Doc Year
NrOfReversedMatlDocHeaders I_CsgnmtAndSTOTaxPrpsl NrOfReversedMatlDocHeaders Canc./Rev. Matl Doc. Header
MaterialDocPostgDate I_CsgnmtAndSTOTaxPrpsl MaterialDocPostgDate Posting Date
MaterialDocumentCreationDate I_CsgnmtAndSTOTaxPrpsl MaterialDocumentCreationDate Imported On
MaterialDocCreationTime I_CsgnmtAndSTOTaxPrpsl MaterialDocCreationTime Time
Customer I_CsgnmtAndSTOTaxPrpsl Customer Sold-to Party
TaxDepartureCountry I_CsgnmtAndSTOTaxPrpsl TaxDepartureCountry Tx Dep Ctry/Reg
TaxDestinationCountry I_CsgnmtAndSTOTaxPrpsl TaxDestinationCountry Tx Des Ctry/Reg
TaxPostingStatus I_CsgnmtAndSTOTaxPrpsl TaxPostingStatus Tax Reg. Status
TaxPostingReverseCode I_CsgnmtAndSTOTaxPrpsl TaxPostingReverseCode Reversal Code
TaxPostingCancelCode I_CsgnmtAndSTOTaxPrpsl TaxPostingCancelCode Cancellation Code
JournalEntry I_CsgnmtAndSTOTaxPrpsl JournalEntry SD Document
FiscalYear I_CsgnmtAndSTOTaxPrpsl FiscalYear G/L Fiscal Year
PostingDate I_CsgnmtAndSTOTaxPrpsl PostingDate Posting Date for GR
CustomerVATRegistration I_CsgnmtAndSTOTaxPrpsl CustomerVATRegistration VAT Registration No.
DeptrCtryCoCodeVATRegnNumber I_CsgnmtAndSTOTaxPrpsl DeptrCtryCoCodeVATRegnNumber CoCd VAT in Tax Departure C/R
DestCtryCoCodeVATRegnNumber I_CsgnmtAndSTOTaxPrpsl DestCtryCoCodeVATRegnNumber CoCd VAT No. in Tax Dest. C/R
CreatedByUser I_CsgnmtAndSTOTaxPrpsl CreatedByUser User Name
CreationDate I_CsgnmtAndSTOTaxPrpsl CreationDate Time Stamp
CreationTime I_CsgnmtAndSTOTaxPrpsl CreationTime Time of Change
LastChangedByUser I_CsgnmtAndSTOTaxPrpsl LastChangedByUser User Name
LastChangeDate I_CsgnmtAndSTOTaxPrpsl LastChangeDate Time Stamp
LastChangeTime I_CsgnmtAndSTOTaxPrpsl LastChangeTime Time changed
IncotermsPart1 I_CsgnmtAndSTOTaxPrpsl IncotermsPart1 Incoterms
AccountingExchangeRate I_CsgnmtAndSTOTaxPrpsl AccountingExchangeRate Exch.Rate Acct.
DestinationCountry I_CsgnmtAndSTOTaxPrpsl TaxDestinationCountry Destination Country
Region I_CsgnmtAndSTOTaxPrpsl Region Venue Region
ForeignTradeStstclCurrency I_CsgnmtAndSTOTaxPrpsl ForeignTradeStstclCurrency Currency
SalesOrganization I_CsgnmtAndSTOTaxPrpsl SalesOrganization Sales Organization
IsIntrastatReportingRelevant I_CsgnmtAndSTOTaxPrpsl IsIntrastatReportingRelevant Intrastat rel.
IsIntrastatReportingExcluded I_CsgnmtAndSTOTaxPrpsl IsIntrastatReportingExcluded exclude Intra
DeliveringPlant I_CsgnmtAndSTOTaxPrpslItem DeliveringPlant Delivering Plant
ReceivingPlant I_CsgnmtAndSTOTaxPrpslItem ReceivingPlant Receiving Plant
MaterialDocumentItem I_CsgnmtAndSTOTaxPrpslItem MaterialDocumentItem Material Document Item
OutboundDeliveryItem I_CsgnmtAndSTOTaxPrpslItem OutboundDeliveryItem Logistics Execution Delivery Item
Batch I_CsgnmtAndSTOTaxPrpslItem Batch Lot No.
HigherLvlItmOfBatSpltItm I_CsgnmtAndSTOTaxPrpslItem HigherLvlItmOfBatSpltItm HghLevItmBatch
ReversedMaterialDocumentItem I_CsgnmtAndSTOTaxPrpslItem ReversedMaterialDocumentItem Reversed Doc Item
Material I_CsgnmtAndSTOTaxPrpslItem Material Vehicle Model
QuantityInEntryUnit I_CsgnmtAndSTOTaxPrpslItem QuantityInEntryUnit Quantity in Unit of Entry
SalesUnit I_CsgnmtAndSTOTaxPrpslItem SalesUnit Unit
QuantityInEntryUnitBaseUnit I_CsgnmtAndSTOTaxPrpslItem QuantityInEntryUnitBaseUnit Bill.Qty in SKU
BaseUnit I_CsgnmtAndSTOTaxPrpslItem BaseUnit Unit of Measure
MaterialNetWeight I_CsgnmtAndSTOTaxPrpslItem MaterialNetWeight Net Weight
WeightUnit I_CsgnmtAndSTOTaxPrpslItem WeightUnit Weight unit
ServicesRenderedDate I_CsgnmtAndSTOTaxPrpslItem ServicesRenderedDate Services Rendered Date
PriceDetnExchangeRate I_CsgnmtAndSTOTaxPrpslItem PriceDetnExchangeRate Exchange Rate
ItemNetAmountOfBillingDoc I_CsgnmtAndSTOTaxPrpslItem ItemNetAmountOfBillingDoc Value
PrecdgSDDocCategory I_CsgnmtAndSTOTaxPrpslItem PrecdgSDDocCategory Trans. Type
SalesDocument I_CsgnmtAndSTOTaxPrpslItem SalesDocument SD Document
SalesDocumentItem I_CsgnmtAndSTOTaxPrpslItem SalesDocumentItem Sales Document Item
SalesDocumentItemText I_CsgnmtAndSTOTaxPrpslItem SalesDocumentItemText Item Descr.
SalesDocumentItemCategory I_CsgnmtAndSTOTaxPrpslItem SalesDocumentItemCategory Item Category
SDDocumentCategory I_CsgnmtAndSTOTaxPrpslItem SDDocumentCategory Document Cat.
ItemGrossAmountOfBillingDoc I_CsgnmtAndSTOTaxPrpslItem ItemGrossAmountOfBillingDoc Gross value
ForeignTradeStstclAmt I_CsgnmtAndSTOTaxPrpslItem ForeignTradeStstclAmt Statist. Value
CountryOfOrigin I_CsgnmtAndSTOTaxPrpslItem CountryOfOrigin Country/Region of Origin
RegionOfOrigin I_CsgnmtAndSTOTaxPrpslItem RegionOfOrigin Reg. of Origin
CommodityCode I_CsgnmtAndSTOTaxPrpslItem CommodityCode Commodity Code
SpecialStockIdfgCustomer I_CsgnmtAndSTOTaxPrpslItem SpecialStockIdfgCustomer Customer SID
SoldToParty I_CsgnmtAndSTOTaxPrpslItem SoldToParty Sold-to Party
SoldToPartyAddressID I_CsgnmtAndSTOTaxPrpslItem SoldToPartyAddressID Sold-To Address
ShipToParty I_CsgnmtAndSTOTaxPrpslItem ShipToParty Ship-To Party (obsolete)
ShipToPartyAddressID I_CsgnmtAndSTOTaxPrpslItem ShipToPartyAddressID Ship-to Party Address
TaxBaseAmountInTransCrcy I_CsgnmtAndSTOTxPrpslTaxItem TaxBaseAmountInTransCrcy Value-Added Tax
TaxCode I_CsgnmtAndSTOTxPrpslTaxItem TaxCode Tax Code
ConditionType I_CsgnmtAndSTOTxPrpslTaxItem ConditionType Condition type
AccountKeyForGLAccount I_CsgnmtAndSTOTxPrpslTaxItem AccountKeyForGLAccount Account Key
TaxProposalTaxationDate I_CsgnmtAndSTOTxPrpslTaxItem TaxProposalTaxationDate Taxation Date
TaxRate I_CsgnmtAndSTOTxPrpslTaxItem TaxRate Tax Rate
TaxAmountInTransCrcy I_CsgnmtAndSTOTxPrpslTaxItem TaxAmountInTransCrcy TaxAmt in Tran. Crcy
TaxCountry I_CsgnmtAndSTOTxPrpslTaxItem TaxCountry Tax Ctry/Reg.
TaxRateValidityStartDate I_CsgnmtAndSTOTxPrpslTaxItem TaxRateValidityStartDate Tax Rate Validity Start Date
SystemClient System Client
FiscalYearVariant I_LedgerCompanyCodeCrcyRoles FiscalYearVariant FY Variant

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 FAC_AUDIT_Z3_PROPOSE_TAX_VIEW.
-- 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: FACAUDPROTAXVIEW
-- Parameters: P_Ledger : fins_ledger, P_FiscalYear : fins_gjahr, P_FromFiscalPeriod : fins_fagl_fiscper_from, P_ToFiscalPeriod : fins_fagl_fiscper_to

CREATE VIEW FAC_AUDIT_Z3_PROPOSE_TAX_VIEW AS
SELECT
  _header.ProposalTaxPostingIdentifier AS ProposalTaxPostingIdentifier,
  _item.ProposalTaxPostingItem AS ProposalTaxPostingItem,
  _taxItem.ProposalTaxPostingTaxItem AS ProposalTaxPostingTaxItem,
  _header.CrossBorderTaxProposalCategory AS CrossBorderTaxProposalCategory,
  _header.CrossBorderTaxPrpslSubcategory AS CrossBorderTaxPrpslSubcategory,
  _header.MaterialDocument AS MaterialDocument,
  _header.MaterialDocumentYear AS MaterialDocumentYear,
  _header.NrOfMaterialDocumentHeaders AS NrOfMaterialDocumentHeaders,
  _header.OutboundDelivery AS OutboundDelivery,
  _header.TransactionCurrency AS TransactionCurrency,
  _header.CompanyCode AS CompanyCode,
  _header.ReversedMaterialDocument AS ReversedMaterialDocument,
  _header.ReversedMaterialDocumentYear AS ReversedMaterialDocumentYear,
  _header.NrOfReversedMatlDocHeaders AS NrOfReversedMatlDocHeaders,
  _header.MaterialDocPostgDate AS MaterialDocPostgDate,
  _header.MaterialDocumentCreationDate AS MaterialDocumentCreationDate,
  _header.MaterialDocCreationTime AS MaterialDocCreationTime,
  _header.Customer AS Customer,
  _header.TaxDepartureCountry AS TaxDepartureCountry,
  _header.TaxDestinationCountry AS TaxDestinationCountry,
  _header.TaxPostingStatus AS TaxPostingStatus,
  _header.TaxPostingReverseCode AS TaxPostingReverseCode,
  _header.TaxPostingCancelCode AS TaxPostingCancelCode,
  _header.JournalEntry AS JournalEntry,
  _header.FiscalYear AS FiscalYear,
  _header.PostingDate AS PostingDate,
  _header.CustomerVATRegistration AS CustomerVATRegistration,
  _header.DeptrCtryCoCodeVATRegnNumber AS DeptrCtryCoCodeVATRegnNumber,
  _header.DestCtryCoCodeVATRegnNumber AS DestCtryCoCodeVATRegnNumber,
  _header.CreatedByUser AS CreatedByUser,
  _header.CreationDate AS CreationDate,
  _header.CreationTime AS CreationTime,
  _header.LastChangedByUser AS LastChangedByUser,
  _header.LastChangeDate AS LastChangeDate,
  _header.LastChangeTime AS LastChangeTime,
  _header.IncotermsPart1 AS IncotermsPart1,
  _header.AccountingExchangeRate AS AccountingExchangeRate,
  _header.TaxDestinationCountry AS DestinationCountry,
  _header.Region AS Region,
  _header.ForeignTradeStstclCurrency AS ForeignTradeStstclCurrency,
  _header.SalesOrganization AS SalesOrganization,
  _header.IsIntrastatReportingRelevant AS IsIntrastatReportingRelevant,
  _header.IsIntrastatReportingExcluded AS IsIntrastatReportingExcluded,
  _item.DeliveringPlant AS DeliveringPlant,
  _item.ReceivingPlant AS ReceivingPlant,
  _item.MaterialDocumentItem AS MaterialDocumentItem,
  _item.OutboundDeliveryItem AS OutboundDeliveryItem,
  _item.Batch AS Batch,
  _item.HigherLvlItmOfBatSpltItm AS HigherLvlItmOfBatSpltItm,
  _item.ReversedMaterialDocumentItem AS ReversedMaterialDocumentItem,
  _item.Material AS Material,
  _item.QuantityInEntryUnit AS QuantityInEntryUnit,
  _item.SalesUnit AS SalesUnit,
  _item.QuantityInEntryUnitBaseUnit AS QuantityInEntryUnitBaseUnit,
  _item.BaseUnit AS BaseUnit,
  _item.MaterialNetWeight AS MaterialNetWeight,
  _item.WeightUnit AS WeightUnit,
  _item.ServicesRenderedDate AS ServicesRenderedDate,
  _item.PriceDetnExchangeRate AS PriceDetnExchangeRate,
  _item.ItemNetAmountOfBillingDoc AS ItemNetAmountOfBillingDoc,
  _item.PrecdgSDDocCategory AS PrecdgSDDocCategory,
  _item.SalesDocument AS SalesDocument,
  _item.SalesDocumentItem AS SalesDocumentItem,
  _item.SalesDocumentItemText AS SalesDocumentItemText,
  _item.SalesDocumentItemCategory AS SalesDocumentItemCategory,
  _item.SDDocumentCategory AS SDDocumentCategory,
  _item.ItemGrossAmountOfBillingDoc AS ItemGrossAmountOfBillingDoc,
  _item.ForeignTradeStstclAmt AS ForeignTradeStstclAmt,
  _item.CountryOfOrigin AS CountryOfOrigin,
  _item.RegionOfOrigin AS RegionOfOrigin,
  _item.CommodityCode AS CommodityCode,
  _item.SpecialStockIdfgCustomer AS SpecialStockIdfgCustomer,
  _item.SoldToParty AS SoldToParty,
  _item.SoldToPartyAddressID AS SoldToPartyAddressID,
  _item.ShipToParty AS ShipToParty,
  _item.ShipToPartyAddressID AS ShipToPartyAddressID,
  _taxItem.TaxBaseAmountInTransCrcy AS TaxBaseAmountInTransCrcy,
  _taxItem.TaxCode AS TaxCode,
  _taxItem.ConditionType AS ConditionType,
  _taxItem.AccountKeyForGLAccount AS AccountKeyForGLAccount,
  _taxItem.TaxProposalTaxationDate AS TaxProposalTaxationDate,
  _taxItem.TaxRate AS TaxRate,
  _taxItem.TaxAmountInTransCrcy AS TaxAmountInTransCrcy,
  _taxItem.TaxCountry AS TaxCountry,
  _taxItem.TaxRateValidityStartDate AS TaxRateValidityStartDate,
  cast ( $session.client as char3 ) AS SystemClient,
  I_LedgerCompanyCodeCrcyRoles.FiscalYearVariant AS FiscalYearVariant
FROM I_CsgnmtAndSTOTaxPrpsl AS _header
LEFT OUTER JOIN I_CsgnmtAndSTOTaxPrpslItem AS _item ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CsgnmtAndSTOTxPrpslTaxItem AS _taxItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_LedgerCompanyCodeCrcyRoles ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _ToFiscalPeriodForVariant ON _ToFiscalPeriodForVariant.FiscalYearVariant = FiscalYearVariant AND _ToFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear AND _ToFiscalPeriodForVariant.FiscalPeriod = $parameters.P_ToFiscalPeriod  -- association [0..1]
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _FromFiscalPeriodForVariant ON _FromFiscalPeriodForVariant.FiscalYearVariant = FiscalYearVariant AND _FromFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear AND _FromFiscalPeriodForVariant.FiscalPeriod = $parameters.P_FromFiscalPeriod  -- association [0..1]
;