I_StoreStockAdjustment

DDL: I_STORESTOCKADJUSTMENT SQL: ISTORESTKADJ Type: view BASIC Package: RFM_STORE_STOCK_ADJUSTMENT

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

CategoryIn-Store Inventory Management
Data CategoryDimension
StatusProcessing Status of the Stock Adjustment
Purpose
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)

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessCross Applications
Application ComponentLO-RFM-STO-FIO-2CL
CapabilitiesData 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
PackageCross 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

Data Sources (1)

SourceAliasJoin Type
rfm_st_stkadj rfm_st_stkadj from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Site _Site $projection.Store = _Site.Site
[0..*] I_StoreStockAdjustmentItem _Items $projection.Store = _Items.Store and $projection.StoreStockAdjustmentUUID = _Items.StoreStockAdjustmentUUID

Annotations (20)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;