C_BusSolnOrdPlndDteSitn2
Trigger CDS view planned date reached
C_BusSolnOrdPlndDteSitn2 is a Consumption CDS View that provides data about "Trigger CDS view planned date reached" in SAP S/4HANA. It reads from 3 data sources (I_ServiceDocumentItemEnhcd, I_ServiceDocumentItemSuccssr_2, I_BusSolnOrdItemRelationships) and exposes 34 fields with key fields BusinessSolutionOrder, BusinessSolutionOrderItem, ServiceObjectType, BusSolnOrdRelatedItem. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentItemEnhcd | FollowUpDocumentItem | inner |
| I_ServiceDocumentItemSuccssr_2 | ServiceDocItemSuccessor | inner |
| I_BusSolnOrdItemRelationships | ServiceDocumentItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ServiceDocumentItemEnhcd | RelatedItem | ServiceDocumentItem.BusinessSolutionOrder = RelatedItem.ServiceDocument and ServiceDocumentItem.BusSolnOrdRelatedItem = RelatedItem.ServiceDocumentItem and RelatedItem.ServiceObjectType = 'BUS2000172' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCPLNDTERCHD2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.uniqueIdField | ServiceDocumentItemCharUUID | view | |
| EndUserText.label | Trigger CDS view planned date reached | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessSolutionOrder | |||
| KEY | BusinessSolutionOrderItem | |||
| KEY | ServiceObjectType | I_BusSolnOrdItemRelationships | ServiceObjectType | Object Type |
| KEY | BusSolnOrdRelatedItem | BusSolnOrdRelatedItem | ||
| ServiceDocumentItemCharUUID | I_BusSolnOrdItemRelationships | ServiceDocumentItemCharUUID | ||
| ServiceDocumentItemObjectType | I_BusSolnOrdItemRelationships | ServiceDocumentItemObjectType | Object Type | |
| SuccessorReferenceDocument | ||||
| BusSolnOrderItemCharUUID | RelatedItem | ServiceDocumentItemCharUUID | ||
| NrOfDaysBeforeRequestedEndDate | Days Before Planned Service Start Date | |||
| SalesOrganization | I_BusSolnOrdItemRelationships | SalesOrganization | Sales Organization | |
| DistributionChannel | I_BusSolnOrdItemRelationships | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_BusSolnOrdItemRelationships | Division | Internal Division ID | |
| SalesOffice | I_BusSolnOrdItemRelationships | SalesOffice | Sales Office | |
| SalesGroup | I_BusSolnOrdItemRelationships | SalesGroup | Sales Group | |
| SalesOfficeOrgUnitID | I_BusSolnOrdItemRelationships | SalesOfficeOrgUnitID | ||
| SalesOrganizationOrgUnitID | I_BusSolnOrdItemRelationships | SalesOrganizationOrgUnitID | ||
| SalesGroupOrgUnitID | I_BusSolnOrdItemRelationships | SalesGroupOrgUnitID | ||
| ServiceOrganization | I_BusSolnOrdItemRelationships | ServiceOrganization | ||
| ServiceDocumentType | I_BusSolnOrdItemRelationships | ServiceDocumentType | Transaction Type | |
| ResponsibleEmployee | I_BusSolnOrdItemRelationships | ResponsibleEmployee | Employee Resp. | |
| ServiceEmployee | I_BusSolnOrdItemRelationships | ServiceEmployee | Service Technician | |
| ServiceDocumentItemStatus | I_BusSolnOrdItemRelationships | ServiceDocumentItemStatus | Life Cycle Status | |
| _SrvcDocItmLifecycleStatus | ||||
| _SalesOrganization | I_BusSolnOrdItemRelationships | _SalesOrganization | ||
| _DistributionChannel | I_BusSolnOrdItemRelationships | _DistributionChannel | ||
| _Division | I_BusSolnOrdItemRelationships | _Division | ||
| _SalesOffice | I_BusSolnOrdItemRelationships | _SalesOffice | ||
| _SalesGroup | I_BusSolnOrdItemRelationships | _SalesGroup | ||
| _SalesOfficeOrgUnit | I_BusSolnOrdItemRelationships | _SalesOfficeOrgUnit | ||
| _SalesOrganizationOrgUnit | I_BusSolnOrdItemRelationships | _SalesOrganizationOrgUnit | ||
| _SalesGroupOrgUnit | I_BusSolnOrdItemRelationships | _SalesGroupOrgUnit | ||
| _ServiceOrganizationOrgUnit | I_BusSolnOrdItemRelationships | _ServiceOrganizationOrgUnit | ||
| _ServiceDocumentType | I_BusSolnOrdItemRelationships | _ServiceDocumentType | ||
| _RespEmployee | I_BusSolnOrdItemRelationships | _RespEmployee |
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_BusSolnOrdPlndDteSitn2.
-- 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: CSRVCPLNDTERCHD2
CREATE VIEW C_BusSolnOrdPlndDteSitn2 AS
SELECT
ltrim( ServiceDocumentItem.BusinessSolutionOrder, '0' ) AS BusinessSolutionOrder,
cast( ltrim(ServiceDocumentItem.BusinessSolutionOrderItem, '0' ) as abap.numc(6)) AS BusinessSolutionOrderItem,
ServiceDocumentItem.ServiceObjectType AS ServiceObjectType,
BusSolnOrdRelatedItem,
ServiceDocumentItem.ServiceDocumentItemCharUUID AS ServiceDocumentItemCharUUID,
ServiceDocumentItem.ServiceDocumentItemObjectType AS ServiceDocumentItemObjectType,
cast(ltrim(FollowUpDocumentItem.ServiceDocument, '0') as abap.char(10)) AS SuccessorReferenceDocument,
RelatedItem.ServiceDocumentItemCharUUID AS BusSolnOrderItemCharUUID,
division( tstmp_seconds_between(tstmp_current_utctimestamp(), ServiceDocumentItem.PlannedServiceStartDateTime, 'NULL' ), 86400, 0) AS NrOfDaysBeforeRequestedEndDate,
ServiceDocumentItem.SalesOrganization AS SalesOrganization,
ServiceDocumentItem.DistributionChannel AS DistributionChannel,
ServiceDocumentItem.Division AS Division,
ServiceDocumentItem.SalesOffice AS SalesOffice,
ServiceDocumentItem.SalesGroup AS SalesGroup,
ServiceDocumentItem.SalesOfficeOrgUnitID AS SalesOfficeOrgUnitID,
ServiceDocumentItem.SalesOrganizationOrgUnitID AS SalesOrganizationOrgUnitID,
ServiceDocumentItem.SalesGroupOrgUnitID AS SalesGroupOrgUnitID,
ServiceDocumentItem.ServiceOrganization AS ServiceOrganization,
ServiceDocumentItem.ServiceDocumentType AS ServiceDocumentType,
ServiceDocumentItem.ResponsibleEmployee AS ResponsibleEmployee,
ServiceDocumentItem.ServiceEmployee AS ServiceEmployee,
ServiceDocumentItem.ServiceDocumentItemStatus AS ServiceDocumentItemStatus,
ServiceDocumentItem. _SrvcDocItmLifecycleStatus AS _SrvcDocItmLifecycleStatus,
ServiceDocumentItem._SalesOrganization AS _SalesOrganization,
ServiceDocumentItem._DistributionChannel AS _DistributionChannel,
ServiceDocumentItem._Division AS _Division,
ServiceDocumentItem._SalesOffice AS _SalesOffice,
ServiceDocumentItem._SalesGroup AS _SalesGroup,
ServiceDocumentItem._SalesOfficeOrgUnit AS _SalesOfficeOrgUnit,
ServiceDocumentItem._SalesOrganizationOrgUnit AS _SalesOrganizationOrgUnit,
ServiceDocumentItem._SalesGroupOrgUnit AS _SalesGroupOrgUnit,
ServiceDocumentItem._ServiceOrganizationOrgUnit AS _ServiceOrganizationOrgUnit,
ServiceDocumentItem._ServiceDocumentType AS _ServiceDocumentType,
ServiceDocumentItem._RespEmployee AS _RespEmployee
FROM I_BusSolnOrdItemRelationships AS ServiceDocumentItem
INNER JOIN I_ServiceDocumentItemSuccssr_2 AS ServiceDocItemSuccessor ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocumentItemEnhcd AS FollowUpDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ServiceDocumentItemEnhcd AS RelatedItem ON ServiceDocumentItem.BusinessSolutionOrder = RelatedItem.ServiceDocument AND ServiceDocumentItem.BusSolnOrdRelatedItem = RelatedItem.ServiceDocumentItem AND RelatedItem.ServiceObjectType = 'BUS2000172' -- association [0..1]
;
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