I_SupDmndAllDocPOBsc

DDL: I_SUPDMNDALLDOCPOBSC Type: view BASIC Package: VDM_ARUN_ANALYTICS_ALL

Basic View for Purchase Order

I_SupDmndAllDocPOBsc is a Basic CDS View that provides data about "Basic View for Purchase Order" in SAP S/4HANA. It reads from 6 data sources and exposes 30 fields. Part of development package VDM_ARUN_ANALYTICS_ALL.

Data Sources (6)

SourceAliasJoin Type
ekkn ekkn left_outer
ekko ekko from
ekpo ekpo inner
I_SupDmndMaterialPlant marc inner
I_SupDmndPurOrderSchedLine Sched inner
t16fb t16fb left_outer

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 ISUPDMNDADPOB 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 Purchase Order view

Fields (30)

KeyFieldSource TableSource FieldDescription
SupplyNumber
SupplyItem
SupplyScheduleLine
sobkzEthenEelseBendasAssignedSupplyType
SupAssgmtSource
SupplyDeliveryDate I_SupDmndPurOrderSchedLine ScheduleLineDeliveryDate Delivery Date
ProductAvailabilityDate I_SupDmndPurOrderSchedLine ScheduleLineDeliveryDate Delivery Date
RequestedDeliveryDate I_SupDmndPurOrderSchedLine ScheduleLineDeliveryDate Delivery Date
BaseUnit ekpo meins Valuation Unit
MRPArea ekpo berid Single-Character Flag
Material ekpo matnr Vehicle Model
MaterialGroup ekpo matkl Product Sold Group
Plant ekpo werks Receiving Plant
MaterialType I_SupDmndMaterialPlant MaterialType Material Type
StockSegment ekpo sgt_scat Stock Segment
CrossPlantConfigurableProduct I_SupDmndMaterialPlant CrossPlantConfigurableProduct Cross-plant CP
OrderType ekko bsart Stnd purch.ord.
PurchasingOrganization ekko ekorg Purchasing Org.
PurchasingGroup ekko ekgrp Sub. purchasing grp
Batch
StorageLocation ekpo lgort Sublocation
Customer ekpo kunnr Stock customer
Supplier ekko lifnr Vendor no.
CompanyCode ekpo bukrs Value
vbelnelseendasSalesOrder
vbelp000000else000000endasSalesOrderItem
PurgReleaseSequenceStatus ekko frgzu Release State
NetPriceAmount ekpo netpr Price
DocumentCurrency ekko waers Transaction Currency
GoodsReceiptDurationInDays ekpo webaz GR Proc. Time

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_SupDmndAllDocPOBsc.
-- 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_SupDmndAllDocPOBsc AS
SELECT
  cast(ekpo.ebeln as abap.char(12)) AS SupplyNumber,
  cast(ekpo.ebelp as abap.char(5)) AS SupplyItem,
  cast(Sched.ScheduleLine as abap.char(4)) AS SupplyScheduleLine,
  case when ekpo.pstyp = '5' then 'T' when ekpo.sobkz = 'E' then 'E' else 'B' end as AssignedSupplyType AS sobkzEthenEelseBendasAssignedSupplyType,
  'B' AS SupAssgmtSource,
  Sched.ScheduleLineDeliveryDate AS SupplyDeliveryDate,
  Sched.ScheduleLineDeliveryDate AS ProductAvailabilityDate,
  Sched.ScheduleLineDeliveryDate AS RequestedDeliveryDate,
  ekpo.meins AS BaseUnit,
  ekpo.berid AS MRPArea,
  ekpo.matnr AS Material,
  ekpo.matkl AS MaterialGroup,
  ekpo.werks AS Plant,
  marc.MaterialType AS MaterialType,
  ekpo.sgt_scat AS StockSegment,
  marc.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  ekko.bsart AS OrderType,
  ekko.ekorg AS PurchasingOrganization,
  ekko.ekgrp AS PurchasingGroup,
  cast('' as charg_d ) AS Batch,
  ekpo.lgort AS StorageLocation,
  ekpo.kunnr AS Customer,
  ekko.lifnr AS Supplier,
  ekpo.bukrs AS CompanyCode,
  case when ekpo.pstyp = '5' or ekpo.sobkz = 'E' then coalesce(ekkn.vbeln,'') else '' end as SalesOrder AS vbelnelseendasSalesOrder,
  case when ekpo.pstyp = '5' or ekpo.sobkz = 'E' then coalesce(ekkn.vbelp,'000000') else '000000' end as SalesOrderItem AS vbelp000000else000000endasSalesOrderItem,
  ekko.frgzu AS PurgReleaseSequenceStatus,
  ekpo.netpr AS NetPriceAmount,
  ekko.waers AS DocumentCurrency,
  ekpo.webaz AS GoodsReceiptDurationInDays
FROM ekko
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupDmndPurOrderSchedLine AS Sched 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 ekkn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t16fb ON /* join condition not captured in parsed metadata */
;