A_OpportunityFUPSalesOrder

DDL: A_OPPORTUNITYFUPSALESORDER Type: view COMPOSITE

Sales Order as Follow Up of Opportunity

A_OpportunityFUPSalesOrder is a Composite CDS View that provides data about "Sales Order as Follow Up of Opportunity" in SAP S/4HANA. It reads from 1 data source (I_PresalesDocumentSuccessor) and exposes 6 fields with key fields SalesOrder, Opportunity. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PresalesDocumentSuccessor OpportunitySalesOrder from

Associations (2)

CardinalityTargetAliasCondition
[1] A_Opportunity _Opportunity $projection.Opportunity = _Opportunity.Opportunity
[1] I_PresalesDocumentEnhcd _PresalesDoc $projection.PresalesDocumentUUID = _PresalesDoc.PresalesDocumentUUID

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName AOPPTYFUPSLSORD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Sales Order as Follow Up of Opportunity view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder
KEY Opportunity _PresalesDoc PresalesDocument
PresalesDocumentUUID PresalesDocumentUUID Object GUID
PresalesDocumentSuccessorUUID PresalesDocumentSuccessorUUID Object GUID
PresalesDocumentRelationUUID PresalesDocumentRelationUUID GUID link
_Opportunity _Opportunity

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 A_OpportunityFUPSalesOrder.
-- 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 A_OpportunityFUPSalesOrder AS
SELECT
  OpportunitySalesOrder._SalesOrder.SalesDocument AS SalesOrder,
  _PresalesDoc.PresalesDocument AS Opportunity,
  PresalesDocumentUUID,
  PresalesDocumentSuccessorUUID,
  PresalesDocumentRelationUUID
FROM I_PresalesDocumentSuccessor AS OpportunitySalesOrder
LEFT OUTER JOIN A_Opportunity AS _Opportunity ON Opportunity = _Opportunity.Opportunity  -- association [1]
LEFT OUTER JOIN I_PresalesDocumentEnhcd AS _PresalesDoc ON PresalesDocumentUUID = _PresalesDoc.PresalesDocumentUUID  -- association [1]
;