I_GHOProdnAllocRsltsItems

DDL: I_GHOPRODNALLOCRSLTSITEMS Type: view_entity BASIC

Production Allocation Results Items

I_GHOProdnAllocRsltsItems is a Basic CDS View that provides data about "Production Allocation Results Items" in SAP S/4HANA. It reads from 1 data source (gho_allocres_i) and exposes 26 fields with key fields AllocationRunID, GHOFromNtwkObjID, GHOToNtwkObjID, GHOQuantityType, AllocRsltsThrtclOrActual. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
gho_allocres_i gho_allocres_i from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_GHONtwkObjects _NetworkObjectDetails $projection.GHOFromNtwkObjID = _NetworkObjectDetails.GHONetworkObjectID
[0..*] I_GHONtwkAllocRuleQtyType _NtwkAllocRuleQtyType $projection.GHOQuantityType = _NtwkAllocRuleQtyType.NtwkAllocQtyType
[0..1] I_ReadDomainFixedValues _QuantityCategory $projection.GHOQuantityCategory = _QuantityCategory.DomainValue and _QuantityCategory.SAPDataDictionaryDomain = 'GHO_QUANTITY_CATEGORY'
[0..1] I_CustomerToBusinessPartner _BusinessPartner $projection.Transporter = _BusinessPartner.Customer

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Production Allocation Results Items view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY AllocationRunID alloc_run_id Allocation Run ID
KEY GHOFromNtwkObjID Node ID
KEY GHOToNtwkObjID Node ID
KEY GHOQuantityType qty_type Quantity Type
KEY AllocRsltsThrtclOrActual theo_act_ind Theo Actual Ind
KEY AllocationRuleUnitOfMsmt unit UoM
KEY GHOComponent component Softw. Comp.
KEY WellCompltnVolDoc wcdvlh_no Document No.
AllocationRuleMsmtValue volume Waste volume
AllocationMaterial material Vehicle Model
GHOQuantityCategory qty_category UoM Category
ReclassifiedMaterial matnr Vehicle Model
Transporter trnsp_no Transporter nbr
TransporterReference trnsp_ref_no Trsprt.Ref.
EffectiveFromDateTime eff_from_dt Effective From Date
EffectiveToDateTime eff_to_dt Effective To Date
ProductionHours prd_hrs Prod. hours
TicketNumber tkt_no Ticket Number
TicketDateTime tkt_timestamp Ticket timestp
InventoryDate invt_dt Inventory date
LoadOilTransferWithoutRecovery ld_oil_wo_recov Ld Oil w/o Recovery
GHOOriginatingMsmtPoint originating_mp Node ID
_NetworkObjectDetails _NetworkObjectDetails
_NtwkAllocRuleQtyType _NtwkAllocRuleQtyType
_QuantityCategory _QuantityCategory
_BusinessPartner _BusinessPartner

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_GHOProdnAllocRsltsItems.
-- 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_GHOProdnAllocRsltsItems AS
SELECT
  alloc_run_id AS AllocationRunID,
  cast (origin_node_id as gho_origin_node_id preserving type ) AS GHOFromNtwkObjID,
  cast (dest_node_id as gho_dest_node_id preserving type ) AS GHOToNtwkObjID,
  qty_type AS GHOQuantityType,
  theo_act_ind AS AllocRsltsThrtclOrActual,
  unit AS AllocationRuleUnitOfMsmt,
  component AS GHOComponent,
  wcdvlh_no AS WellCompltnVolDoc,
  volume AS AllocationRuleMsmtValue,
  material AS AllocationMaterial,
  qty_category AS GHOQuantityCategory,
  matnr AS ReclassifiedMaterial,
  trnsp_no AS Transporter,
  trnsp_ref_no AS TransporterReference,
  eff_from_dt AS EffectiveFromDateTime,
  eff_to_dt AS EffectiveToDateTime,
  prd_hrs AS ProductionHours,
  tkt_no AS TicketNumber,
  tkt_timestamp AS TicketDateTime,
  invt_dt AS InventoryDate,
  ld_oil_wo_recov AS LoadOilTransferWithoutRecovery,
  originating_mp AS GHOOriginatingMsmtPoint
FROM gho_allocres_i
LEFT OUTER JOIN I_GHONtwkObjects AS _NetworkObjectDetails ON GHOFromNtwkObjID = _NetworkObjectDetails.GHONetworkObjectID  -- association [1..1]
LEFT OUTER JOIN I_GHONtwkAllocRuleQtyType AS _NtwkAllocRuleQtyType ON GHOQuantityType = _NtwkAllocRuleQtyType.NtwkAllocQtyType  -- association [0..*]
LEFT OUTER JOIN I_ReadDomainFixedValues AS _QuantityCategory ON GHOQuantityCategory = _QuantityCategory.DomainValue AND _QuantityCategory.SAPDataDictionaryDomain = 'GHO_QUANTITY_CATEGORY'  -- association [0..1]
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _BusinessPartner ON Transporter = _BusinessPartner.Customer  -- association [0..1]
;