C_ServiceOrderQry2401
Service Orders Actuals
C_ServiceOrderQry2401 (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_ServiceOrderQry2401 is a Consumption CDS View that provides data about "Service Orders Actuals" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItemCube) and exposes 59 fields. Part of development package FINS_FIS_FICO_APPS.
SAP Help Documentation
| Category | CDS Views for Sales Accounting |
|---|---|
| Data Category | Query |
| Status | Released |
| Data Extraction Type | Full according to CDS parameters |
| Corresponding DataSource | 2CCFISERVORDQ2401 |
Purpose
This CDS view provides the prerequisites for answering the following business questions: What are the actual amounts for each service order, service order item, and G/L account in transaction currency? What are the actual amounts for each service order, service order item, and G/L account in company code currency? What are the actual amounts for each service order, service order item, and G/L account in global currency? For all three currency types, you can drill down for further relevant characteristics.
Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above. In this role, the following restrictions must be set to read access: Ledger: F_FAGL_LDR (GLRLDNR) Company Code: F_BKPF_BUK (BKRS) or F_CC_HIER Company Code Authorization Group: F_BKPF_BES Supplier Authorization Group: F_BKPF_BEK Customer Authorization Group: F_BKPF_BED Authorization Context for DCLs: F_ACDOCA_C ('SALES') Summary and Line Items Reporting: K_PCAR_REP Profit Center Hierarchie: K_PCA_HIER CRM Order: CRM_ORD_PR Sales Organizational Units of Service Transactions: CRMS4_SLSO Sales Document Types: V_VBAK_AAT Sales Document Sales Areas: V_VBAK_VKO Reporting on Cost Centers: K_REPO_CCA Cost Center Hierarchies: K_CCA_HIER Financial Account Type: F_BKPF_KOA (KOART) Business Area: F_BKPF_GSB (GSBER) Segment: F_FAGL_SEG (SEGMENT) These restrictions are edited in the Maintain Business Roles app.
Structure
Main CDS parameters and filters The main CDS parameters are: Ledger Ledger Fiscal Year Fiscal Period Company Code Sales Organization Customer Group Customer Profit Center Service Document Type Service Document Service Document Item Service Contract Service Contract Item GL Account Hierarchy GL Account Measures and attributes Some important measures and attributes are: Measures Actual Amount in Transaction Currency Actual Amount in Company Code Currency Actual Amount in Global Currency Quantity Attributes GL Account Service Document Type Service Document Service Document Item Other relevant dimensions are available as free characteristics.
This CDS view provides the prerequisites for answering the following business questions: What are the actual amounts for each service order, service order item, and G/L account in transaction currency? What are the actual amounts for each service order, service order item, and G/L account in company code currency? What are the actual amounts for each service order, service order item, and G/L account in global currency? For all three currency types, you can drill down for further relevant characteristics.
Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above. In this role, the following restrictions must be set to read access: Ledger: F_FAGL_LDR (GLRLDNR) Company Code: F_BKPF_BUK (BKRS) or F_CC_HIER Company Code Authorization Group: F_BKPF_BES Supplier Authorization Group: F_BKPF_BEK Customer Authorization Group: F_BKPF_BED Authorization Context for DCLs: F_ACDOCA_C ('SALES') Summary and Line Items Reporting: K_PCAR_REP Profit Center Hierarchie: K_PCA_HIER CRM Order: CRM_ORD_PR Sales Organizational Units of Service Transactions: CRMS4_SLSO Sales Document Types: V_VBAK_AAT Sales Document Sales Areas: V_VBAK_VKO Reporting on Cost Centers: K_REPO_CCA Cost Center Hierarchies: K_CCA_HIER Financial Account Type: F_BKPF_KOA (KOART) Business Area: F_BKPF_GSB (GSBER) Segment: F_FAGL_SEG (SEGMENT) These restrictions are edited in the Maintain Business Roles app.
Structure
Main CDS parameters and filters The main CDS parameters are: Ledger Ledger Fiscal Year Fiscal Period Company Code Sales Organization Customer Group Customer Profit Center Service Document Type Service Document Service Document Item Service Contract Service Contract Item GL Account Hierarchy GL Account Measures and attributes Some important measures and attributes are: Measures Actual Amount in Transaction Currency Actual Amount in Company Code Currency Actual Amount in Global Currency Quantity Attributes GL Account Service Document Type Service Document Service Document Item Other relevant dimensions are available as free characteristics.
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Accounting and Financial Close |
| Application Component | FI-FIO-GL-2CL |
| Capabilities | Analytical Query |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItemCube | I_JournalEntryItemCube | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date | |
| P_Language | sylangu | |
| P_BusinessUser | syuname | |
| P_ControllingArea | kokrs | |
| P_Ledger | fins_ledger |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFISERVORDQ2401 | view | |
| EndUserText.label | Service Orders Actuals | view | |
| VDM.viewType | #CONSUMPTION | view | |
| OData.publish | true | 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 (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementControllingArea | ||||
| resultElementLedger | ||||
| ServiceDocument | ServiceDocument | Service Document ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document Item ID | ||
| ServiceContract | ServiceContract | Service Contract ID | ||
| ServiceContractType | ServiceContractType | Service Contract Type | ||
| ServiceContractItem | ServiceContractItem | Service Contract Item ID | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAccountName | G/L Account Name | |||
| FREEBaseUnit | ||||
| BillableControl | BillableControl | Billable Control | ||
| BusinessTransactionType | BusinessTransactionType | Business Transaction Type | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| CalendarYear | CalendarYear | Calendar Year | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Name of Company Code or Company | |
| CompanyCodeCurrency | CompanyCodeCurrency | Company Code Currency | ||
| Customer | Customer | Customer Number | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| Equipment | Equipment | Equipment Number | ||
| 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 | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| FunctionalAreaName | Name of the Functional Area | |||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| LedgerGLLineItem | LedgerGLLineItem | General Ledger Journal Entry Line Item | ||
| LedgerFiscalYear | LedgerFiscalYear | Fiscal Year of Ledger | ||
| TimeSheetOvertimeCategory | TimeSheetOvertimeCategory | Overtime Category | ||
| PartnerCostCtrActivityType | PartnerCostCtrActivityType | Partner Cost Center Activity Type | ||
| PartnerCostCenter | PartnerCostCenter | Partner Cost Center | ||
| PartnerProfitCenter | PartnerProfitCenter | Partner Profit Center | ||
| PersonnelNumber | PersonnelNumber | Personnel Number | ||
| EmployeeFullName | EmployeeFullName | Full Name | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| Product | Product | Product Sold | ||
| SoldProduct | SoldProduct | Product Sold | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | Description of Profit Center | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SoldProductGroup | Product Sold Group | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CalendarYearMonth | CalendarYearMonth | Year Month | ||
| CalendarYearQuarter | CalendarYearQuarter | Year Quarter | ||
| CalendarYearWeek | CalendarYearWeek | Year Week | ||
| BusinessSolutionOrder | BusinessSolutionOrder | Solution Order | ||
| BusinessSolutionOrderItem | BusinessSolutionOrderItem | Solution Order Item | ||
| KeyFiguresAmountInTransactionCurrency | ||||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Amount in Company Code Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| Quantity | Quantity | 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_ServiceOrderQry2401.
-- 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: CFISERVORDQ2401
-- Parameters: P_KeyDate : vdm_v_key_date, P_Language : sylangu, P_BusinessUser : syuname, P_ControllingArea : kokrs, P_Ledger : fins_ledger
CREATE VIEW C_ServiceOrderQry2401 AS
SELECT
resultElement: 'ControllingArea' AS resultElementControllingArea,
resultElement: 'Ledger' AS resultElementLedger,
ServiceDocument,
ServiceDocumentItem,
ServiceContract,
ServiceContractType,
ServiceContractItem,
GLAccount,
_GLAccountInChartOfAccounts._Text[1:Language = $parameters.P_Language].GLAccountName AS GLAccountName,
BillableControl,
BusinessTransactionType,
CalendarMonth,
CalendarQuarter,
CalendarWeek,
CalendarYear,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
CompanyCodeCurrency,
Customer,
CustomerGroup,
DistributionChannel,
OrganizationDivision,
Equipment,
FiscalPeriod,
FiscalQuarter,
FiscalWeek,
FiscalYearPeriod,
FiscalYearQuarter,
FiscalYearWeek,
FunctionalArea,
_FunctionalArea._Text[1:Language = $parameters.P_Language].FunctionalAreaName AS FunctionalAreaName,
GlobalCurrency,
AccountingDocument,
LedgerGLLineItem,
LedgerFiscalYear,
TimeSheetOvertimeCategory,
PartnerCostCtrActivityType,
PartnerCostCenter,
PartnerProfitCenter,
PersonnelNumber,
EmployeeFullName,
PostingDate,
Product,
SoldProduct,
ProfitCenter,
_ProfitCenter[1:ValidityEndDate >= $parameters.P_KeyDate and ValidityStartDate <= $parameters.P_KeyDate]._Text[1:Language = $parameters.P_Language].ProfitCenterName AS ProfitCenterName,
SalesOrganization,
cast(SoldProductGroup as fis_soldproductgroup preserving type) AS SoldProductGroup,
TransactionCurrency,
CalendarYearMonth,
CalendarYearQuarter,
CalendarYearWeek,
BusinessSolutionOrder,
BusinessSolutionOrderItem,
AmountInCompanyCodeCurrency,
AmountInGlobalCurrency,
Quantity
FROM I_JournalEntryItemCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA