C_ServiceEntrySheetProcessFlow
Process Flow For Service Entry Sheet
C_ServiceEntrySheetProcessFlow is a Consumption CDS View that provides data about "Process Flow For Service Entry Sheet" in SAP S/4HANA. It reads from 18 data sources and exposes 105 fields with key fields char120endasPrecedingDocument, char440endasPrecedingDocumentItem, char120endasSubsequentDocument, char440endasSubsequentDocumentItem, char440endasPrecedingDocumentItem.
Data Sources (18)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseContractItem | PC | inner |
| C_PlantVH | Plant | left_outer |
| C_PlantVH | Plant | left_outer |
| R_PurchaseOrderItem | PO | inner |
| R_PurchaseOrderItem | PO | inner |
| I_PurchaseOrder | PO | inner |
| C_PurReqnProcessFlow | PurchaseRequisitionFlow | union_all |
| I_PurchaseOrderHistory | PurchasingDocument | from |
| I_PurchaseOrderHistory | PurchasingDocument | union_all |
| I_ServiceEntrySheetBasic | ServiceEntrySheet | inner |
| I_ServiceEntrySheetBasic | ServiceEntrySheet | inner |
| I_ServiceEntrySheetBasic | ServiceEntrySheet | union_all |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | right_outer |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | right_outer |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | inner |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | inner |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | union_all |
| I_ServiceEntrySheetItemBasic | ServiceEntrySheetItem | union_all |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSESPROCESSFLOW | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Process Flow For Service Entry Sheet | view |
Fields (105)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | char120endasPrecedingDocument | |||
| KEY | char440endasPrecedingDocumentItem | |||
| KEY | char120endasSubsequentDocument | |||
| KEY | char440endasSubsequentDocumentItem | |||
| AccountAssignmentNumber | I_PurchaseOrderHistory | AccountAssignmentNumber | Account Assgmt No. | |
| ReferenceDocument0endasServiceEntrySheet | ||||
| char440endasServiceEntrySheetItem | ||||
| PlantName | C_PlantVH | PlantName | Plant Name | |
| Quantity1endasQuantity | ||||
| PostingDate | I_PurchaseOrderHistory | PostingDate | Posting Date for GR | |
| Currency | I_PurchaseOrderHistory | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| char120endasPrecedingDocument | ||||
| KEY | char440endasPrecedingDocumentItem | |||
| KEY | char120endasSubsequentDocument | |||
| KEY | char440endasSubsequentDocumentItem | |||
| AccountAssignmentNumber | I_PurchaseOrderHistory | AccountAssignmentNumber | Account Assgmt No. | |
| ReferenceDocument0endasServiceEntrySheet | ||||
| char440endasServiceEntrySheetItem | ||||
| PlantName | C_PlantVH | PlantName | Plant Name | |
| Quantity1endasQuantity | ||||
| PostingDate | I_PurchaseOrderHistory | PostingDate | Posting Date for GR | |
| Currency | I_PurchaseOrderHistory | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| char120asPrecedingDocument | ||||
| KEY | PrecedingDocumentItem | |||
| KEY | PrecedingDocumentCategory | |||
| KEY | SubsequentDocument | |||
| KEY | SubsequentDocumentItem | |||
| KEY | MaterialDocumentYear | |||
| AccountAssignmentNumber | Account Assgmt No. | |||
| SubsequentDocumentCategory | ||||
| ServiceEntrySheet | ||||
| ServiceEntrySheetItem | ||||
| PlantName | Plant Name | |||
| Quantity | ||||
| FiscalYear | ||||
| PostingDate | Posting Date for GR | |||
| SupplierInvoiceItemAmount | 0 | |||
| Currency | I_ServiceEntrySheetItemBasic | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| PurchaseContract0endasPrecedingDocument | ||||
| KEY | char550endasPrecedingDocumentItem | |||
| KEY | PrecedingDocumentCategory | |||
| KEY | SubsequentDocument | |||
| KEY | SubsequentDocumentItem | |||
| KEY | MaterialDocumentYear | |||
| AccountAssignmentNumber | Account Assgmt No. | |||
| SubsequentDocumentCategory | ||||
| ServiceEntrySheet | ||||
| ServiceEntrySheetItem | ||||
| PlantName | Plant Name | |||
| Quantity | ||||
| FiscalYear | ||||
| PostingDate | Posting Date for GR | |||
| SupplierInvoiceItemAmount | 0 | |||
| Currency | I_ServiceEntrySheetItemBasic | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetItemBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetItemBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetItemBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| char120asPrecedingDocument | ||||
| KEY | PrecedingDocumentItem | |||
| KEY | PrecedingDocumentCategory | |||
| KEY | SubsequentDocument | |||
| KEY | SubsequentDocumentItem | |||
| KEY | MaterialDocumentYear | |||
| AccountAssignmentNumber | Account Assgmt No. | |||
| SubsequentDocumentCategory | ||||
| ServiceEntrySheet | ||||
| ServiceEntrySheetItem | ||||
| PlantName | Plant Name | |||
| Quantity | ||||
| FiscalYear | ||||
| PostingDate | Posting Date for GR | |||
| SupplierInvoiceItemAmount | 0 | |||
| Currency | I_ServiceEntrySheetItemBasic | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetItemBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetItemBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetItemBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| char120asPrecedingDocument | ||||
| KEY | PrecedingDocumentItem | |||
| KEY | PrecedingDocumentCategory | |||
| KEY | SubsequentDocument | |||
| KEY | SubsequentDocumentItem | |||
| KEY | MaterialDocumentYear | |||
| AccountAssignmentNumber | Account Assgmt No. | |||
| SubsequentDocumentCategory | C_PurReqnProcessFlow | PrecedingDocumentCategory | ||
| ServiceEntrySheet | ||||
| ServiceEntrySheetItem | ||||
| PlantName | Plant Name | |||
| Quantity | ||||
| FiscalYear | ||||
| PostingDate | Posting Date for GR | |||
| SupplierInvoiceItemAmount | 0 | |||
| Currency | I_ServiceEntrySheetItemBasic | Currency | Valuation Crcy | |
| PurchasingGroup | I_ServiceEntrySheetItemBasic | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_ServiceEntrySheetItemBasic | PurchasingOrganization | Purchasing Organization | |
| IsEndOfPurposeBlocked | I_ServiceEntrySheetItemBasic | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| ApprovalStatus |
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_ServiceEntrySheetProcessFlow.
-- 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: CSESPROCESSFLOW
CREATE VIEW C_ServiceEntrySheetProcessFlow AS
SELECT
case when PurchasingDocument.ReferenceDocument = '' or PurchasingDocument.ReferenceDocument = PurchasingDocument.MaterialDocument then ltrim(cast(PurchasingDocument.PurchaseOrder as abap.char( 12 )),'0') else ltrim(cast(PurchasingDocument.ReferenceDocument as abap.char( 12 )),'0') end as PrecedingDocument AS char120endasPrecedingDocument,
case when PurchasingDocument.ReferenceDocument = '' or PurchasingDocument.ReferenceDocument = PurchasingDocument.MaterialDocument then lpad(cast(ltrim(PurchasingDocument.PurchaseOrderItem,'0') as abap.char( 5 )),5, '0') else lpad(cast(ltrim(PurchasingDocument.ReferenceDocumentItem,'0') as abap.char( 4 )),4, '0') end as PrecedingDocumentItem AS char440endasPrecedingDocumentItem,
case when ServiceEntrySheet.ServiceEntrySheet is not null and ServiceEntrySheet.OriginObjectType = 'TS' and PurchasingDocument.PurchaseOrderTransactionType = 'S' then ltrim(ServiceEntrySheetItem.OriginObject, '0') else ltrim(cast(PurchasingDocument.MaterialDocument as abap.char( 12 )),'0') end as SubsequentDocument AS char120endasSubsequentDocument,
case when ServiceEntrySheet.ServiceEntrySheet is not null and ServiceEntrySheet.OriginObjectType = 'TS' and PurchasingDocument.PurchaseOrderTransactionType = 'S' then '00000' else lpad(cast(ltrim(PurchasingDocument.MaterialDocumentItem,'0') as abap.char( 4 )),4, '0') end as SubsequentDocumentItem AS char440endasSubsequentDocumentItem,
PurchasingDocument.AccountAssignmentNumber AS AccountAssignmentNumber,
case when PurchasingDocument.ReferenceDocument = '' then ltrim(PurchasingDocument.MaterialDocument,'0') else ltrim(PurchasingDocument.ReferenceDocument,'0') end as ServiceEntrySheet AS ReferenceDocument0endasServiceEntrySheet,
case when PurchasingDocument.ReferenceDocumentItem = '0000' then lpad(cast(ltrim(PurchasingDocument.MaterialDocumentItem,'0') as abap.char( 4 )),4, '0') else lpad(cast(ltrim(PurchasingDocument.ReferenceDocumentItem,'0') as abap.char( 4 )),4, '0') end as ServiceEntrySheetItem AS char440endasServiceEntrySheetItem,
Plant.PlantName AS PlantName,
case when PurchasingDocument.DebitCreditCode = 'S' then PurchasingDocument.Quantity else PurchasingDocument.Quantity * (-1) end as Quantity AS Quantity1endasQuantity,
PurchasingDocument.PostingDate AS PostingDate,
PurchasingDocument.Currency AS Currency,
ServiceEntrySheet.PurchasingGroup AS PurchasingGroup,
ServiceEntrySheet.PurchasingOrganization AS PurchasingOrganization,
ServiceEntrySheet.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
ServiceEntrySheet.ApprovalStatus AS char120asPrecedingDocument,
'00000' AS PrecedingDocumentItem,
'T' AS PrecedingDocumentCategory,
ltrim(ServiceEntrySheetItem.ServiceEntrySheet,'0') AS SubsequentDocument,
lpad(cast(ltrim(ServiceEntrySheetItem.ServiceEntrySheetItem, '0') as abap.char( 4 )), 4, '0') AS SubsequentDocumentItem,
'0000' AS MaterialDocumentYear,
'S' AS SubsequentDocumentCategory,
ltrim(ServiceEntrySheetItem.ServiceEntrySheet,'0') AS ServiceEntrySheet,
lpad(cast(ltrim(substring(ServiceEntrySheetItem.ServiceEntrySheetItem, 2, 5), '0') as abap.char( 4 )), 4, '0') AS ServiceEntrySheetItem,
cast( 0 as abap.dec( 13, 3 ) ) AS Quantity,
'0000' AS FiscalYear,
0 AS SupplierInvoiceItemAmount,
ServiceEntrySheet.ApprovalStatus AS PurchaseContract0endasPrecedingDocument,
case when ServiceEntrySheetItem.PurchaseContract is not initial then lpad(cast(ltrim(ServiceEntrySheetItem.PurchaseContractItem,'0') as abap.char( 5 )),5,'0') when PO.PurchaseContract is not initial then lpad(cast(ltrim(PO.PurchaseContractItem,'0') as abap.char( 5 )),5, '0') end as PrecedingDocumentItem AS char550endasPrecedingDocumentItem,
'' AS ApprovalStatus
FROM I_PurchaseOrderHistory AS PurchasingDocument
INNER JOIN I_ServiceEntrySheetBasic AS ServiceEntrySheet ON /* join condition not captured in parsed metadata */
RIGHT OUTER JOIN I_ServiceEntrySheetItemBasic AS ServiceEntrySheetItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PlantVH AS Plant ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceEntrySheetItemBasic AS ServiceEntrySheetItem ON /* join condition not captured in parsed metadata */
INNER JOIN R_PurchaseOrderItem AS PO ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseContractItem AS PC ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseOrder AS PO ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_PurchaseOrderHistory, I_ServiceEntrySheetBasic, I_ServiceEntrySheetItemBasic, C_PurReqnProcessFlow
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA