C_JITStockAnalysisAtPlant

DDL: C_JITSTOCKANALYSISATPLANT SQL: CJITSTKANLYPLANT Type: view CONSUMPTION

Stock Analysis for Material at Plant Level

C_JITStockAnalysisAtPlant is a Consumption CDS View that provides data about "Stock Analysis for Material at Plant Level" in SAP S/4HANA. It has 7 associations to related views.

Associations (7)

CardinalityTargetAliasCondition
[0..*] C_JITCallDetail _JITCall $projection.Material = _JITCall.Material and $projection.Plant = _JITCall.Plant
[0..1] I_Product _Product $projection.Material = _Product.Product
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] C_StorageLocMalfuncManageVH _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..*] I_JITMatlRcpntDocuments _JITMatlRcpntDocuments $projection.Material = _JITMatlRcpntDocuments.Material and $projection.Plant = _JITMatlRcpntDocuments.MRPPlant
[0..1] I_JITMaterialPlant _JITMaterialPlant $projection.Material = _JITMaterialPlant.Material and $projection.Plant = _JITMaterialPlant.Plant
[1..*] C_JITStkAnlysAtStorLoc _JITStkAnlysAtStorLoc $projection.Material = _JITStkAnlysAtStorLoc.Material and $projection.Plant = _JITStkAnlysAtStorLoc.Plant

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CJITSTKANLYPLANT view
EndUserText.label Stock Analysis for Material at Plant Level view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view
UI.headerInfo.typeName Stock Availability Analysis for Just-In-Time Calls view
UI.headerInfo.typeNamePlural Components view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Material view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ProductName view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
StorageLocation
MaterialBaseUnit MaterialBaseUnit Valuation Unit
ProductName Component Description
PlantName _Plant PlantName Plant Name
ExternalJITCallNumber External JIT Call Number
RequirementDateTime
PlannedShippingDateTime
DeliveryCreationDate
MaterialAvailabilityDate
ActualDeliveredQuantity Actual Shipping Date Time
CompGrpNumber Component Group
OrderIsCreated Delivery Created
UnrestrictedStkInStkUnit Unrestricted Stock
CoverageByUnrestrictedStkValue Coverage Value
TotalVltdStockQuantity Other Stock
QualityInspectionStockQuantity Stock in Quality Inspection
TransferStockPlantQuantity Stock in Transfer to Plant
TransferStockStorageLocQty Stock in Transfer to Storage Location
StockInTransitQuantity Stock in Transit
BlockedStockQuantity Blocked Stock
MRPController _JITMaterialPlant MRPController MRP Controller
RequestedQuantity Requested Quantity
MRPControllerName _JITMaterialPlant MRPControllerName Controller name
_JITCall _JITCall
_StorageLocation _StorageLocation
_JITMatlRcpntDocuments _JITMatlRcpntDocuments
_JITMaterialPlant _JITMaterialPlant
_JITStkAnlysAtStorLoc _JITStkAnlysAtStorLoc

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_JITStockAnalysisAtPlant.
-- 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: CJITSTKANLYPLANT

CREATE VIEW C_JITStockAnalysisAtPlant AS
SELECT
  Material,
  Plant,
  cast('' as lgort_d) AS StorageLocation,
  MaterialBaseUnit,
  _Product._Text[1:Language = $session.system_language ].ProductName AS ProductName,
  _Plant.PlantName AS PlantName,
  cast('' as njit_ext_call_num) AS ExternalJITCallNumber,
  cast(0 as njit_req_date_time) AS RequirementDateTime,
  cast('00000000000000' as njit_planned_shipping_date_tim ) AS PlannedShippingDateTime,
  cast('00000000' as ledat ) AS DeliveryCreationDate,
  cast('00000000' as mbdat ) AS MaterialAvailabilityDate,
  cast(0 as njit_actual_shipping_date_time) AS ActualDeliveredQuantity,
  cast('' as njit_comp_grp_num) AS CompGrpNumber,
  cast('' as boole_d) AS OrderIsCreated,
  cast(0 as abap.quan( 13, 2 )) AS UnrestrictedStkInStkUnit,
  cast(0 as abap.dec( 16, 3 ) ) AS CoverageByUnrestrictedStkValue,
  cast( 0 as abap.dec(16,3)) AS TotalVltdStockQuantity,
  cast(0 as abap.dec( 31, 0 )) AS QualityInspectionStockQuantity,
  cast(0 as abap.dec( 31, 0 )) AS TransferStockPlantQuantity,
  cast(0 as abap.dec( 31, 0 )) AS TransferStockStorageLocQty,
  cast(0 as abap.dec( 31, 0 )) AS StockInTransitQuantity,
  cast(0 as abap.dec( 31, 0 )) AS BlockedStockQuantity,
  _JITMaterialPlant.MRPController AS MRPController,
  cast(0 as abap.quan( 13,2 )) AS RequestedQuantity,
  _JITMaterialPlant.MRPControllerName AS MRPControllerName
LEFT OUTER JOIN C_JITCallDetail AS _JITCall ON Material = _JITCall.Material AND Plant = _JITCall.Plant  -- association [0..*]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN C_StorageLocMalfuncManageVH AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_JITMatlRcpntDocuments AS _JITMatlRcpntDocuments ON Material = _JITMatlRcpntDocuments.Material AND Plant = _JITMatlRcpntDocuments.MRPPlant  -- association [0..*]
LEFT OUTER JOIN I_JITMaterialPlant AS _JITMaterialPlant ON Material = _JITMaterialPlant.Material AND Plant = _JITMaterialPlant.Plant  -- association [0..1]
LEFT OUTER JOIN C_JITStkAnlysAtStorLoc AS _JITStkAnlysAtStorLoc ON Material = _JITStkAnlysAtStorLoc.Material AND Plant = _JITStkAnlysAtStorLoc.Plant  -- association [1..*]
;