A_OpptyItmFUPSalesOrder

DDL: A_OPPTYITMFUPSALESORDER Type: view COMPOSITE

Sales Order Followup of Opportunity Item

A_OpptyItmFUPSalesOrder is a Composite CDS View that provides data about "Sales Order Followup of Opportunity Item" in SAP S/4HANA. It reads from 1 data source (I_PresalesDocItemSuccessor) and exposes 8 fields with key fields Opportunity, OpportunityItem, SalesOrder, SalesOrderItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PresalesDocItemSuccessor OpportunityItemSalesOrder from

Associations (2)

CardinalityTargetAliasCondition
[1] A_Opportunity _Opportunity $projection.Opportunity = _Opportunity.Opportunity
[0..1] I_PresalesDocumentItemEnhcd _PreSalesDocumentItem $projection.OpportunityItemUUID = _PreSalesDocumentItem.PresalesDocumentItemUUID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName AOPPTYITMFUPSORD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Order Followup of Opportunity Item 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 (8)

KeyFieldSource TableSource FieldDescription
KEY Opportunity _PreSalesDocumentItem PresalesDocument
KEY OpportunityItem _PreSalesDocumentItem PresalesDocumentItem
KEY SalesOrder
KEY SalesOrderItem I_PresalesDocItemSuccessor PresalesDocItmSuccessorUUID Object ID
OpportunityItemUUID PresalesDocumentItemUUID
PresalesDocItmSuccessorUUID PresalesDocItmSuccessorUUID Object ID
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_OpptyItmFUPSalesOrder.
-- 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_OpptyItmFUPSalesOrder AS
SELECT
  _PreSalesDocumentItem.PresalesDocument AS Opportunity,
  _PreSalesDocumentItem.PresalesDocumentItem AS OpportunityItem,
  OpportunityItemSalesOrder._SalesDocument.PresalesDocumentSuccessor AS SalesOrder,
  OpportunityItemSalesOrder.PresalesDocItmSuccessorUUID AS SalesOrderItem,
  PresalesDocumentItemUUID AS OpportunityItemUUID,
  PresalesDocItmSuccessorUUID,
  PresalesDocumentRelationUUID
FROM I_PresalesDocItemSuccessor AS OpportunityItemSalesOrder
LEFT OUTER JOIN A_Opportunity AS _Opportunity ON Opportunity = _Opportunity.Opportunity  -- association [1]
LEFT OUTER JOIN I_PresalesDocumentItemEnhcd AS _PreSalesDocumentItem ON OpportunityItemUUID = _PreSalesDocumentItem.PresalesDocumentItemUUID  -- association [0..1]
;