C_AvailSubcontrgStock

DDL: C_AVAILSUBCONTRGSTOCK SQL: CSUBCONTRSTKBAL Type: view CONSUMPTION Package: ODATA_MM_PUR_SUBCONTRGORD_MNTR

Available Stock at Subcontractor

C_AvailSubcontrgStock is a Consumption CDS View that provides data about "Available Stock at Subcontractor" in SAP S/4HANA. It reads from 1 data source (P_AvailSubcontrgStock) and exposes 5 fields with key fields Material, Supplier, Plant. It is exposed through 1 OData service (ASQL_F3095). Part of development package ODATA_MM_PUR_SUBCONTRGORD_MNTR.

Data Sources (1)

SourceAliasJoin Type
P_AvailSubcontrgStock P_AvailSubcontrgStock from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CSUBCONTRSTKBAL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Available Stock at Subcontractor view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3095 ASQL_F3095 C2 NOT_RELEASED

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Supplier Supplier Supplier
KEY Plant Plant Valuation Area
SubcontractorStkInStockUnit InitAvailQtySubcontrg
StockUnit MaterialBaseUnit Valuation Unit

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_AvailSubcontrgStock.
-- 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: CSUBCONTRSTKBAL

CREATE VIEW C_AvailSubcontrgStock AS
SELECT
  Material,
  Supplier,
  Plant,
  InitAvailQtySubcontrg AS SubcontractorStkInStockUnit,
  MaterialBaseUnit AS StockUnit
FROM P_AvailSubcontrgStock
;