P_GteeMBillingRequestItemOpen

DDL: P_GTEEMBILLINGREQUESTITEMOPEN SQL: PGMGBROPEN Type: view COMPOSITE

P_GteeMBillingRequestItemOpen is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GteeMBillingRequestItem) and exposes 8 fields with key field GteeMBillingRequestItemUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_GteeMBillingRequestItem BillingRequestItem from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_GteeMBillingElement _BillingElement $projection.GteeMBillingElementUUID = _BillingElement.GteeMBillingElementUUID
[1..1] I_GteeMBillingElementEntry _BillingElementEntry $projection.GteeMBillgElmntEntrItmUUID = _BillingElementEntry.GteeMBillgElmntEntrItmUUID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PGMGBROPEN view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY GteeMBillingRequestItemUUID I_GteeMBillingRequestItem GteeMBillingRequestItemUUID Item UUID
GteeMBillingRequestUUID I_GteeMBillingRequestItem GteeMBillingRequestUUID GM Billg Req UUID
GteeMBillingElementUUID I_GteeMBillingRequestItem GteeMBillingElementUUID GMBE UUID
GteeMBillgElmntEntrItmUUID I_GteeMBillingRequestItem GteeMBillgElmntEntrItmUUID GMBE Entry UUID
DocumentCurrency _GteeMBillingElement DocumentCurrency Document Currency
ToBeBilledAmtInDocCrcy I_GteeMBillingRequestItem ToBeBilledAmtInDocCrcy Amount To Be Billed
ToBePostponedAmtInDocCrcy I_GteeMBillingRequestItem ToBePostponedAmtInDocCrcy Amount to Be Postponed
ToBeWrittenOffAmtInDocCrcy I_GteeMBillingRequestItem ToBeWrittenOffAmtInDocCrcy Amount to Be Written Off

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 P_GteeMBillingRequestItemOpen.
-- 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.
-- SQL view name: PGMGBROPEN

CREATE VIEW P_GteeMBillingRequestItemOpen AS
SELECT
  BillingRequestItem.GteeMBillingRequestItemUUID AS GteeMBillingRequestItemUUID,
  BillingRequestItem.GteeMBillingRequestUUID AS GteeMBillingRequestUUID,
  BillingRequestItem.GteeMBillingElementUUID AS GteeMBillingElementUUID,
  BillingRequestItem.GteeMBillgElmntEntrItmUUID AS GteeMBillgElmntEntrItmUUID,
  _GteeMBillingElement.DocumentCurrency AS DocumentCurrency,
  BillingRequestItem.ToBeBilledAmtInDocCrcy AS ToBeBilledAmtInDocCrcy,
  BillingRequestItem.ToBePostponedAmtInDocCrcy AS ToBePostponedAmtInDocCrcy,
  BillingRequestItem.ToBeWrittenOffAmtInDocCrcy AS ToBeWrittenOffAmtInDocCrcy
FROM I_GteeMBillingRequestItem AS BillingRequestItem
LEFT OUTER JOIN I_GteeMBillingElement AS _BillingElement ON GteeMBillingElementUUID = _BillingElement.GteeMBillingElementUUID  -- association [1..1]
LEFT OUTER JOIN I_GteeMBillingElementEntry AS _BillingElementEntry ON GteeMBillgElmntEntrItmUUID = _BillingElementEntry.GteeMBillgElmntEntrItmUUID  -- association [1..1]
;