C_GHONtwkObjWellCompOvrRules is a Consumption CDS View that provides data about "Network Obj well comp override Rules" in SAP S/4HANA. It reads from 1 data source (I_GHOAllNtwkObjAllocRules) and exposes 17 fields with key fields GHONetworkID, GHONetworkObjectID, NtwkAllocThrtclCalcMeth, NtwkAllocGasLiftThrtclCalcMeth, NtwkAllocNumberOfTests.
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 C_GHONtwkObjWellCompOvrRules.-- 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.-- Parameters: P_NetworkMedium : gho_product, P_AllocationFrequencyCode : gho_alloc_frequency, P_ProductionStartDateTime : gho_prodalloc_datetime, P_ProductionEndDateTime : gho_prodalloc_datetimeCREATE VIEW C_GHONtwkObjWellCompOvrRules ASSELECT
GHONetworkID,
GHONetworkObjectID,
cast(_WellCompOvrrideRules.NtwkAllocThrtclCalcMeth as gho_ntwk_alloc_tcm preserving type ) AS NtwkAllocThrtclCalcMeth,
cast(_WellCompOvrrideRules.NtwkAllocGasLiftThrtclCalcMeth as gho_gas_lift_gas_tcm preserving type ) AS NtwkAllocGasLiftThrtclCalcMeth,
_WellCompOvrrideRules.NtwkAllocNumberOfTests AS NtwkAllocNumberOfTests,
_NetworkObjectDetails._NetworkObjectType.FioriIcon AS NetworkObjectIcon,
cast(_NetworkObjectDetails._FunctionalLocationLabel.FunctionalLocationLabelName as gho_networkobject_label preserving type ) AS NetworkObjectLabelName,
cast(_NetworkObjectDetails._FunctionalLocation._FunctionalLocationText[1: Language = $session.system_language ].FunctionalLocationName as gho_network_obj_desc preserving type ) AS NetworkObjectDescription,
_NetworkObjectDetails.NetworkObjectType AS NetworkObjectType,
cast(_NetworkObjectDetails._NetworkObjectType._NtwkObjTypeText[1: Language = $session.system_language ].NetworkObjectTypeDescription as gho_network_object_type preserving type ) AS NetworkObjectTypeDescription,
cast(_NetworkObjectDetails.ExternalNetworkObjectID as gho_ntwk_obj_ext_id preserving type ) AS ExternalNetworkObjectID,
coalesce(_WellCompOvrrideRules.NetworkMedium, $parameters.P_NetworkMedium) AS NetworkMedium,
_WellCompOvrrideRules._MediumText[1: Language = $session.system_language ].NetworkMediumDescription AS NetworkMediumDescription,
coalesce(_WellCompOvrrideRules.AllocationFrequencyCode,$parameters.P_AllocationFrequencyCode) AS AllocationFrequencyCode,
_WellCompOvrrideRules._FrequencyText[1: Language = $session.system_language ].FrequencyDescription AS FrequencyDescription,
cast(_WellCompOvrrideRules._TCMText[1: LanguageCode = $session.system_language ].DomainText as gho_tcm_text preserving type ) AS NtwkAllocThrtclCalcMethDesc,
cast(_WellCompOvrrideRules._GasLiftGasTCMText[1: LanguageCode = $session.system_language ].DomainText as gho_gas_lift_gas_tcm_text preserving type ) AS NtwkGasLiftThrtclCalcMethDesc
FROM I_GHOAllNtwkObjAllocRules
;