C_MarketSegmentQ2501

DDL: C_MARKETSEGMENTQ2501 SQL: CFIMARKSEGMQ2501 Type: view CONSUMPTION Package: FINS_FIS_FICO_APPS

Market Segments Actuals

C_MarketSegmentQ2501 (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

C_MarketSegmentQ2501 is a Consumption CDS View that provides data about "Market Segments Actuals" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItemCube) and exposes 78 fields. Part of development package FINS_FIS_FICO_APPS.

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-FIO-GL-2CL
CapabilitiesAnalytical Query
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul><li><p>What are the actual amounts per customer group, material group, and G/L account in transaction currency?</p></li> <li><p>What are the actual amounts per customer group, material group, and G/L account in company code currency?</p></li> <li><p>What are the actual amounts per customer group, material group, and G/L account in global currency?</p></li> </ul> <p>For all three currency types, you can drill down for further relevant characteristics.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItemCube I_JournalEntryItemCube from

Parameters (5)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_Language sylangu
P_BusinessUser syuname
P_ControllingArea kokrs
P_Ledger fins_ledger

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CFIMARKSEGMQ2501 view
EndUserText.label Market Segments Actuals view
VDM.viewType #CONSUMPTION view
Analytics.query true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Analytics.settings.maxProcessingEffort #HIGH view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (78)

KeyFieldSource TableSource FieldDescription
resultElementControllingArea
resultElementLedger
SoldProductGroup SoldProductGroup Product Sold Group
GLAccount GLAccount General Ledger
GLAccountName G/L Account Name
FREECostCtrActivityType
BusinessTransactionType BusinessTransactionType Business Transaction Type
CalendarMonth CalendarMonth Calendar Month
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarWeek CalendarWeek Calendar Week
CalendarYear CalendarYear Calendar Year
ChartOfAccounts ChartOfAccounts Chart of Accounts
CompanyCode CompanyCode Receiver Company Code
CompanyCodeCurrency CompanyCodeCurrency Company Code Currency
CostCenter CostCenter Cost Center
CostSourceUnit CostSourceUnit Cost Source Unit
CustomerSupplierCountry CustomerSupplierCountry Customer or Supplier Country/Region
Customer Customer Customer Number
DistributionChannel DistributionChannel Distribution Channel
OrganizationDivision OrganizationDivision Org. Division
ControllingDebitCreditCode ControllingDebitCreditCode Controlling Debit Credit Code
FiscalPeriod FiscalPeriod Fiscal Period
FiscalQuarter FiscalQuarter Fiscal Quarter
FiscalWeek FiscalWeek Fiscal Week
FiscalYearPeriod FiscalYearPeriod Fiscal Year Period
FiscalYearQuarter FiscalYearQuarter Fiscal Year + Fiscal Quarter
FiscalYearWeek FiscalYearWeek Fiscal Year + Fiscal Week
FiscalYearVariant FiscalYearVariant Fiscal Year Variant
FunctionalArea FunctionalArea Sendr Fctl Area
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
AccountingDocument AccountingDocument Journal Entry
LedgerGLLineItem LedgerGLLineItem General Ledger Journal Entry Line Item
Material Material Material Number
MaterialGroup Material Group
LedgerFiscalYear LedgerFiscalYear Fiscal Year of Ledger
AccountAssignmentType AccountAssignmentType Account Assignment Type
OrderID OrderID Order ID
OriginProfitCenter OriginProfitCenter Origin Profit Center
PartnerCostCenter PartnerCostCenter Partner Cost Center
PartnerFunctionalArea PartnerFunctionalArea Partner Functional Area
PartnerOrder PartnerOrder_2 Partner Order
PartnerProfitCenter PartnerProfitCenter Partner Profit Center
PartnerProject PartnerProject Partner Project
PartnerWBSElement PartnerWBSElement Partner WBS Element
PersonnelNumber PersonnelNumber Personnel Number
EmployeeFullName EmployeeFullName Full Name
Plant Plant Valuation Area
Product Product Product Sold
SoldProduct SoldProduct Product Sold
ProfitCenter ProfitCenter Profit Center
Project Project WBS Element
CostAnalysisResource CostAnalysisResource Cost Analysis Resource
CostAnalysisResourceName Cost Analysis Resource Name
SalesDistrict SalesDistrict Sales District
SalesDocument SalesDocument Sales Document
SalesDocumentItem SalesDocumentItem Sales Document Item
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrganization SalesOrganization Sales Organization
Segment Segment Segment for Segmental Reporting
ServiceDocument ServiceDocument Service Document ID
ServiceDocumentItem ServiceDocumentItem Service Document Item ID
ServiceDocumentType ServiceDocumentType Service Document Type
SoldMaterial Sold Material
BusinessSolutionOrder BusinessSolutionOrder Solution Order
BusinessSolutionOrderItem BusinessSolutionOrderItem Solution Order Item
PartnerCompany PartnerCompany Company ID of Trading Partner
TransactionCurrency TransactionCurrency Transaction Currency
WBSElement WBSElement WBS Internal ID
WorkItem WorkItem Work Item ID
WorkItemName _WorkPackageWorkItem WorkItemName Work Item Name
CalendarYearMonth CalendarYearMonth Year Month
CalendarYearQuarter CalendarYearQuarter Year Quarter
CalendarYearWeek CalendarYearWeek Year Week
AmountInTransactionCurrency AmountInTransactionCurrency Amount in Transaction Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Actual Amount in Company Code Crcy
AmountInGlobalCurrency AmountInGlobalCurrency Actual Amount in Global Crcy
ValuationQuantity ValuationQuantity Valuation Quantity

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 C_MarketSegmentQ2501.
-- 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: CFIMARKSEGMQ2501
-- Parameters: P_KeyDate : vdm_v_key_date, P_Language : sylangu, P_BusinessUser : syuname, P_ControllingArea : kokrs, P_Ledger : fins_ledger

CREATE VIEW C_MarketSegmentQ2501 AS
SELECT
  resultElement: 'ControllingArea' AS resultElementControllingArea,
  resultElement: 'Ledger' AS resultElementLedger,
  SoldProductGroup,
  GLAccount,
  _GLAccountInChartOfAccounts._Text[1:Language = $parameters.P_Language].GLAccountName AS GLAccountName,
  BusinessTransactionType,
  CalendarMonth,
  CalendarQuarter,
  CalendarWeek,
  CalendarYear,
  ChartOfAccounts,
  CompanyCode,
  CompanyCodeCurrency,
  CostCenter,
  CostSourceUnit,
  CustomerSupplierCountry,
  Customer,
  DistributionChannel,
  OrganizationDivision,
  ControllingDebitCreditCode,
  FiscalPeriod,
  FiscalQuarter,
  FiscalWeek,
  FiscalYearPeriod,
  FiscalYearQuarter,
  FiscalYearWeek,
  FiscalYearVariant,
  FunctionalArea,
  GlobalCurrency,
  AccountingDocument,
  LedgerGLLineItem,
  Material,
  cast(MaterialGroup as matkl preserving type) AS MaterialGroup,
  LedgerFiscalYear,
  AccountAssignmentType,
  OrderID,
  OriginProfitCenter,
  PartnerCostCenter,
  PartnerFunctionalArea,
  PartnerOrder_2 AS PartnerOrder,
  PartnerProfitCenter,
  PartnerProject,
  PartnerWBSElement,
  PersonnelNumber,
  EmployeeFullName,
  Plant,
  Product,
  SoldProduct,
  ProfitCenter,
  Project,
  CostAnalysisResource,
  _CostAnalysisResource[1:ValidityEndDate >= $parameters.P_KeyDate and ValidityStartDate <= $parameters.P_KeyDate]._Text[1:Language = $parameters.P_Language].CostAnalysisResourceName AS CostAnalysisResourceName,
  SalesDistrict,
  SalesDocument,
  SalesDocumentItem,
  SalesOrder,
  SalesOrderItem,
  SalesOrganization,
  Segment,
  ServiceDocument,
  ServiceDocumentItem,
  ServiceDocumentType,
  cast(SoldMaterial as fis_sold_material preserving type) AS SoldMaterial,
  BusinessSolutionOrder,
  BusinessSolutionOrderItem,
  PartnerCompany,
  TransactionCurrency,
  WBSElement,
  WorkItem,
  _WorkPackageWorkItem.WorkItemName AS WorkItemName,
  CalendarYearMonth,
  CalendarYearQuarter,
  CalendarYearWeek,
  AmountInTransactionCurrency,
  AmountInCompanyCodeCurrency,
  AmountInGlobalCurrency,
  ValuationQuantity
FROM I_JournalEntryItemCube
;