I_SupplyAssignmentBasic

DDL: I_SUPPLYASSIGNMENTBASIC Type: view BASIC Package: VDM_ARUN_API

Basic View for Supply Assignment API

I_SupplyAssignmentBasic is a Basic CDS View that provides data about "Basic View for Supply Assignment API" in SAP S/4HANA. It reads from 1 data source (arun_bdbs) and exposes 43 fields. It has 13 associations to related views. Part of development package VDM_ARUN_API.

Data Sources (1)

SourceAliasJoin Type
arun_bdbs arun_bdbs from

Associations (13)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_MaterialPlant _MaterialPlant $projection.Plant = _MaterialPlant.Plant and $projection.Material = _MaterialPlant.Material
[0..1] I_StorageLocation _StorageLocation $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.Plant = _StorageLocation.Plant
[0..1] I_UnitOfMeasure _MaterialBaseUnitOfMeasure $projection.BaseUnit = _MaterialBaseUnitOfMeasure.UnitOfMeasure
[1..1] I_SalesDocumentBasic _SalesDocumentBasic $projection.SalesDocument = _SalesDocumentBasic.SalesDocument
[1..1] I_StockTransportOrder _STONumberBasic $projection.STONumber = _STONumberBasic.PurchaseOrder
[1..1] I_ReservationHeader _ReservationHeaderBasic $projection.Reservation = _ReservationHeaderBasic.Reservation
[1..1] I_SalesDocumentItemBasic _SalesDocumentItemBasic $projection.SalesDocument = _SalesDocumentItemBasic.SalesDocument and $projection.SalesDocumentItem = _SalesDocumentItemBasic.SalesDocumentItem
[1..1] I_StockTransportOrderItem _STONumberItemBasic $projection.STONumber = _STONumberItemBasic.PurchaseOrder and $projection.STOItem = _STONumberItemBasic.PurchaseOrderItem
[1..1] I_ReservationItem _ReservationItemBasic $projection.Reservation = _ReservationItemBasic.Reservation and $projection.ReservationItem = _ReservationItemBasic.ReservationItem and $projection.RequirementType = _ReservationItemBasic.RecordType
[1..1] I_PurchasingDocument _PurchasingDocumentBasic $projection.PurchasingDocument = _PurchasingDocumentBasic.PurchasingDocument
[0..1] I_PurchasingDocumentItem _PurchasingDocumentItemBasic $projection.PurchasingDocument = _PurchasingDocumentItemBasic.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItemBasic.PurchasingDocumentItem
[0..1] I_PurgDocScheduleLine _PurchasingScheduleLineBasic $projection.PurchasingDocument = _PurchasingScheduleLineBasic.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingScheduleLineBasic.PurchasingDocumentItem and $projection.ScheduleLine = _PurchasingScheduleLineBasic.ScheduleLine

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ISUPPLYASSGMT view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
ObjectModel.compositionRoot true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Basic View for Supply Assignment API view
AccessControl.authorizationCheck #CHECK view

Fields (43)

KeyFieldSource TableSource FieldDescription
Plant plant Valuation Area
Material material Vehicle Model
SupplyAssignmentStatus arun_status ARun Status
SalesDocument salesdoc_num Sales Document
STONumber purchdoc_num STO/RPO
Reservation reserv_num Reservation
SalesDocumentItem salesdoc_item SD Item
STOItem purchdoc_item Purch. Req Item
ReservationItem reserv_item Reservation Item
RequirementType req_ind Requirement Type
AssignedSupplyType stock_source Stock Source
Batch batch Lot No.
StorageLocation storage_location Sup. Stor. Loc.
PurchasingDocument purchord_num PO number
ProductionOrder prodord_num Prod. Ord
PurchasingDocumentItem purchord_item PO Item
ProductionOrderItem prodord_item Prod. Ord Item
ScheduleLine purchord_sch PO Schedule Line
InboundDelivery confirmation_no Sequential No.
ConsignmentNumber
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
BaseUnit material_baseunit Base Unit
RequestedDate requested_date Requested date
ProductAvailabilityDate material_avail_date Mat.Avail.Date
SupplyDeliveryDate delivery_date_po Delivery Date PO
CreationDateTime creation_time Time Stamp
LastChangeByUser changed_by User Name
MRPProductAvailabilityDate
RequirementSegment req_segment Req. Segment
StockSegment stk_segment Stock Segment
_Plant _Plant
_MaterialPlant _MaterialPlant
_StorageLocation _StorageLocation
_SalesDocumentBasic _SalesDocumentBasic
_STONumberBasic _STONumberBasic
_ReservationHeaderBasic _ReservationHeaderBasic
_SalesDocumentItemBasic _SalesDocumentItemBasic
_STONumberItemBasic _STONumberItemBasic
_ReservationItemBasic _ReservationItemBasic
_PurchasingDocumentBasic _PurchasingDocumentBasic
_PurchasingDocumentItemBasic _PurchasingDocumentItemBasic
_PurchasingScheduleLineBasic _PurchasingScheduleLineBasic
_MaterialBaseUnitOfMeasure _MaterialBaseUnitOfMeasure

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_SupplyAssignmentBasic.
-- 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_SupplyAssignmentBasic AS
SELECT
  Plant,
  Material,
  arun_status AS SupplyAssignmentStatus,
  salesdoc_num AS SalesDocument,
  purchdoc_num AS STONumber,
  reserv_num AS Reservation,
  salesdoc_item AS SalesDocumentItem,
  purchdoc_item AS STOItem,
  reserv_item AS ReservationItem,
  req_ind AS RequirementType,
  stock_source AS AssignedSupplyType,
  Batch,
  storage_location AS StorageLocation,
  purchord_num AS PurchasingDocument,
  prodord_num AS ProductionOrder,
  purchord_item AS PurchasingDocumentItem,
  prodord_item AS ProductionOrderItem,
  purchord_sch AS ScheduleLine,
  confirmation_no AS InboundDelivery,
  alloc_qty AS AssignedQuantityInBaseUnit,
  material_baseunit AS BaseUnit,
  requested_date AS RequestedDate,
  material_avail_date AS ProductAvailabilityDate,
  delivery_date_po AS SupplyDeliveryDate,
  creation_time AS CreationDateTime,
  changed_by AS LastChangeByUser,
  req_segment AS RequirementSegment,
  stk_segment AS StockSegment
FROM arun_bdbs
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Plant = _MaterialPlant.Plant AND Material = _MaterialPlant.Material  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON StorageLocation = _StorageLocation.StorageLocation AND Plant = _StorageLocation.Plant  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialBaseUnitOfMeasure ON BaseUnit = _MaterialBaseUnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocumentBasic ON SalesDocument = _SalesDocumentBasic.SalesDocument  -- association [1..1]
LEFT OUTER JOIN I_StockTransportOrder AS _STONumberBasic ON STONumber = _STONumberBasic.PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN I_ReservationHeader AS _ReservationHeaderBasic ON Reservation = _ReservationHeaderBasic.Reservation  -- association [1..1]
LEFT OUTER JOIN I_SalesDocumentItemBasic AS _SalesDocumentItemBasic ON SalesDocument = _SalesDocumentItemBasic.SalesDocument AND SalesDocumentItem = _SalesDocumentItemBasic.SalesDocumentItem  -- association [1..1]
LEFT OUTER JOIN I_StockTransportOrderItem AS _STONumberItemBasic ON STONumber = _STONumberItemBasic.PurchaseOrder AND STOItem = _STONumberItemBasic.PurchaseOrderItem  -- association [1..1]
LEFT OUTER JOIN I_ReservationItem AS _ReservationItemBasic ON Reservation = _ReservationItemBasic.Reservation AND ReservationItem = _ReservationItemBasic.ReservationItem AND RequirementType = _ReservationItemBasic.RecordType  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocumentBasic ON PurchasingDocument = _PurchasingDocumentBasic.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItemBasic ON PurchasingDocument = _PurchasingDocumentItemBasic.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItemBasic.PurchasingDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_PurgDocScheduleLine AS _PurchasingScheduleLineBasic ON PurchasingDocument = _PurchasingScheduleLineBasic.PurchasingDocument AND PurchasingDocumentItem = _PurchasingScheduleLineBasic.PurchasingDocumentItem AND ScheduleLine = _PurchasingScheduleLineBasic.ScheduleLine  -- association [0..1]
;