P_AUDIT_AT_BSET

DDL: P_AUDIT_AT_BSET Type: view_entity COMPOSITE Package: GLO_FIN_IS_AUDIT_AT

Austrian Audit Journal Tax Data

P_AUDIT_AT_BSET is a Composite CDS View that provides data about "Austrian Audit Journal Tax Data" in SAP S/4HANA. It reads from 5 data sources (I_CompanyCode, I_JournalEntry, I_TaxItem, P_AUDIT_AT_HELPER_LEDGER, P_T007B_GLO) and exposes 24 fields with key fields bukrs, belnr, gjahr, buzei, Ledger. Part of development package GLO_FIN_IS_AUDIT_AT.

Data Sources (5)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode inner
I_JournalEntry I_JournalEntry inner
I_TaxItem I_TaxItem inner
P_AUDIT_AT_HELPER_LEDGER P_AUDIT_AT_HELPER_LEDGER from
P_T007B_GLO P_T007B_GLO inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Austrian Audit Journal Tax Data view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY bukrs I_TaxItem CompanyCode Receiver Company Code
KEY belnr I_TaxItem AccountingDocument Journal Entry
KEY gjahr I_TaxItem FiscalYear G/L Fiscal Year
KEY buzei I_TaxItem TaxItem Tax Item
KEY Ledger P_AUDIT_AT_HELPER_LEDGER Ledger Ledger
ktosl I_TaxItem TransactionTypeDetermination Transaction Key
egbld I_TaxItem DestinationCountry Dest. Ctry/Reg
eglld I_TaxItem SupplyingCountry Supplying Ctry/Reg.
hkont I_TaxItem GLAccount General Ledger
TaxBaseAmountInCoCodeCrcyendasfwbas
TaxAmountendasfwste
TaxBaseAmountInCoCodeCrcyendashwbas
TaxAmountInCoCodeCrcyendashwste
TaxRateCurrency
kbetr I_TaxItem TaxRate Tax Rate
mlddt I_TaxItem TaxReportingDate Tax Reporting Date
mwskz I_TaxItem TaxCode Tax Code
shkzg I_TaxItem DebitCreditCode Single-Character Flag
stbkz P_T007B_GLO stbkz Posting indic.
stceg I_TaxItem VATRegistration VAT Registration No.
taxps I_TaxItem TaxItemAcctgDocItemRef Tax doc. item number
TransactionCurrency I_JournalEntry TransactionCurrency Transaction Currency
CompanyCodeCurrency I_CompanyCode Currency Valuation Crcy
TransactionTypeDetermination I_TaxItem 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_AUDIT_AT_BSET.
-- 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_AUDIT_AT_BSET AS
SELECT
  I_TaxItem.CompanyCode AS bukrs,
  I_TaxItem.AccountingDocument AS belnr,
  I_TaxItem.FiscalYear AS gjahr,
  I_TaxItem.TaxItem AS buzei,
  P_AUDIT_AT_HELPER_LEDGER.Ledger AS Ledger,
  I_TaxItem.TransactionTypeDetermination AS ktosl,
  I_TaxItem.DestinationCountry AS egbld,
  I_TaxItem.SupplyingCountry AS eglld,
  I_TaxItem.GLAccount AS hkont,
  case I_TaxItem.DebitCreditCode when 'S' then I_TaxItem.TaxBaseAmountInCoCodeCrcy when 'H' then -I_TaxItem.TaxBaseAmountInCoCodeCrcy end as fwbas AS TaxBaseAmountInCoCodeCrcyendasfwbas,
  case I_TaxItem.DebitCreditCode when 'S' then I_TaxItem.TaxAmount when 'H' then -I_TaxItem.TaxAmount end as fwste AS TaxAmountendasfwste,
  case I_TaxItem.DebitCreditCode when 'S' then I_TaxItem.TaxBaseAmountInCoCodeCrcy when 'H' then -I_TaxItem.TaxBaseAmountInCoCodeCrcy end as hwbas AS TaxBaseAmountInCoCodeCrcyendashwbas,
  case I_TaxItem.DebitCreditCode when 'S' then I_TaxItem.TaxAmountInCoCodeCrcy when 'H' then -I_TaxItem.TaxAmountInCoCodeCrcy end as hwste AS TaxAmountInCoCodeCrcyendashwste,
  cast ( rpad( '3', 5, ' ') as konwa ) AS TaxRateCurrency,
  I_TaxItem.TaxRate AS kbetr,
  I_TaxItem.TaxReportingDate AS mlddt,
  I_TaxItem.TaxCode AS mwskz,
  I_TaxItem.DebitCreditCode AS shkzg,
  P_T007B_GLO.stbkz AS stbkz,
  I_TaxItem.VATRegistration AS stceg,
  I_TaxItem.TaxItemAcctgDocItemRef AS taxps,
  I_JournalEntry.TransactionCurrency AS TransactionCurrency,
  I_CompanyCode.Currency AS CompanyCodeCurrency,
  I_TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination
FROM P_AUDIT_AT_HELPER_LEDGER
INNER JOIN I_TaxItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_JournalEntry ON /* join condition not captured in parsed metadata */
INNER JOIN P_T007B_GLO ON /* join condition not captured in parsed metadata */
;