I_StoreStockAdjustment
Store Stock Adjustment
I_StoreStockAdjustment (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
StoreStockAdjustment · Cross Applications
I_StoreStockAdjustment is a Basic CDS View (Dimension) that provides data about "Store Stock Adjustment" in SAP S/4HANA. It reads from 1 data source (rfm_st_stkadj) and exposes 15 fields with key fields Store, StoreStockAdjustmentUUID. It has 2 associations to related views. Part of development package RFM_STORE_STOCK_ADJUSTMENT.
SAP Help Documentation
| Category | In-Store Inventory Management |
|---|---|
| Data Category | Dimension |
| Status | Processing Status of the Stock Adjustment |
This CDS view provides details of stock adjustment in the Adjust Mass Stock application. This CDS view provides the data to answer the following business questions: How many stock adjustments are created in the assigned store? What are the selected storage location and the reason for stock adjustments? What is the goods movement type for stock adjustments? What is the status of stock adjustments? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: WERKS (Plant)
Structure
Business Objects This view is built on the Store Stock Adjustment ( StoreStockAdjustment ) business object. Important Fields Important fields in this view include the following: Field Name Description Store Retail plant Note This is a key field. StoreStockAdjustmentUUID Unique Identifier for New Stock Adjustment Note This is a key field. GoodsMovementType Movement Type (Inventory Management) StockAdjustmentReason Stock Adjustment Reason StorageLocation Storage Location StockAdjustmentStatus Processing Status of the Stock Adjustment MaterialDocument Number of Material Document CreatedByUser Name of Person Responsible for Creating the Object CreationDateTime Creation date and time of Stock Adjustment LastChangedByUser User Who Last Changed the Business Document LastChangeDateTime UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) CreationDate Date LastChangeDate Date
Data Extraction
Data Extraction Type Full (physical deletions are possible in source tables) Delta (change data capture)
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | LO-RFM-STO-FIO-2CL |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Analytical Dimension |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view provides details of stock adjustment in the Adjust Mass Stock application.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>How many stock adjustments are created in the assigned store?</p></li> <li><p>What are the selected storage location and the reason for stock adjustments?</p></li> <li><p>What is the goods movement type for stock adjustments?</p></li> <li><p>What is the status of stock adjustments?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
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 |
|---|---|---|
| rfm_st_stkadj | rfm_st_stkadj | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Site | _Site | $projection.Store = _Site.Site |
| [0..*] | I_StoreStockAdjustmentItem | _Items | $projection.Store = _Items.Store and $projection.StoreStockAdjustmentUUID = _Items.StoreStockAdjustmentUUID |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISTORESTKADJ | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| ObjectModel.representativeKey | StoreStockAdjustmentUUID | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.sapObjectNodeType.name | StoreStockAdjustment | view | |
| EndUserText.label | Store Stock Adjustment | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Store | store | Retail plant | |
| KEY | StoreStockAdjustmentUUID | storestockadjustmentuuid | Unique Identifier for New Stock Adjustment | |
| GoodsMovementType | goodsmovementtype | Movement Type (Inventory Management) | ||
| StockAdjustmentReason | stockadjustmentreason | Stock Adjustment Reason | ||
| StorageLocation | storagelocation | Storage Location | ||
| StockAdjustmentStatus | stockadjustmentstatus | Processing Status of the Stock Adjustment | ||
| CreatedByUser | createdbyuser | Name of Person Responsible for Creating the Object | ||
| CreationDateTime | creationdatetime | Creation date and time of Stock Adjustment | ||
| LastChangedByUser | lastchangedbyuser | User Who Last Changed the Business Document | ||
| LastChangeDateTime | lastchangedatetime | UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) | ||
| CreationDate | Date | |||
| LastChangeDate | Date | |||
| MaterialDocument | materialdocument | Number of Material Document | ||
| _Site | _Site | |||
| _Items | _Items |
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 I_StoreStockAdjustment.
-- 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: ISTORESTKADJ
CREATE VIEW I_StoreStockAdjustment AS
SELECT
Store,
StoreStockAdjustmentUUID,
GoodsMovementType,
StockAdjustmentReason,
StorageLocation,
StockAdjustmentStatus,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime,
cast(tstmp_to_dats( creationdatetime , 'UTC', $session.client, 'NULL') as datum) AS CreationDate,
cast(tstmp_to_dats( lastchangedatetime , 'UTC', $session.client, 'NULL') as datum) AS LastChangeDate,
MaterialDocument
FROM rfm_st_stkadj
LEFT OUTER JOIN I_Site AS _Site ON Store = _Site.Site -- association [1..1]
LEFT OUTER JOIN I_StoreStockAdjustmentItem AS _Items ON Store = _Items.Store AND StoreStockAdjustmentUUID = _Items.StoreStockAdjustmentUUID -- association [0..*]
;
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