I_LU_SAFTAdditionalZeroLine

DDL: I_LU_SAFTADDITIONALZEROLINE SQL: ILUSAFTADDZEROL Type: view COMPOSITE

SAFT LU Additional VAT Zero Line

I_LU_SAFTAdditionalZeroLine is a Composite CDS View that provides data about "SAFT LU Additional VAT Zero Line" in SAP S/4HANA. It reads from 3 data sources (P_LU_SAFTIsAlternateAccount, P_LU_SAFTZeroTaxLine, I_GLAccountInCompanyCode) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (3)

SourceAliasJoin Type
P_LU_SAFTIsAlternateAccount AlternateAccount inner
P_LU_SAFTZeroTaxLine Journal from
I_GLAccountInCompanyCode TaxGLAccount inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ILUSAFTADDZEROL view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SAFT LU Additional VAT Zero Line view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_LU_SAFTZeroTaxLine CompanyCode Receiver Company Code
KEY FiscalYear P_LU_SAFTZeroTaxLine FiscalYear G/L Fiscal Year
KEY AccountingDocument P_LU_SAFTZeroTaxLine AccountingDocument Journal Entry
KEY LedgerGLLineItem
PostingDate P_LU_SAFTZeroTaxLine PostingDate Posting Date for GR
AmountInCompanyCodeCurrency P_LU_SAFTZeroTaxLine AmountInCompanyCodeCurrency Local Crcy Amt
JournalEntryType P_LU_SAFTZeroTaxLine AccountingDocumentType Journal Entry Type
Ledger P_LU_SAFTZeroTaxLine Ledger Ledger
TaxCalculationProcedure P_LU_SAFTZeroTaxLine TaxCalculationProcedure Tax Procedure
FinancialAccountType P_LU_SAFTZeroTaxLine FinancialAccountType Fin. Account Type
TransactionCurrency P_LU_SAFTZeroTaxLine TransactionCurrency Transaction Currency
DebitAmountInCoCodeCrcy
CreditAmountInCoCodeCrcy
char70asSAFTGeneralLedgerAccountID
AlternativeGLAccountendasGLAccount
AccountingDocumentItemType P_LU_SAFTZeroTaxLine AccountingDocumentItemType Line Item ID
CompanyCodeCurrency P_LU_SAFTZeroTaxLine CompanyCodeCurrency Local Currency
TaxCode P_LU_SAFTZeroTaxLine TaxCode Tax Code
DebitCreditCode P_LU_SAFTZeroTaxLine DebitCreditCode Single-Character Flag
DocumentItemText P_LU_SAFTZeroTaxLine DocumentItemText Text
_CompanyCodeCurrency P_LU_SAFTZeroTaxLine _CompanyCodeCurrency

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 I_LU_SAFTAdditionalZeroLine.
-- 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: ILUSAFTADDZEROL

CREATE VIEW I_LU_SAFTAdditionalZeroLine AS
SELECT
  Journal.CompanyCode AS CompanyCode,
  Journal.FiscalYear AS FiscalYear,
  Journal.AccountingDocument AS AccountingDocument,
  concat( substring(Journal.LedgerGLLineItem, 4,3) , Journal.TaxItem ) AS LedgerGLLineItem,
  Journal.PostingDate AS PostingDate,
  Journal.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  Journal.AccountingDocumentType AS JournalEntryType,
  Journal.Ledger AS Ledger,
  Journal.TaxCalculationProcedure AS TaxCalculationProcedure,
  Journal.FinancialAccountType AS FinancialAccountType,
  Journal.TransactionCurrency AS TransactionCurrency,
  cast( 0 as abap.curr(8,2)) AS DebitAmountInCoCodeCrcy,
  cast( 0 as abap.curr(8,2)) AS CreditAmountInCoCodeCrcy,
  cast(case when AlternateAccount.IsAltAcct is not initial then concat(TaxGLAccount.CompanyCode, concat('_', Journal.ActiveGLAccount)) else concat(TaxGLAccount.CompanyCode, concat('_', TaxGLAccount.GLAccount)) end as abap.char(70)) as SAFTGeneralLedgerAccountID AS char70asSAFTGeneralLedgerAccountID,
  case when AlternateAccount.IsAltAcct is initial then Journal.ActiveGLAccount else TaxGLAccount.AlternativeGLAccount end as GLAccount AS AlternativeGLAccountendasGLAccount,
  Journal.AccountingDocumentItemType AS AccountingDocumentItemType,
  Journal.CompanyCodeCurrency AS CompanyCodeCurrency,
  Journal.TaxCode AS TaxCode,
  Journal.DebitCreditCode AS DebitCreditCode,
  Journal.DocumentItemText AS DocumentItemText,
  Journal._CompanyCodeCurrency AS _CompanyCodeCurrency
FROM P_LU_SAFTZeroTaxLine AS Journal
INNER JOIN P_LU_SAFTIsAlternateAccount AS AlternateAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountInCompanyCode AS TaxGLAccount ON /* join condition not captured in parsed metadata */
;