C_UtilsDeviceStockQuery
Device Stock Query
Device Stock - Query
C_UtilsDeviceStockQuery (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Utilities
C_UtilsDeviceStockQuery is a Consumption CDS View that provides data about "Device Stock Query" in SAP S/4HANA. It reads from 1 data source (I_UtilsDeviceStock) and exposes 22 fields.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Utilities |
| Application Component | IS-U-DM |
| Capabilities | Analytical Query |
| Package | Utilities for SAP S/4HANA |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA, onpremise edition — Explore SAP S/4HANA Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_UtilsDeviceStock | I_UtilsDeviceStock | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_KeyDate | e_keydate_vdm |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Device Stock Query | view | |
| Analytics.query | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.sqlViewName | CEDEVICESTOCKQ | view | |
| ObjectModel.usageType.serviceQuality | D | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.dataClass | MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| UtilitiesDeviceCategory | I_UtilsDeviceStock | UtilitiesDeviceCategory | Device Category | |
| UtilsDeviceFunctionClass | I_UtilsDeviceStock | UtilsDeviceFunctionClass | Function class | |
| UtilsDeviceConstructionClass | I_UtilsDeviceStock | UtilsDeviceConstructionClass | Construction class | |
| Division | I_UtilsDeviceStock | Division | Internal Division ID | |
| DivisionName | Division Description | |||
| Plant | I_UtilsDeviceStock | Plant | Valuation Area | |
| PlantName | I_UtilsDeviceStock | PlantName | Plant Name | |
| StorageLocation | I_UtilsDeviceStock | StorageLocation | Storage Location | |
| StorageLocationName | I_UtilsDeviceStock | StorageLocationName | Storage Location Name | |
| UtilsDeviceCategoryDescription | I_UtilsDeviceStock | UtilsDeviceCategoryDescription | Device Category Name | |
| UtilsDeviceAdvncdMeterCat | I_UtilsDeviceStock | UtilsDeviceAdvncdMeterCat | Advanced Meter | |
| UtilsDeviceAdvncdMeterCatName | Short Text for Fixed Values | |||
| AssetManufacturerName | I_UtilsDeviceStock | AssetManufacturerName | Manufacturer of Asset | |
| ManufacturerPartTypeName | I_UtilsDeviceStock | ManufacturerPartTypeName | Manufacturer model number | |
| UtilitiesDevice | I_UtilsDeviceStock | UtilitiesDevice | Equipment Number | |
| SerialNumber | I_UtilsDeviceStock | SerialNumber | Serial Number | |
| ConstructionYear | I_UtilsDeviceStock | ConstructionYear | Device Construction Year | |
| AdvancedMeteringSystem | I_UtilsDeviceStock | AdvancedMeteringSystem | Advanced Metering System | |
| GoodsMovementStockType | I_UtilsDeviceStock | GoodsMovementStockType | Stock Type of Goods Movement (Primary Posting) | |
| InventorySpecialStockType | I_UtilsDeviceStock | InventorySpecialStockType | Special Stock Indicator | |
| Batch | I_UtilsDeviceStock | Batch | Batch Number | |
| NmbrOfStockDevices | I_UtilsDeviceStock | NmbrOfStockDevices | Number of Devices in Stock |
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_UtilsDeviceStockQuery.
-- 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: CEDEVICESTOCKQ
-- Parameters: P_Language : sylangu, P_KeyDate : e_keydate_vdm
CREATE VIEW C_UtilsDeviceStockQuery AS
SELECT
I_UtilsDeviceStock.UtilitiesDeviceCategory AS UtilitiesDeviceCategory,
I_UtilsDeviceStock.UtilsDeviceFunctionClass AS UtilsDeviceFunctionClass,
I_UtilsDeviceStock.UtilsDeviceConstructionClass AS UtilsDeviceConstructionClass,
I_UtilsDeviceStock.Division AS Division,
I_UtilsDeviceStock._Division._Text[1: Language=$parameters.P_Language].DivisionName AS DivisionName,
I_UtilsDeviceStock.Plant AS Plant,
I_UtilsDeviceStock.PlantName AS PlantName,
I_UtilsDeviceStock.StorageLocation AS StorageLocation,
I_UtilsDeviceStock.StorageLocationName AS StorageLocationName,
I_UtilsDeviceStock.UtilsDeviceCategoryDescription AS UtilsDeviceCategoryDescription,
I_UtilsDeviceStock.UtilsDeviceAdvncdMeterCat AS UtilsDeviceAdvncdMeterCat,
I_UtilsDeviceStock._UtilsDvceAdvncdMeterCat._UtilsDvceAdvncdMeterCatText[1: Language=$parameters.P_Language].UtilsDeviceAdvncdMeterCatName AS UtilsDeviceAdvncdMeterCatName,
I_UtilsDeviceStock.AssetManufacturerName AS AssetManufacturerName,
I_UtilsDeviceStock.ManufacturerPartTypeName AS ManufacturerPartTypeName,
I_UtilsDeviceStock.UtilitiesDevice AS UtilitiesDevice,
I_UtilsDeviceStock.SerialNumber AS SerialNumber,
I_UtilsDeviceStock.ConstructionYear AS ConstructionYear,
I_UtilsDeviceStock.AdvancedMeteringSystem AS AdvancedMeteringSystem,
I_UtilsDeviceStock.GoodsMovementStockType AS GoodsMovementStockType,
I_UtilsDeviceStock.InventorySpecialStockType AS InventorySpecialStockType,
I_UtilsDeviceStock.Batch AS Batch,
I_UtilsDeviceStock.NmbrOfStockDevices AS NmbrOfStockDevices
FROM I_UtilsDeviceStock
;
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