A_SrvcOrdAppointment

DDL: A_SRVCORDAPPOINTMENT Type: view COMPOSITE

Service Order Appointment

A_SrvcOrdAppointment is a Composite CDS View that provides data about "Service Order Appointment" in SAP S/4HANA. It reads from 2 data sources (I_SrvcDocAppointment, I_ServiceDocument) and exposes 5 fields with key fields ServiceOrder, SrvcDocAppointmentType. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_SrvcDocAppointment ServiceAppointment from
I_ServiceDocument ServiceOrder inner

Associations (1)

CardinalityTargetAliasCondition
[1] A_ServiceOrder _ServiceOrder $projection.ServiceOrder = _ServiceOrder.ServiceOrder

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Service Order Appointment view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASRVORDAPPT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder I_ServiceDocument ServiceDocument Transaction ID
KEY SrvcDocAppointmentType I_SrvcDocAppointment SrvcDocAppointmentType Date Type
SrvcDocApptStartDateTime I_SrvcDocAppointment SrvcDocApptStartDateTime Time Stamp (UTC) of Start Time of Appointment
SrvcDocApptEndDateTime I_SrvcDocAppointment SrvcDocApptEndDateTime Time stamp of end of appointment
_ServiceOrder _ServiceOrder

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_SrvcOrdAppointment.
-- 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_SrvcOrdAppointment AS
SELECT
  ServiceOrder.ServiceDocument AS ServiceOrder,
  ServiceAppointment.SrvcDocAppointmentType AS SrvcDocAppointmentType,
  ServiceAppointment.SrvcDocApptStartDateTime AS SrvcDocApptStartDateTime,
  ServiceAppointment.SrvcDocApptEndDateTime AS SrvcDocApptEndDateTime
FROM I_SrvcDocAppointment AS ServiceAppointment
INNER JOIN I_ServiceDocument AS ServiceOrder ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_ServiceOrder AS _ServiceOrder ON ServiceOrder = _ServiceOrder.ServiceOrder  -- association [1]
;