I_GHOProdnAllocRsltsItems
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)
| Source | Alias | Join Type |
|---|---|---|
| gho_allocres_i | gho_allocres_i | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA