R_StoreStockAdjustmentTP
Store Stock Adjustment
R_StoreStockAdjustmentTP is a Transactional CDS View that provides data about "Store Stock Adjustment" in SAP S/4HANA. It reads from 1 data source (I_StoreStockAdjustment) and exposes 23 fields with key fields Store, StoreStockAdjustmentUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StoreStockAdjustment | I_StoreStockAdjustment | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_StoreStockAdjustmentSum | _Sum | $projection.Store = _Sum.Store and $projection.StoreStockAdjustmentUUID = _Sum.StoreStockAdjustmentUUID |
| [0..1] | P_StoreStockAdjmtProductCount | _Count | $projection.Store = _Count.Store and $projection.StoreStockAdjustmentUUID = _Count.StoreStockAdjustmentUUID |
| [0..1] | I_StorageLocation | _StorageLoc | $projection.Store = _StorageLoc.Plant and $projection.StorageLocation = _StorageLoc.StorageLocation |
| [0..1] | I_RetailStoreUserAssignment | _RetailStoreUserAssignment | $projection.Store = _RetailStoreUserAssignment.Store and _RetailStoreUserAssignment.AssignedUser = $session.user |
| [0..1] | I_StoreStockAdjmtReasonVH | _Reason | $projection.Store = _Reason.Store and $projection.GoodsMovementType = _Reason.GoodsMovementType and $projection.StockAdjustmentReason = _Reason.RetailStoreBusinessTransType |
| [0..1] | I_UserDescription | _User | $projection.CreatedByUser = _User.UserID |
| [0..1] | I_StoreStockAdjustmentStatus | _Status | $projection.StockAdjustmentStatus = _Status.StockAdjustmentStatus |
| [0..*] | R_StoreStockAdjustmentItemTP | _Items | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| EndUserText.label | Store Stock Adjustment | view | |
| ObjectModel.sapObjectNodeType.name | StoreStockAdjustment | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Store | Store | Plant | |
| KEY | StoreStockAdjustmentUUID | StoreStockAdjustmentUUID | Stock Adjust UUID | |
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| StockAdjustmentReason | StockAdjustmentReason | Adjustment Reason | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StockAdjustmentStatus | StockAdjustmentStatus | Stock Adjustment Status | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| GrossAmount | _Sum | GrossAmount | Gross value | |
| NumberOfProducts | _Count | NumberOfProducts | ||
| Currency | _Sum | Currency | Valuation Crcy | |
| AssignedUser | _RetailStoreUserAssignment | AssignedUser | ||
| CreationDate | CreationDate | Time Stamp | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| GoodsMovementReasonCode | GoodsMovementReasonCode | Reason for Mvmt | ||
| _Items | _Items | |||
| _StorageLoc | _StorageLoc | |||
| _Reason | _Reason | |||
| _User | _User | |||
| _Status | _Status |
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 R_StoreStockAdjustmentTP.
-- 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.
CREATE VIEW R_StoreStockAdjustmentTP AS
SELECT
Store,
StoreStockAdjustmentUUID,
GoodsMovementType,
StockAdjustmentReason,
StorageLocation,
StockAdjustmentStatus,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime,
_Sum.GrossAmount AS GrossAmount,
_Count.NumberOfProducts AS NumberOfProducts,
_Sum.Currency AS Currency,
_RetailStoreUserAssignment.AssignedUser AS AssignedUser,
CreationDate,
LastChangeDate,
MaterialDocument,
GoodsMovementReasonCode
FROM I_StoreStockAdjustment
LEFT OUTER JOIN P_StoreStockAdjustmentSum AS _Sum ON Store = _Sum.Store AND StoreStockAdjustmentUUID = _Sum.StoreStockAdjustmentUUID -- association [0..1]
LEFT OUTER JOIN P_StoreStockAdjmtProductCount AS _Count ON Store = _Count.Store AND StoreStockAdjustmentUUID = _Count.StoreStockAdjustmentUUID -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLoc ON Store = _StorageLoc.Plant AND StorageLocation = _StorageLoc.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_RetailStoreUserAssignment AS _RetailStoreUserAssignment ON Store = _RetailStoreUserAssignment.Store AND _RetailStoreUserAssignment.AssignedUser = $session.user -- association [0..1]
LEFT OUTER JOIN I_StoreStockAdjmtReasonVH AS _Reason ON Store = _Reason.Store AND GoodsMovementType = _Reason.GoodsMovementType AND StockAdjustmentReason = _Reason.RetailStoreBusinessTransType -- association [0..1]
LEFT OUTER JOIN I_UserDescription AS _User ON CreatedByUser = _User.UserID -- association [0..1]
LEFT OUTER JOIN I_StoreStockAdjustmentStatus AS _Status ON StockAdjustmentStatus = _Status.StockAdjustmentStatus -- association [0..1]
LEFT OUTER JOIN R_StoreStockAdjustmentItemTP AS _Items ON /* condition not available in parsed metadata */ -- 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