P_GLE_ADB_GR_07

DDL: P_GLE_ADB_GR_07 SQL: PGLEADBGR_07 Type: view COMPOSITE

P_GLE_ADB_GR_07 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_GLE_ADB_GR_06) and exposes 75 fields with key field ConsolidationRecordNumber.

Data Sources (1)

SourceAliasJoin Type
P_GLE_ADB_GR_06 P_GLE_ADB_GR_06 from

Parameters (12)

NameTypeDefault
P_FiscalYearStartDate gle_dte_adb_keydate
P_FiscalHalfYearStartDate gle_dte_adb_keydate
P_FiscalQuarterStartDate gle_dte_adb_keydate
P_FiscalMonthStartDate gle_dte_adb_keydate
P_ReportingDate gle_dte_adb_keydate
P_ConsolidationDimension fc_dimen
P_ConsolidationUnit fc_bunit
P_ConsolidationVersion fc_rvers
P_FiscalYearPeriod fincs_fiscalyearper
P_CreationDateTimeRgFr gle_dte_adb_timestamp
P_CreationDateTimeRgTo gle_dte_adb_timestamp
P_ArchiveDataIsIncluded abap_boolean

Annotations (12)

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

Fields (75)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationRecordNumber
PostingLevel
ConsolidationGroup
ConsolidationLedger
ConsolidationVersion
AccountingDocument
Ledger P_GLE_ADB_GR_06 Ledger Ledger
LedgerGLLineItem P_GLE_ADB_GR_06 LedgerGLLineItem Journal Entry Item
FiscalYear P_GLE_ADB_GR_06 FiscalYear G/L Fiscal Year
ReferenceFiscalYear P_GLE_ADB_GR_06 ReferenceFiscalYear Original FY
TransactionCurrency
BaseUnit
FiscalPeriod
ConsolidationDimension
ConsolidationUnit
ConsolidationChartOfAccounts
FinancialStatementItem
PartnerConsolidationUnit
CompanyCode
SubItemCategory
SubItem
tsl_m tsl_m
tsl_q tsl_q
tsl_h tsl_h
tsl_y tsl_y
hsl_m hsl_m
hsl_q hsl_q
hsl_h hsl_h
hsl_y hsl_y
ksl_m ksl_m
ksl_q ksl_q
ksl_h ksl_h
ksl_y ksl_y
LocalCurrency
GroupCurrency
GLAccount P_GLE_ADB_GR_06 GLAccount General Ledger
CostCenter P_GLE_ADB_GR_06 CostCenter Cost Center
ProfitCenter P_GLE_ADB_GR_06 ProfitCenter Profit Center
FunctionalArea P_GLE_ADB_GR_06 FunctionalArea Sendr Fctl Area
BusinessArea P_GLE_ADB_GR_06 BusinessArea Business Area
Segment P_GLE_ADB_GR_06 Segment Segment number
FinancialTransactionType P_GLE_ADB_GR_06 FinancialTransactionType Transact. Type
ReferenceDocumentNumber
ChartOfAccounts P_GLE_ADB_GR_06 ChartOfAccounts Node Class
AssignmentReference P_GLE_ADB_GR_06 AssignmentReference Assignment Reference
ControllingArea P_GLE_ADB_GR_06 ControllingArea Controlling Area
PartnerCostCenter P_GLE_ADB_GR_06 PartnerCostCenter Sender Cost Ctr
PartnerProfitCenter P_GLE_ADB_GR_06 PartnerProfitCenter Profit Center
PartnerFunctionalArea P_GLE_ADB_GR_06 PartnerFunctionalArea Rec. Fntcl Area
PartnerBusinessArea P_GLE_ADB_GR_06 PartnerBusinessArea Trdg Part.BA
PartnerCompany P_GLE_ADB_GR_06 PartnerCompany Trading Partner
PartnerSegment P_GLE_ADB_GR_06 PartnerSegment Partner Segment
OrderID P_GLE_ADB_GR_06 OrderID Order ID
Customer P_GLE_ADB_GR_06 Customer Sold-to Party
Supplier P_GLE_ADB_GR_06 Supplier Supplier
Material P_GLE_ADB_GR_06 Material Vehicle Model
MaterialGroup P_GLE_ADB_GR_06 MaterialGroup Product Group
Plant P_GLE_ADB_GR_06 Plant Valuation Area
WBSElementExternalID
Project
BillingDocumentType P_GLE_ADB_GR_06 BillingDocumentType Billing Type
SalesOrganization P_GLE_ADB_GR_06 SalesOrganization Sales Organization
DistributionChannel P_GLE_ADB_GR_06 DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision P_GLE_ADB_GR_06 OrganizationDivision Org. Division
SoldProduct P_GLE_ADB_GR_06 SoldProduct Product Sold
SoldProductGroup P_GLE_ADB_GR_06 SoldProductGroup Product Sold Group
CustomerGroup P_GLE_ADB_GR_06 CustomerGroup Customer Group
CustomerSupplierCountry P_GLE_ADB_GR_06 CustomerSupplierCountry Customer or Supplier Country/Region
CustomerSupplierIndustry P_GLE_ADB_GR_06 CustomerSupplierIndustry Industry
SalesDistrict P_GLE_ADB_GR_06 SalesDistrict Sales District
BillToParty P_GLE_ADB_GR_06 BillToParty Inv. Recipient
ShipToParty P_GLE_ADB_GR_06 ShipToParty Ship-To Party (obsolete)
CustomerSupplierCorporateGroup P_GLE_ADB_GR_06 CustomerSupplierCorporateGroup Group
CreationDateTime P_GLE_ADB_GR_06 CreationDateTime Timestamp
WBSElementInternalID

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_GLE_ADB_GR_07.
-- 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: PGLEADBGR_07
-- Parameters: P_FiscalYearStartDate : gle_dte_adb_keydate, P_FiscalHalfYearStartDate : gle_dte_adb_keydate, P_FiscalQuarterStartDate : gle_dte_adb_keydate, P_FiscalMonthStartDate : gle_dte_adb_keydate, P_ReportingDate : gle_dte_adb_keydate, P_ConsolidationDimension : fc_dimen, P_ConsolidationUnit : fc_bunit, P_ConsolidationVersion : fc_rvers, P_FiscalYearPeriod : fincs_fiscalyearper, P_CreationDateTimeRgFr : gle_dte_adb_timestamp, P_CreationDateTimeRgTo : gle_dte_adb_timestamp, P_ArchiveDataIsIncluded : abap_boolean

CREATE VIEW P_GLE_ADB_GR_07 AS
SELECT
  cast('' as gu_recid) AS ConsolidationRecordNumber,
  cast(' ' as fc_plevl) AS PostingLevel,
  cast(' ' as fc_congr) AS ConsolidationGroup,
  cast(P_GLE_ADB_GR_06.ConsolidationLedger as rldnr) AS ConsolidationLedger,
  cast( cast(P_GLE_ADB_GR_06.ConsolidationVersion as abap.char(3)) as rvers) AS ConsolidationVersion,
  cast(P_GLE_ADB_GR_06.AccountingDocument as belnr_d) AS AccountingDocument,
  P_GLE_ADB_GR_06.Ledger AS Ledger,
  P_GLE_ADB_GR_06.LedgerGLLineItem AS LedgerGLLineItem,
  P_GLE_ADB_GR_06.FiscalYear AS FiscalYear,
  P_GLE_ADB_GR_06.ReferenceFiscalYear AS ReferenceFiscalYear,
  cast(P_GLE_ADB_GR_06.BalanceTransactionCurrency as rtcur) AS TransactionCurrency,
  cast(P_GLE_ADB_GR_06.BaseUnit as meins) AS BaseUnit,
  cast(P_GLE_ADB_GR_06.FiscalPeriod as poper) AS FiscalPeriod,
  cast(P_GLE_ADB_GR_06.ConsolidationDimension as fc_dimen) AS ConsolidationDimension,
  cast(P_GLE_ADB_GR_06.ConsolidationUnit as fincs_consolidationunit) AS ConsolidationUnit,
  cast(P_GLE_ADB_GR_06.ConsolidationChartOfAccounts as fc_itclg) AS ConsolidationChartOfAccounts,
  cast(P_GLE_ADB_GR_06.FinancialStatementItem as fc_item) AS FinancialStatementItem,
  cast(coalesce(P_GLE_ADB_GR_06.PartnerConsolidationUnit,'') as fincs_partnerconsolidationunit) AS PartnerConsolidationUnit,
  cast(P_GLE_ADB_GR_06.CompanyCode as obukr) AS CompanyCode,
  cast(P_GLE_ADB_GR_06.SubItemCategory as fc_sityp) AS SubItemCategory,
  cast(P_GLE_ADB_GR_06.SubItem as fc_sitem) AS SubItem,
  tsl_m,
  tsl_q,
  tsl_h,
  tsl_y,
  hsl_m,
  hsl_q,
  hsl_h,
  hsl_y,
  ksl_m,
  ksl_q,
  ksl_h,
  ksl_y,
  cast(P_GLE_ADB_GR_06.rlcurr as lcurr) AS LocalCurrency,
  cast(P_GLE_ADB_GR_06.rgcurr as gcurr) AS GroupCurrency,
  P_GLE_ADB_GR_06.GLAccount AS GLAccount,
  P_GLE_ADB_GR_06.CostCenter AS CostCenter,
  P_GLE_ADB_GR_06.ProfitCenter AS ProfitCenter,
  P_GLE_ADB_GR_06.FunctionalArea AS FunctionalArea,
  P_GLE_ADB_GR_06.BusinessArea AS BusinessArea,
  P_GLE_ADB_GR_06.Segment AS Segment,
  P_GLE_ADB_GR_06.FinancialTransactionType AS FinancialTransactionType,
  cast('' as xblnr1) AS ReferenceDocumentNumber,
  P_GLE_ADB_GR_06.ChartOfAccounts AS ChartOfAccounts,
  P_GLE_ADB_GR_06.AssignmentReference AS AssignmentReference,
  P_GLE_ADB_GR_06.ControllingArea AS ControllingArea,
  P_GLE_ADB_GR_06.PartnerCostCenter AS PartnerCostCenter,
  P_GLE_ADB_GR_06.PartnerProfitCenter AS PartnerProfitCenter,
  P_GLE_ADB_GR_06.PartnerFunctionalArea AS PartnerFunctionalArea,
  P_GLE_ADB_GR_06.PartnerBusinessArea AS PartnerBusinessArea,
  P_GLE_ADB_GR_06.PartnerCompany AS PartnerCompany,
  P_GLE_ADB_GR_06.PartnerSegment AS PartnerSegment,
  P_GLE_ADB_GR_06.OrderID AS OrderID,
  P_GLE_ADB_GR_06.Customer AS Customer,
  P_GLE_ADB_GR_06.Supplier AS Supplier,
  P_GLE_ADB_GR_06.Material AS Material,
  P_GLE_ADB_GR_06.MaterialGroup AS MaterialGroup,
  P_GLE_ADB_GR_06.Plant AS Plant,
  cast(P_GLE_ADB_GR_06.WBSElementExternalID as fis_wbsext_no_conv) AS WBSElementExternalID,
  cast(P_GLE_ADB_GR_06.Project as fis_project_no_conv) AS Project,
  P_GLE_ADB_GR_06.BillingDocumentType AS BillingDocumentType,
  P_GLE_ADB_GR_06.SalesOrganization AS SalesOrganization,
  P_GLE_ADB_GR_06.DistributionChannel AS DistributionChannel,
  P_GLE_ADB_GR_06.OrganizationDivision AS OrganizationDivision,
  P_GLE_ADB_GR_06.SoldProduct AS SoldProduct,
  P_GLE_ADB_GR_06.SoldProductGroup AS SoldProductGroup,
  P_GLE_ADB_GR_06.CustomerGroup AS CustomerGroup,
  P_GLE_ADB_GR_06.CustomerSupplierCountry AS CustomerSupplierCountry,
  P_GLE_ADB_GR_06.CustomerSupplierIndustry AS CustomerSupplierIndustry,
  P_GLE_ADB_GR_06.SalesDistrict AS SalesDistrict,
  P_GLE_ADB_GR_06.BillToParty AS BillToParty,
  P_GLE_ADB_GR_06.ShipToParty AS ShipToParty,
  P_GLE_ADB_GR_06.CustomerSupplierCorporateGroup AS CustomerSupplierCorporateGroup,
  P_GLE_ADB_GR_06.CreationDateTime AS CreationDateTime,
  cast(P_GLE_ADB_GR_06.WBSElementInternalID as fis_wbsint_no_conv) AS WBSElementInternalID
FROM P_GLE_ADB_GR_06
;