I_SupDmndAllDocPurOrdCompBsc

DDL: I_SUPDMNDALLDOCPURORDCOMPBSC Type: view BASIC

Basic View for Sub Contracting Purchase Order Components

I_SupDmndAllDocPurOrdCompBsc is a Basic CDS View that provides data about "Basic View for Sub Contracting Purchase Order Components" in SAP S/4HANA. It reads from 2 data sources (resb, I_SupDmndMaterialPlant) and exposes 39 fields. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
resb resb from
I_SupDmndMaterialPlant SupDmndMaterialPlant inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_PurchaseOrderItem _PurchaseOrderItem resb.ebeln = _PurchaseOrderItem.PurchaseOrder and resb.ebelp = _PurchaseOrderItem.PurchaseOrderItem
[1..1] I_Supplier _Supplier resb.lifnr = _Supplier.Supplier
[0..1] P_SupDmndAllDocDelivComp _SupDmndAllDocDel resb.rsnum = _SupDmndAllDocDel.Reservation and resb.rspos = _SupDmndAllDocDel.ReservationItem

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 ISUPDMNDADCMP1B 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 Sub Contracting Purchase Order Components view

Fields (39)

KeyFieldSource TableSource FieldDescription
RequirementDocumentNumber resb rsnum Reservation
RequirementDocumentItem
ReservationItem resb rspos Item no.
RequirementType resb bdart RequirementType
RequestedDate resb bdter Reqmts date
ProductAvailabilityDate resb bdter Reqmts date
RequestedDeliveryDate resb bdter Reqmts date
RequestedRqmtQtyInBaseUnit resb bdmng Threshold value
ConfirmedRqmtQtyInBaseUnit resb bdmng Threshold value
DeliveredQuantityInBaseUnit
WithdrawnQuantity resb enmng Withdrawal Qty
OpenQuantity
BaseUnit resb meins Valuation Unit
Material resb matnr Vehicle Model
MaterialGroup I_SupDmndMaterialPlant MaterialGroup Product Group
Plant resb werks Receiving Plant
OrderType resb bdart RequirementType
CrossPlantConfigurableProduct I_SupDmndMaterialPlant CrossPlantConfigurableProduct Cross-plant CP
MaterialType I_SupDmndMaterialPlant MaterialType Material Type
RequirementSegment resb sgt_rcat Req. Segment
StorageLocation resb lgort Sublocation
Customer _PurchaseOrderItem Customer Sold-to Party
CompanyCode _PurchaseOrderItem CompanyCode Receiver Company Code
CreationDate _PurchaseOrderItem CreationDate Time Stamp
SalesOrder resb kdauf SD Document
SalesOrderItem resb kdpos Sales Ord. Item
PurchasingDocument resb ebeln Source PurchDoc
PurchasingDocumentItem resb ebelp Item pur. doc.
Supplier resb lifnr Vendor no.
Batch resb charg Chargeable Proc.
SegmentationStrategy I_SupDmndMaterialPlant SegmentationStrategy Segment. Strategy
SegmentationStrategyScope I_SupDmndMaterialPlant SegmentationStrategyScope Seg. Scope
ProdAvailabilityCheckGroup I_SupDmndMaterialPlant ProdAvailabilityCheckGroup Avail. check
LoadingGroup I_SupDmndMaterialPlant LoadingGroup Loading Group
Division I_SupDmndMaterialPlant Division Internal Division ID
SupAssgmtSource
_Supplier _Supplier
ShippingCondition
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_SupDmndAllDocPurOrdCompBsc.
-- 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_SupDmndAllDocPurOrdCompBsc AS
SELECT
  resb.rsnum AS RequirementDocumentNumber,
  lpad(resb.rspos,6,'0') AS RequirementDocumentItem,
  resb.rspos AS ReservationItem,
  resb.bdart AS RequirementType,
  resb.bdter AS RequestedDate,
  resb.bdter AS ProductAvailabilityDate,
  resb.bdter AS RequestedDeliveryDate,
  resb.bdmng AS RequestedRqmtQtyInBaseUnit,
  resb.bdmng AS ConfirmedRqmtQtyInBaseUnit,
  coalesce( _SupDmndAllDocDel.DeliveredQuantity, 0 ) AS DeliveredQuantityInBaseUnit,
  resb.enmng AS WithdrawnQuantity,
  resb.bdmng - resb.enmng AS OpenQuantity,
  resb.meins AS BaseUnit,
  resb.matnr AS Material,
  SupDmndMaterialPlant.MaterialGroup AS MaterialGroup,
  resb.werks AS Plant,
  resb.bdart AS OrderType,
  SupDmndMaterialPlant.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  SupDmndMaterialPlant.MaterialType AS MaterialType,
  resb.sgt_rcat AS RequirementSegment,
  resb.lgort AS StorageLocation,
  _PurchaseOrderItem.Customer AS Customer,
  _PurchaseOrderItem.CompanyCode AS CompanyCode,
  _PurchaseOrderItem.CreationDate AS CreationDate,
  resb.kdauf AS SalesOrder,
  resb.kdpos AS SalesOrderItem,
  resb.ebeln AS PurchasingDocument,
  resb.ebelp AS PurchasingDocumentItem,
  resb.lifnr AS Supplier,
  resb.charg AS Batch,
  SupDmndMaterialPlant.SegmentationStrategy AS SegmentationStrategy,
  SupDmndMaterialPlant.SegmentationStrategyScope AS SegmentationStrategyScope,
  SupDmndMaterialPlant.ProdAvailabilityCheckGroup AS ProdAvailabilityCheckGroup,
  SupDmndMaterialPlant.LoadingGroup AS LoadingGroup,
  SupDmndMaterialPlant.Division AS Division,
  cast( '1' as arun_bskz ) AS SupAssgmtSource,
  cast('' as vsbed) AS ShippingCondition,
  SupDmndMaterialPlant.IsInternalBatchManaged AS IsInternalBatchManaged
FROM resb
INNER JOIN I_SupDmndMaterialPlant AS SupDmndMaterialPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON resb.ebeln = _PurchaseOrderItem.PurchaseOrder AND resb.ebelp = _PurchaseOrderItem.PurchaseOrderItem  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON resb.lifnr = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN P_SupDmndAllDocDelivComp AS _SupDmndAllDocDel ON resb.rsnum = _SupDmndAllDocDel.Reservation AND resb.rspos = _SupDmndAllDocDel.ReservationItem  -- association [0..1]
;