VALUATIONREORGLINEITEM

DDL: VALUATIONREORGLINEITEM SQL: PVALREORG Type: view

VALUATIONREORGLINEITEM is a CDS View in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, fins_cls_wl) and exposes 85 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItem acdoca inner
fins_cls_wl wl from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PVALREORG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_ALLOWED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_GLAccountLineItem CompanyCode
KEY FiscalYear I_GLAccountLineItem FiscalYear
KEY AccountingDocument I_GLAccountLineItem AccountingDocument
KEY LedgerGLLineItem I_GLAccountLineItem LedgerGLLineItem
KEY Ledger I_GLAccountLineItem Ledger
KEY SourceLedger I_GLAccountLineItem SourceLedger
GLAccount I_GLAccountLineItem GLAccount
CreationDateTime I_GLAccountLineItem CreationDateTime
SubLedgerAcctLineItemType I_GLAccountLineItem SubLedgerAcctLineItemType
BusinessTransactionCategory I_GLAccountLineItem BusinessTransactionCategory
OriginalPostingDate I_GLAccountLineItem PostingDate
LedgerFiscalYear I_GLAccountLineItem LedgerFiscalYear
FiscalYearPeriod I_GLAccountLineItem FiscalYearPeriod
FiscalPeriod I_GLAccountLineItem FiscalPeriod
IsReversal I_GLAccountLineItem IsReversal
ReferenceDocumentType I_GLAccountLineItem ReferenceDocumentType
ReorgProfitCenter I_GLAccountLineItem ProfitCenter
ReorgSegment I_GLAccountLineItem Segment
OrganizationalChange I_GLAccountLineItem OrganizationalChange
PredecessorJournalEntry I_GLAccountLineItem PredecessorJournalEntry
PrdcssrJournalEntryFiscalYear I_GLAccountLineItem PrdcssrJournalEntryFiscalYear
PredecessorJournalEntryItem I_GLAccountLineItem PredecessorJournalEntryItem
AccrualObjectType I_GLAccountLineItem AccrualObjectType
AccrualObject I_GLAccountLineItem AccrualObject
AccrualSubobject I_GLAccountLineItem AccrualSubobject
AccrualItemType I_GLAccountLineItem AccrualItemType
AccrualReferenceObject I_GLAccountLineItem AccrualReferenceObject
AccrualObjectLogicalSystem I_GLAccountLineItem AccrualObjectLogicalSystem
BalanceTransactionCurrency I_GLAccountLineItem BalanceTransactionCurrency
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency
GlobalCurrency I_GLAccountLineItem GlobalCurrency
FreeDefinedCurrency1 I_GLAccountLineItem FreeDefinedCurrency1
FreeDefinedCurrency2 I_GLAccountLineItem FreeDefinedCurrency2
FreeDefinedCurrency3 I_GLAccountLineItem FreeDefinedCurrency3
FreeDefinedCurrency4 I_GLAccountLineItem FreeDefinedCurrency4
FreeDefinedCurrency5 I_GLAccountLineItem FreeDefinedCurrency5
FreeDefinedCurrency6 I_GLAccountLineItem FreeDefinedCurrency6
FreeDefinedCurrency7 I_GLAccountLineItem FreeDefinedCurrency7
FreeDefinedCurrency8 I_GLAccountLineItem FreeDefinedCurrency8
AmountInBalanceTransacCrcy I_GLAccountLineItem AmountInBalanceTransacCrcy
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency
AmountInGlobalCurrency I_GLAccountLineItem AmountInGlobalCurrency
AmountInFreeDefinedCurrency1 I_GLAccountLineItem AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2 I_GLAccountLineItem AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3 I_GLAccountLineItem AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4 I_GLAccountLineItem AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5 I_GLAccountLineItem AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6 I_GLAccountLineItem AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7 I_GLAccountLineItem AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8 I_GLAccountLineItem AmountInFreeDefinedCurrency8
PostingDate fins_cls_wl postingdate
DocumentDate fins_cls_wl documentdate
postingkey fins_cls_wl postingkey
netduedate fins_cls_wl netduedate
ISCLEAREDATKEYDATE fins_cls_wl is_cleared_at_keydate
exchangerate fins_cls_wl exchangerate
clearingdate fins_cls_wl clearingdate
housebank fins_cls_wl housebank
jointventure fins_cls_wl jointventure
orderid fins_cls_wl orderid
salesorder fins_cls_wl salesorder
costobject fins_cls_wl costobject
costcenter fins_cls_wl costcenter
profitcenter fins_cls_wl profitcenter
businessarea fins_cls_wl businessarea
segment fins_cls_wl segment
supplier fins_cls_wl supplier
customer fins_cls_wl customer
wbselement fins_cls_wl wbselement
fund fins_cls_wl fund
budgetperiod fins_cls_wl budgetperiod
grantid fins_cls_wl grantid
plant fins_cls_wl plant
product fins_cls_wl product
shiptoparty fins_cls_wl shiptoparty
line_type fins_cls_wl line_type
taxcode fins_cls_wl taxcode
taxcountry fins_cls_wl taxcountry
partnerfund fins_cls_wl partnerfund
partnergrant fins_cls_wl partnergrant
fundscenter fins_cls_wl fundscenter
FinancialAccountType fins_cls_wl account_type
GLAccountType fins_cls_wl glaccount_type
material fins_cls_wl material
group_id fins_cls_wl group_id
@AbapCatalog.sqlViewName: 'PVALREORG'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel: {
                usageType.serviceQuality: #D,
                usageType.sizeCategory: #XXL,
                usageType.dataClass: #MIXED }
@ClientHandling.algorithm: #SESSION_VARIABLE
define view VALUATIONREORGLINEITEM
  as select from fins_cls_wl         as wl
    inner join   I_GLAccountLineItem as acdoca on  acdoca.PredecessorJournalEntry       = wl.accountingdocument
                                               and acdoca.PrdcssrJournalEntryFiscalYear = wl.fiscalyear
                                               and acdoca.PredecessorJournalEntryItem   = wl.ledgergllineitem
                                               and acdoca.CompanyCode                   = wl.companycode
                                               and acdoca.Ledger                        = wl.ledger
                                               and acdoca.GLAccount                     = wl.glaccount
{
      //Debit items are invoices, credit items are payments

  key acdoca.CompanyCode,
  key acdoca.FiscalYear,
  key acdoca.AccountingDocument,
  key acdoca.LedgerGLLineItem,
  key acdoca.Ledger,
  key acdoca.SourceLedger,
      acdoca.GLAccount,
      acdoca.CreationDateTime,
      acdoca.SubLedgerAcctLineItemType,
      acdoca.BusinessTransactionCategory,
      acdoca.PostingDate       as OriginalPostingDate,
      acdoca.LedgerFiscalYear,
      acdoca.FiscalYearPeriod,
      acdoca.FiscalPeriod,
      acdoca.IsReversal,
      acdoca.ReferenceDocumentType,
      acdoca.ProfitCenter      as ReorgProfitCenter,
      acdoca.Segment           as ReorgSegment,
      acdoca.OrganizationalChange,
      acdoca.PredecessorJournalEntry,
      acdoca.PrdcssrJournalEntryFiscalYear,
      acdoca.PredecessorJournalEntryItem,
      acdoca.AccrualObjectType,
      acdoca.AccrualObject,
      acdoca.AccrualSubobject,
      acdoca.AccrualItemType,
      acdoca.AccrualReferenceObject,
      acdoca.AccrualObjectLogicalSystem,
      acdoca.BalanceTransactionCurrency,
      acdoca.CompanyCodeCurrency,
      acdoca.GlobalCurrency,
      acdoca.FreeDefinedCurrency1,
      acdoca.FreeDefinedCurrency2,
      acdoca.FreeDefinedCurrency3,
      acdoca.FreeDefinedCurrency4,
      acdoca.FreeDefinedCurrency5,
      acdoca.FreeDefinedCurrency6,
      acdoca.FreeDefinedCurrency7,
      acdoca.FreeDefinedCurrency8,
      acdoca.AmountInBalanceTransacCrcy,
      acdoca.AmountInCompanyCodeCurrency,
      acdoca.AmountInGlobalCurrency,
      acdoca.AmountInFreeDefinedCurrency1,
      acdoca.AmountInFreeDefinedCurrency2,
      acdoca.AmountInFreeDefinedCurrency3,
      acdoca.AmountInFreeDefinedCurrency4,
      acdoca.AmountInFreeDefinedCurrency5,
      acdoca.AmountInFreeDefinedCurrency6,
      acdoca.AmountInFreeDefinedCurrency7,
      acdoca.AmountInFreeDefinedCurrency8,

      wl.postingdate           as PostingDate,
      wl.documentdate          as DocumentDate,
      wl.postingkey,
      wl.jrnlperiodendclosingrunloguuid,
      wl.currentfiscalyear,
      wl.newaccountingdocument,
      wl.newledgergllineitem,
      wl.accountingprinciple,
      wl.financialvaluationobjecttype,
      wl.financialvaluationobject,
      wl.financialvaluationsubobject,
      wl.netduedate,
      wl.oldestopenitemnetduedate,
      wl.chartofaccounts,
      wl.accountingdocumentcategory,
      wl.isopenitemmanaged,
      wl.is_cleared_at_keydate as ISCLEAREDATKEYDATE,
      wl.offsettingaccount,
      wl.debitcreditcode,
      wl.exchangerate,
      wl.assignmentreference,
      wl.businesspartner,
      wl.predecessorreferencedoctype,
      wl.predecessorreferencedoccntxt,
      wl.predecessorreferencedocument,
      wl.predecessorreferencedocitem,
      wl.prdcssrjournalentrycompanycode,
      wl.invoiceitemreference,
      wl.invoicereference,
      wl.invoicereferencefiscalyear,
      wl.followondocumenttype,
      wl.accountingdocumentitem,
      wl.clearingdate,
      wl.clearingaccountingdocument,
      wl.clearingdocfiscalyear,
      wl.housebank,
      wl.housebankaccount,
      wl.costctractivitytype,
      wl.wbselementinternalid,
      wl.financialtransactiontype,
      wl.jointventure,
      wl.jointventureequitygroup,
      wl.partnerventure,
      wl.jointventurepartner,
      wl.jointventurecostrecoverycode,
      wl.jointventureequitytype,
      wl.projectnetwork,
      wl.relatednetworkactivity,
      wl.orderid,
      wl.businessprocess,
      wl.salesorder,
      wl.salesorderitem,
      wl.costobject,
      wl.costcenter,
      wl.profitcenter,
      wl.functionalarea,
      wl.businessarea,
      wl.controllingarea,
      wl.segment,
      wl.partnercostcenter,
      wl.partnerprofitcenter,
      wl.partnerfunctionalarea,
      wl.partnerbusinessarea,
      wl.partnercompany,
      wl.partnersegment,
      wl.supplier,
      wl.customer,
      wl.wbselement,
      wl.rebusinessentity,
      wl.realestatebuilding,
      wl.realestateproperty,
      wl.fund,
      wl.budgetperiod,
      wl.grantid,
      wl.pubsecbudgetaccount,
      wl.cashledgeraccount,
      wl.sponsoredprogram,
      wl.sponsoredclass,
      wl.plant,
      wl.product,
      wl.shiptoparty,
      wl.fundedprogram,
      wl.partnerbudgetperiod,
      wl.relatednetworkactivityinternal,
      wl.financialclosinglineitemstatus,
      wl.finclosinglineitemprocessstep,
      wl.financialclosinglineitemtype,
      wl.finclosingentrycalculationtype,
      wl.line_type,
      wl.line_item_status_detail,
      wl.creditriskclass,
      wl.taxcode,
      wl.taxcountry,
      wl.partnerfund,
      wl.partnergrant,
      wl.cashledgercompanycode,
      wl.fundscenter,
      wl.partnerequitygroup,
      wl.account_type          as FinancialAccountType,
      wl.glaccount_type        as GLAccountType,
      wl.customer_supplier_group_key,
      wl.pubsecbudgetaccountcocode,
      wl.servicedocument,
      wl.servicedocumentitem,
      wl.servicedocumenttype,
      wl.material,
      wl.group_id,
      wl.grouping_rule,
      wl.grouping_rule_step,
      wl.marked_for_deletion,
      wl.valuation_rule_step

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEM",
"FINS_CLS_WL"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/