P_SLSORDREVNRECGNREALTMEISS2

DDL: P_SLSORDREVNRECGNREALTMEISS2 SQL: PSOEBRRRTISS2 Type: view CONSUMPTION

Event based rev. rec. Real-time issue

P_SLSORDREVNRECGNREALTMEISS2 is a Consumption CDS View that provides data about "Event based rev. rec. Real-time issue" in SAP S/4HANA. It reads from 5 data sources (P_EBRRSlsOrdRealTmeApplogLong, P_EBRRRealTmeApplogShrt, I_CompanyCode, I_CompanyCode, I_RevnRecgnConstcyLdgrEvalArea) and exposes 33 fields with key field ApplicationLog.

Data Sources (5)

SourceAliasJoin Type
P_EBRRSlsOrdRealTmeApplogLong AppLog from
P_EBRRRealTmeApplogShrt AppLog union
I_CompanyCode CompanyCode inner
I_CompanyCode CompanyCode inner
I_RevnRecgnConstcyLdgrEvalArea ConstcyLdgrEvalArea inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSOEBRRRTISS2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Event based rev. rec. Real-time issue view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY ApplicationLog ApplicationLog Log Number
ReferenceDocumentType P_EBRRRealTmeApplogShrt ReferenceDocumentType Reference Document Type
ReferenceOrganizationalUnits ReferenceOrganizationalUnits
ReferenceDocumentContext ReferenceDocumentContext Reference Document Context
ReferenceDocument
FiscalPeriod FiscalPeriod Tax period
FiscalYear FiscalYear G/L Fiscal Year
CompanyCode I_CompanyCode CompanyCode Receiver Company Code
SalesDocument SD Document
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
NumberOfOpenErrorMessages NumberOfOpenErrorMessages
ApplicationLogHandle ApplicationLogHandle Log Handle
ApplicationLogSubobject ApplicationLogSubobject
CompanyCodeName I_CompanyCode CompanyCodeName Company Name
ToFiscalYearPeriod
FiscalYearPeriod
system_languagekeyApplicationLog
ReferenceDocumentType P_EBRRRealTmeApplogShrt ReferenceDocumentType Reference Document Type
ReferenceOrganizationalUnits ReferenceOrganizationalUnits
ReferenceDocumentContext P_EBRRRealTmeApplogShrt ReferenceDocumentContext Reference Document Context
ReferenceDocument
FiscalPeriod P_EBRRRealTmeApplogShrt FiscalPeriod Tax period
FiscalYear P_EBRRRealTmeApplogShrt FiscalYear G/L Fiscal Year
CompanyCode P_EBRRRealTmeApplogShrt CompanyCode Receiver Company Code
SalesDocument JournalEntryItem SalesDocument SD Document
AccountAssignmentType JournalEntryItem AccountAssignmentType Sndr AcctAssgmt Type
NumberOfOpenErrorMessages NumberOfOpenErrorMessages
ApplicationLogHandle ApplicationLogHandle Log Handle
ApplicationLogSubobject P_EBRRRealTmeApplogShrt ApplicationLogSubobject
CompanyCodeName I_CompanyCode CompanyCodeName Company Name
ToFiscalYearPeriod
FiscalYearPeriod
ReferenceDocumentTypeName ReferenceDocumentTypeText ReferenceDocumentTypeName

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_SLSORDREVNRECGNREALTMEISS2.
-- 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: PSOEBRRRTISS2

CREATE VIEW P_SLSORDREVNRECGNREALTMEISS2 AS
SELECT
  ApplicationLog,
  AppLog.ReferenceDocumentType AS ReferenceDocumentType,
  ReferenceOrganizationalUnits,
  ReferenceDocumentContext,
  LTRIM(AppLog.ReferenceDocument, '0') AS ReferenceDocument,
  FiscalPeriod,
  FiscalYear,
  CompanyCode.CompanyCode AS CompanyCode,
  cast ( SalesDocument as fins_trr_vbeln preserving type) AS SalesDocument,
  AccountAssignmentType,
  NumberOfOpenErrorMessages,
  ApplicationLogHandle,
  ApplicationLogSubobject,
  CompanyCode.CompanyCodeName AS CompanyCodeName,
  concat(AppLog.FiscalPeriod, concat('.', AppLog.FiscalYear) ) AS ToFiscalYearPeriod,
  concat(AppLog.FiscalYear, AppLog.FiscalPeriod) AS FiscalYearPeriod,
  ReferenceDocumentTypeText.ReferenceDocumentTypeName as ReferenceDocumentTypeName AS system_languagekeyApplicationLog,
  ReferenceDocumentTypeText.ReferenceDocumentTypeName AS ReferenceDocumentTypeName
FROM P_EBRRSlsOrdRealTmeApplogLong AS AppLog
INNER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_RevnRecgnConstcyLdgrEvalArea AS ConstcyLdgrEvalArea ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): P_EBRRRealTmeApplogShrt
;