P_LU_SAFTGENLDGRDPZRTAXADDLINE

DDL: P_LU_SAFTGENLDGRDPZRTAXADDLINE SQL: PLUSAFTGLDPALN Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_LU

SAFT LU Add Zero Amount Tax Line

P_LU_SAFTGENLDGRDPZRTAXADDLINE is a Composite CDS View that provides data about "SAFT LU Add Zero Amount Tax Line" in SAP S/4HANA. It reads from 3 data sources (P_LU_SAFTIsAlternateAccount, P_LU_SAFTDPZeroTaxLine, I_GLAccountInCompanyCode) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. Part of development package GLO_FIN_IS_SAFT_LU.

Data Sources (3)

SourceAliasJoin Type
P_LU_SAFTIsAlternateAccount AlternateAccount inner
P_LU_SAFTDPZeroTaxLine Journal from
I_GLAccountInCompanyCode TaxGLAccount inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLUSAFTGLDPALN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_LU_SAFTDPZeroTaxLine CompanyCode Receiver Company Code
KEY FiscalYear P_LU_SAFTDPZeroTaxLine FiscalYear G/L Fiscal Year
KEY AccountingDocument P_LU_SAFTDPZeroTaxLine AccountingDocument Journal Entry
KEY LedgerGLLineItem
PostingDate P_LU_SAFTDPZeroTaxLine PostingDate Posting Date for GR
AmountInCompanyCodeCurrency P_LU_SAFTDPZeroTaxLine AmountInCompanyCodeCurrency Local Crcy Amt
JournalEntryType P_LU_SAFTDPZeroTaxLine AccountingDocumentType Journal Entry Type
Ledger P_LU_SAFTDPZeroTaxLine Ledger Ledger
TaxCalculationProcedure P_LU_SAFTDPZeroTaxLine TaxCalculationProcedure Tax Procedure
FinancialAccountType P_LU_SAFTDPZeroTaxLine FinancialAccountType Fin. Account Type
TransactionCurrency P_LU_SAFTDPZeroTaxLine TransactionCurrency Transaction Currency
DebitAmountInCoCodeCrcy 0
CreditAmountInCoCodeCrcy 0
GLAccountendasSAFTGeneralLedgerAccountID
AlternativeGLAccountendasGLAccount
AccountingDocumentItemType P_LU_SAFTDPZeroTaxLine AccountingDocumentItemType Line Item ID
CompanyCodeCurrency P_LU_SAFTDPZeroTaxLine CompanyCodeCurrency Local Currency
TaxCode P_LU_SAFTDPZeroTaxLine TaxCode Tax Code
DebitCreditCode P_LU_SAFTDPZeroTaxLine DebitCreditCode Single-Character Flag
DocumentItemText P_LU_SAFTDPZeroTaxLine DocumentItemText Text
_CompanyCodeCurrency P_LU_SAFTDPZeroTaxLine _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 P_LU_SAFTGENLDGRDPZRTAXADDLINE.
-- 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: PLUSAFTGLDPALN

CREATE VIEW P_LU_SAFTGENLDGRDPZRTAXADDLINE 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,
  0 AS DebitAmountInCoCodeCrcy,
  0 AS CreditAmountInCoCodeCrcy,
  case when AlternateAccount.IsAltAcct is not initial then concat(TaxGLAccount.CompanyCode, concat('_', Journal.ActiveGLAccount)) else concat(TaxGLAccount.CompanyCode, concat('_', TaxGLAccount.GLAccount)) end as SAFTGeneralLedgerAccountID AS GLAccountendasSAFTGeneralLedgerAccountID,
  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_SAFTDPZeroTaxLine 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 */
;