I_DfltValsForInvtryMgmtAndPInv

DDL: I_DFLTVALSFORINVTRYMGMTANDPINV Type: view_entity COMPOSITE Package: MM_IM_VDM_COMMON

Default values IM and Physical INV

I_DfltValsForInvtryMgmtAndPInv (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Supply Chain

I_DfltValsForInvtryMgmtAndPInv is a Composite CDS View that provides data about "Default values IM and Physical INV" in SAP S/4HANA. It reads from 1 data source (t159l) and exposes 4 fields with key field Plant. Part of development package MM_IM_VDM_COMMON.

SAP Help Documentation

CategoryCDS Views for Common Data
StatusReleased
Purpose
This CDS view is intended to be used for consumption by Business Process Intelligence. The view provides the default value for the delivery completed indicator. This CDS view provides the data to answer the following business questions: Is the delivery completed indicator is set posting for example a goods receipt for a purchase order? 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 the following authorization objects assigned: No authority object is assigned. Configuration

Structure
Fields used for filtering The main filters are as follows: Plant DeliveryCompletedIsDefault Further important fields Important fields in this view include the following: Field Name Description Plant Plant DeliveryCompletedIsDefault Default value for delivery completed indicator

SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

Calculation of Stock Values
Calculation Methods Caution Note that the stock value calculation in MM-IM Fiori apps and CDS views cannot be compared with the stock value calculation in Finance (FI) or in Material Ledger (ML). Variances are possible because of specific calculation procedures (including rounding) within MM-IM compared to Finance and Material Ledger. In MM-IM, the stock values are calculated to enable aggregation across materials with different base units of measure and therefore have a rather informational character and can’t be used for legal reporting. Comparison of Calculation Methods MM-IM Calculation Method Finance and Material Ledger Calculation Method The system calculates the stock value at a certain date and independent of the reporting date you have chosen, as follows: stock value = stock quantity (of a particular stock type and/or a certain date) * current material price Note Note that the current material price is also a calculated price. There are two ways to calculate the current material price: total amount / total quantity by price / price unit Rounding can occur as a result of these types of calculation of the stock value. If you also want to sum up stock values across different levels (unrestricted stock of batches of a material, for example), existing rounding is also summed up (unrestricted stock of material on plant, for example). The system calculates the stock value as follows: stock value = sum of all values received/issued/changed up to a certain date Example Sample Code cast( round( cast(MatlWrhsStkQtyInMatlBaseUnit as abap.dec( 21, 3 )) * division( cast(_CurrentInvtryPrice.InventoryPrice as abap.dec( 11, 2 )), cast(_CurrentInvtryPrice.MaterialPriceUnitQty as abap.dec( 5, 0 )), 5 ) , 2 ) as nsdm_stock_value_in_cccrcy ) as StockValueInCCCrcy, The following data is the starting point: _CurrentInvtryPrice.InventoryPrice = 4,830.98 _CurrentInvtryPrice.MaterialPriceUnitQty = 10,000 The division of _CurrentInvtryPrice.InventoryPrice / _CurrentInvtryPrice.MaterialPriceUnitQty results in 0.483098 and is then rounded to 0.4831 (five decimal places). This rounded result is finally multiplied with the current stock of 1,025,360.000 yielding to a stock val

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-GF-2CL
CapabilitiesAssociation Target for Defining CDS Entities,Data Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view is intended to be used for consumption by Business Process Intelligence. The view provides the default value for the delivery completed indicator.</p> This CDS view provides the data to answer the following business questions:<ul> <li> <p>Is the delivery completed indicator is set posting for example a goods receipt for a purchase order?</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
t159l t159l from

Annotations (9)

NameValueLevelField
EndUserText.label Default values IM and Physical INV view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.entityBuffer.definitionAllowed true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Plant werks Receiving Plant
DeliveryCompletedIsDefault xelik Suggest "delivery completed" indicator
BookSrlNmbrIsVisibleDuringCnt xsera Display Serial Numbers in Case of 'Enter Count'
IsChangeDocumentsEnabled xaebl Change Document in Physical Inventory

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_DfltValsForInvtryMgmtAndPInv.
-- 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 I_DfltValsForInvtryMgmtAndPInv AS
SELECT
  werks AS Plant,
  xelik AS DeliveryCompletedIsDefault,
  xsera AS BookSrlNmbrIsVisibleDuringCnt,
  xaebl AS IsChangeDocumentsEnabled
FROM t159l
;