C_StockIssueDetails

DDL: C_STOCKISSUEDETAILS SQL: CSTCKISSUE Type: view CONSUMPTION Package: ODATA_PP_SC

Consumption View for stock issue details

C_StockIssueDetails is a Consumption CDS View that provides data about "Consumption View for stock issue details" in SAP S/4HANA. It reads from 1 data source (I_Stockissuedetails) and exposes 16 fields with key fields Material, Plant, MaterialGroup, SalesDocument, SalesDocumentItem. It has 3 associations to related views. Part of development package ODATA_PP_SC.

Data Sources (1)

SourceAliasJoin Type
I_Stockissuedetails I_Stockissuedetails from

Parameters (3)

NameTypeDefault
P_ConditionText stck_filter_string
P_StartDate datum
P_EndDate datum

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CSTCKISSUE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption View for stock issue details view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY Material stckdet Material Vehicle Model
KEY Plant stckdet Plant Valuation Area
KEY MaterialGroup stckdet MaterialGroup Product Group
KEY SalesDocument stckdet SalesDocument SD Document
KEY SalesDocumentItem stckdet SalesDocumentItem Sales Document Item
KEY ReferenceDocumentScheduleLine stckdet ReferenceDocumentScheduleLine Schedule Line
KEY Batch stckdet Batch Lot No.
KEY IssueType stckdet IssueType Issue Type for stock
KEY IssueDate stckdet IssueDate Order End Date
IssueQuantity stckdet IssueQuantity
IssueAmount stckdet IssueAmount
QuantityUnit stckdet QuantityUnit Unit of measure
OrderPriceUnit stckdet OrderPriceUnit Order Price Un.
_Material _Material
_Plant _Plant
_MaterialGroup _MaterialGroup

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_StockIssueDetails.
-- 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: CSTCKISSUE
-- Parameters: P_ConditionText : stck_filter_string, P_StartDate : datum, P_EndDate : datum

CREATE VIEW C_StockIssueDetails AS
SELECT
  stckdet.Material AS Material,
  stckdet.Plant AS Plant,
  stckdet.MaterialGroup AS MaterialGroup,
  stckdet.SalesDocument AS SalesDocument,
  stckdet.SalesDocumentItem AS SalesDocumentItem,
  stckdet.ReferenceDocumentScheduleLine AS ReferenceDocumentScheduleLine,
  stckdet.Batch AS Batch,
  stckdet.IssueType AS IssueType,
  stckdet.IssueDate AS IssueDate,
  stckdet.IssueQuantity AS IssueQuantity,
  stckdet.IssueAmount AS IssueAmount,
  stckdet.QuantityUnit AS QuantityUnit,
  stckdet.OrderPriceUnit AS OrderPriceUnit
FROM I_Stockissuedetails
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
;