I_SupDmndAllDocSTOItmBsc

DDL: I_SUPDMNDALLDOCSTOITMBSC Type: view BASIC

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)

SourceAliasJoin 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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;