C_ServiceEntrySheetWD

DDL: C_SERVICEENTRYSHEETWD SQL: CSRVCENTRSHTWD Type: view CONSUMPTION Package: APPL_MM_PUR_SES_TR

Service Entry Sheet with Draft

C_ServiceEntrySheetWD is a Consumption CDS View that provides data about "Service Entry Sheet with Draft" in SAP S/4HANA. It reads from 1 data source (I_ServiceEntrySheetTP) and exposes 59 fields with key field ServiceEntrySheet. It has 7 associations to related views. Part of development package APPL_MM_PUR_SES_TR.

Data Sources (1)

SourceAliasJoin Type
I_ServiceEntrySheetTP Document from

Associations (7)

CardinalityTargetAliasCondition
[1..*] C_ServiceEntrySheetItemWD _ServiceEntrySheetItem _ServiceEntrySheetItem.ServiceEntrySheet = $projection.ServiceEntrySheet
[0..*] C_MM_SupplierValueHelp _SupplierValueHelp _SupplierValueHelp.Supplier = $projection.Supplier
[0..1] C_PurchasingOrgValueHelp _PurgOrgValueHelp _PurgOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganization
[0..1] C_PurchasingGroupValueHelp _PurchasingGrpValueHelp _PurchasingGrpValueHelp.PurchasingGroup = $projection.PurchasingGroup
[0..1] I_User _CreatedByUser _CreatedByUser.UserID = $projection.CreatedByUser
[0..1] I_User _LastChangeUser _LastChangeUser.UserID = $projection.LastChangeUser
[0..*] C_ServiceEntrySheetApprover _Approver _Approver.ServiceEntrySheet = $projection.ServiceEntrySheet

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CSRVCENTRSHTWD view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Service Entry Sheet with Draft view
Search.searchable true view
Consumption.semanticObject ServiceEntrySheet view
ObjectModel.compositionRoot true view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.createEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Service Entry Sheet view
UI.headerInfo.typeNamePlural Service Entry Sheet view
UI.headerInfo.description.value ServiceEntrySheet view
UI.headerInfo.title.value ServiceEntrySheetName view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY ServiceEntrySheet I_ServiceEntrySheetTP ServiceEntrySheet Service Entry Sheet
ServiceEntrySheetName I_ServiceEntrySheetTP ServiceEntrySheetName Name of Service Entry Sheet
Supplier I_ServiceEntrySheetTP Supplier Supplier
SupplierName I_ServiceEntrySheetTP SupplierName Supplier Name
PurchaseOrder I_ServiceEntrySheetTP PurchaseOrder Reference Purchase Order
PurchaseOrderCurrency I_ServiceEntrySheetTP PurchaseOrderCurrency Purchase Order Currency
IsDeleted I_ServiceEntrySheetTP IsDeleted TRUE
ApprovalStatus I_ServiceEntrySheetTP ApprovalStatus Document Status
OverallStatusCriticality I_ServiceEntrySheetTP OverallStatusCriticality
SESWorkflowStatus I_ServiceEntrySheetTP SESWorkflowStatus
StatusCriticality I_ServiceEntrySheetTP StatusCriticality
ResponsiblePerson I_ServiceEntrySheetTP ResponsiblePerson Processor
ResponsiblePersonName I_ServiceEntrySheetTP ResponsiblePersonName User
FormattedAddress
AddressID I_ServiceEntrySheetTP FormattedAddress
NormalizedPhoneNumber I_ServiceEntrySheetTP NormalizedPhoneNumber Telephone Number
MobilePhoneNumber I_ServiceEntrySheetTP MobilePhoneNumber Mobile Phone Number
DefaultEmailAddress I_ServiceEntrySheetTP DefaultEmailAddress
ApprovalStatusName
PriceInSESHasChanged Price Changed
ApproverName
OriginObjectType I_ServiceEntrySheetTP OriginObjectType Origin
Currency I_ServiceEntrySheetTP Currency Valuation Crcy
CreationDateTime I_ServiceEntrySheetTP CreationDateTime Created On (Time Stamp)
CreatedByUser I_ServiceEntrySheetTP CreatedByUser Created By
LastChangeDateTime I_ServiceEntrySheetTP LastChangeDateTime Changed On
LastChangeUser I_ServiceEntrySheetTP LastChangeUser User Name
IsEndOfPurposeBlocked I_ServiceEntrySheetTP IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchasingOrganization I_ServiceEntrySheetTP PurchasingOrganization Purchasing Organization
PurchasingGroup I_ServiceEntrySheetTP PurchasingGroup Purchasing Group
PostingDate I_ServiceEntrySheetTP PostingDate Posting Date for Goods Receipt
TotalNetAmount I_ServiceEntrySheetTP TotalNetAmount Total Net Amount
TotalSESNetAmountInclSalesTax I_ServiceEntrySheetTP TotalSESNetAmountInclSalesTax Stated Amount Including Input Tax
PricingDocument I_ServiceEntrySheetTP PricingDocument Document Condition
SendToApprovalIsPossible I_ServiceEntrySheetTP SendToApprovalIsPossible
CancelApprovalIsPossible I_ServiceEntrySheetTP CancelApprovalIsPossible
RevokeIsPossible I_ServiceEntrySheetTP RevokeIsPossible
PurchaseOrderExists
PurgDocExternalSystem I_ServiceEntrySheetTP PurgDocExternalSystem
ExternalRevisionDateTime I_ServiceEntrySheetTP ExternalRevisionDateTime
UserFullName _CreatedByUser UserDescription Full Name of Creator
LastChangedByUserFullName _LastChangeUser UserDescription Last Changed (User’s Full Name)
NoteTypeListText
SESMassEditIsUtilized I_ServiceEntrySheetTP SESMassEditIsUtilized
_Supplier I_ServiceEntrySheetTP _Supplier
_SrvcEntrShtPurOrdValueHelp I_ServiceEntrySheetTP _SrvcEntrShtPurOrdValueHelp
_ResponsiblePersonValueHelp I_ServiceEntrySheetTP _ResponsiblePersonValueHelp
_ApprovalStatusValueHelp I_ServiceEntrySheetTP _ApprovalStatusValueHelp
_ApprovalStatusText I_ServiceEntrySheetTP _ApprovalStatusText Document Status text
_WorkflowStatusValueHelp I_ServiceEntrySheetTP _WorkflowStatusValueHelp
_WorkflowStatusText I_ServiceEntrySheetTP _WorkflowStatusText Approval Status text
_DocumentCurrency I_ServiceEntrySheetTP _DocumentCurrency
_PurchaseOrderCurrency I_ServiceEntrySheetTP _PurchaseOrderCurrency
_OriginObjectType I_ServiceEntrySheetTP _OriginObjectType
_ServiceEntrySheetItem _ServiceEntrySheetItem
_SupplierValueHelp _SupplierValueHelp
_PurgOrgValueHelp _PurgOrgValueHelp
_PurchasingGrpValueHelp _PurchasingGrpValueHelp
_Approver _Approver

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_ServiceEntrySheetWD.
-- 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: CSRVCENTRSHTWD

CREATE VIEW C_ServiceEntrySheetWD AS
SELECT
  Document.ServiceEntrySheet AS ServiceEntrySheet,
  Document.ServiceEntrySheetName AS ServiceEntrySheetName,
  Document.Supplier AS Supplier,
  Document.SupplierName AS SupplierName,
  Document.PurchaseOrder AS PurchaseOrder,
  Document.PurchaseOrderCurrency AS PurchaseOrderCurrency,
  Document.IsDeleted AS IsDeleted,
  Document.ApprovalStatus AS ApprovalStatus,
  Document.OverallStatusCriticality AS OverallStatusCriticality,
  Document.SESWorkflowStatus AS SESWorkflowStatus,
  Document.StatusCriticality AS StatusCriticality,
  Document.ResponsiblePerson AS ResponsiblePerson,
  Document.ResponsiblePersonName AS ResponsiblePersonName,
  cast('' as contactcardformattedaddress) AS FormattedAddress,
  Document.FormattedAddress AS AddressID,
  Document.NormalizedPhoneNumber AS NormalizedPhoneNumber,
  Document.MobilePhoneNumber AS MobilePhoneNumber,
  Document.DefaultEmailAddress AS DefaultEmailAddress,
  cast( '' as mm_approval_status ) AS ApprovalStatusName,
  cast( '' as mmpur_ses_price_changed ) AS PriceInSESHasChanged,
  cast( '' as mm_approver_name ) AS ApproverName,
  Document.OriginObjectType AS OriginObjectType,
  Document.Currency AS Currency,
  Document.CreationDateTime AS CreationDateTime,
  Document.CreatedByUser AS CreatedByUser,
  Document.LastChangeDateTime AS LastChangeDateTime,
  Document.LastChangeUser AS LastChangeUser,
  Document.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  Document.PurchasingOrganization AS PurchasingOrganization,
  Document.PurchasingGroup AS PurchasingGroup,
  Document.PostingDate AS PostingDate,
  Document.TotalNetAmount AS TotalNetAmount,
  Document.TotalSESNetAmountInclSalesTax AS TotalSESNetAmountInclSalesTax,
  Document.PricingDocument AS PricingDocument,
  Document.SendToApprovalIsPossible AS SendToApprovalIsPossible,
  Document.CancelApprovalIsPossible AS CancelApprovalIsPossible,
  Document.RevokeIsPossible AS RevokeIsPossible,
  cast( '' as mmpur_ses_revoke_appr_ac preserving type ) AS PurchaseOrderExists,
  Document.PurgDocExternalSystem AS PurgDocExternalSystem,
  Document.ExternalRevisionDateTime AS ExternalRevisionDateTime,
  _CreatedByUser.UserDescription AS UserFullName,
  _LastChangeUser.UserDescription AS LastChangedByUserFullName,
  cast( '' as abap.sstring( 450 ) ) AS NoteTypeListText,
  Document.SESMassEditIsUtilized AS SESMassEditIsUtilized,
  Document._Supplier AS _Supplier,
  Document._SrvcEntrShtPurOrdValueHelp AS _SrvcEntrShtPurOrdValueHelp,
  Document._ResponsiblePersonValueHelp AS _ResponsiblePersonValueHelp,
  Document._ApprovalStatusValueHelp AS _ApprovalStatusValueHelp,
  Document._ApprovalStatusText AS _ApprovalStatusText,
  Document._WorkflowStatusValueHelp AS _WorkflowStatusValueHelp,
  Document._WorkflowStatusText AS _WorkflowStatusText,
  Document._DocumentCurrency AS _DocumentCurrency,
  Document._PurchaseOrderCurrency AS _PurchaseOrderCurrency,
  Document._OriginObjectType AS _OriginObjectType
FROM I_ServiceEntrySheetTP AS Document
LEFT OUTER JOIN C_ServiceEntrySheetItemWD AS _ServiceEntrySheetItem ON _ServiceEntrySheetItem.ServiceEntrySheet = ServiceEntrySheet  -- association [1..*]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurgOrgValueHelp ON _PurgOrgValueHelp.PurchasingOrganization = PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGrpValueHelp ON _PurchasingGrpValueHelp.PurchasingGroup = PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON _CreatedByUser.UserID = CreatedByUser  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangeUser ON _LastChangeUser.UserID = LastChangeUser  -- association [0..1]
LEFT OUTER JOIN C_ServiceEntrySheetApprover AS _Approver ON _Approver.ServiceEntrySheet = ServiceEntrySheet  -- association [0..*]
;