I_SupDmndAllDocSTOItmBsc
Basic View for Stock Transport Order
I_SupDmndAllDocSTOItmBsc is a Basic CDS View that provides data about "Basic View for Stock Transport Order" in SAP S/4HANA. It reads from 6 data sources and exposes 37 fields.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| eket | eket | inner |
| ekko | ekko | from |
| ekpo | ekpo | inner |
| I_SupDmndMaterialPlant | marc | inner |
| I_SupDmndSalesArea | SalesArea | left_outer |
| I_PurchasingDocumentShipping | shipping | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | ISUPDMNDADSTOITB | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| EndUserText.label | Basic View for Stock Transport Order | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| RequirementDocumentNumber | ekpo | ebeln | Source PurchDoc | |
| RequirementDocumentItem | ||||
| RequirementType | ||||
| RequestedDate | eket | arun_req_dlvdate | Date | |
| mbdatendasProductAvailabilityDate | ||||
| ScheduleLineOrderQuantity | ||||
| ConfdOrderQtyByMatlAvailCheck | ||||
| DeliveredQuantityInBaseUnit | ||||
| BaseUnit | ekpo | meins | Valuation Unit | |
| Material | ekpo | matnr | Vehicle Model | |
| MaterialGroup | ekpo | matkl | Product Sold Group | |
| Plant | ekko | reswk | Supplying Plant | |
| OrderType | ekko | bsart | Stnd purch.ord. | |
| CrossPlantConfigurableProduct | I_SupDmndMaterialPlant | CrossPlantConfigurableProduct | Cross-plant CP | |
| MaterialType | I_SupDmndMaterialPlant | MaterialType | Material Type | |
| RequirementSegment | ekpo | sgt_rcat | Req. Segment | |
| PurchasingOrganization | ekko | ekorg | Purchasing Org. | |
| PurchasingGroup | ekko | ekgrp | Sub. purchasing grp | |
| SalesOrganization | I_PurchasingDocumentShipping | SalesOrganization | Sales Organization | |
| DistributionChannel | I_PurchasingDocumentShipping | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_SupDmndMaterialPlant | Division | Internal Division ID | |
| SalesDistrict | SalesDistrict | Sales District | ||
| SoldToParty | I_PurchasingDocumentShipping | ShipToParty | Ship-To Party (obsolete) | |
| CompanyCode | ekpo | bukrs | Value | |
| StorageLocation | ekpo | lgort | Sublocation | |
| PurgReleaseSequenceStatus | ekko | frgzu | Release State | |
| NetPriceAmount | ekpo | netpr | Price | |
| DocumentCurrency | ekko | waers | Transaction Currency | |
| SegmentationStrategy | I_SupDmndMaterialPlant | SegmentationStrategy | Segment. Strategy | |
| SegmentationStrategyScope | I_SupDmndMaterialPlant | SegmentationStrategyScope | Seg. Scope | |
| ConfirmedDeliveryDate | eket | eindt | Initial Entry | |
| ScheduleLine | ||||
| PurchasingDocument | ekpo | ebeln | Source PurchDoc | |
| PurchasingDocumentItem | ekpo | ebelp | Item pur. doc. | |
| OrganizationDivision | I_PurchasingDocumentShipping | OrganizationDivision | Org. Division | |
| ConfdDeliveryQtyInBaseUnit | ekpo | cnfm_qty | Committed Qty | |
| IsInternalBatchManaged | I_SupDmndMaterialPlant | IsInternalBatchManaged | Batches |
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_SupDmndAllDocSTOItmBsc.
-- 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_SupDmndAllDocSTOItmBsc AS
SELECT
ekpo.ebeln AS RequirementDocumentNumber,
lpad(ekpo.ebelp,6,'0') AS RequirementDocumentItem,
'U1' AS RequirementType,
eket.arun_req_dlvdate AS RequestedDate,
case when eket.mbdat = '00000000' or eket.mbdat = '' then eket.dat01 else eket.mbdat end as ProductAvailabilityDate AS mbdatendasProductAvailabilityDate,
cast(ekpo.menge as etmen) AS ScheduleLineOrderQuantity,
cast(ekpo.cnfm_qty as mng06) AS ConfdOrderQtyByMatlAvailCheck,
cast( 0 as glmng) AS DeliveredQuantityInBaseUnit,
ekpo.meins AS BaseUnit,
ekpo.matnr AS Material,
ekpo.matkl AS MaterialGroup,
ekko.reswk AS Plant,
ekko.bsart AS OrderType,
marc.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
marc.MaterialType AS MaterialType,
ekpo.sgt_rcat AS RequirementSegment,
ekko.ekorg AS PurchasingOrganization,
ekko.ekgrp AS PurchasingGroup,
shipping.SalesOrganization AS SalesOrganization,
shipping.DistributionChannel AS DistributionChannel,
marc.Division AS Division,
SalesDistrict,
shipping.ShipToParty AS SoldToParty,
ekpo.bukrs AS CompanyCode,
ekpo.lgort AS StorageLocation,
ekko.frgzu AS PurgReleaseSequenceStatus,
ekpo.netpr AS NetPriceAmount,
ekko.waers AS DocumentCurrency,
marc.SegmentationStrategy AS SegmentationStrategy,
marc.SegmentationStrategyScope AS SegmentationStrategyScope,
eket.eindt AS ConfirmedDeliveryDate,
cast( '0000' as etenr ) AS ScheduleLine,
ekpo.ebeln AS PurchasingDocument,
ekpo.ebelp AS PurchasingDocumentItem,
shipping.OrganizationDivision AS OrganizationDivision,
ekpo.cnfm_qty AS ConfdDeliveryQtyInBaseUnit,
marc.IsInternalBatchManaged AS IsInternalBatchManaged
FROM ekko
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
INNER JOIN eket ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchasingDocumentShipping AS shipping ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupDmndMaterialPlant AS marc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SupDmndSalesArea AS SalesArea ON /* join condition not captured in parsed metadata */
;
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