on 2025 Dec 08 1:54 PM
We are currently implementing the Service module in Public Cloud and are facing a requirement to add custom fields to the Situation Handling described in the Help documentation below:
Service Contract Due to Expire Soon | SAP Help Portal
I would like to share the approaches we have considered and the outcomes:
1. Extending the CDS view used by the standard Situation Handling
Our analysis showed that this Situation Handling is based on the CDS view C_SrvcContrItmExpryDetsSitn. However, since this CDS view is not released for extension, adding custom fields is not possible.
2. Implementing a custom Situation Handling based on CDS view I_ServiceContractCube_2
This CDS view is useful because it provides visibility into the remaining time until contract expiration (e.g., 3 weeks before, 2 weeks before).
We attempted to implement a similar custom Situation Handling based on this view; however, the challenge is that it does not expose the “Auto Renewal” indicator. As a result, there is a risk that notifications would be triggered even for contracts that are automatically renewed.
3. Implementing a custom Situation Handling based on CDS view I_SERVICECONTRACTENHCD
This CDS view provides the contract end date, but we encountered the same limitations as in #2.
Additionally, since the date is stored as a DEC type, it is not suitable for conditions such as “NEXT 90 DAYS.”
Based on the above, I would like to ask product development or experts who may have addressed similar requirements:
Is there any plan to release C_SrvcContrItmExpryDetsSitn or to enable field extensibility for this CDS view in alignment with custom field extensions?
If not, is there a plan to provide templates or sample implementations for custom Situation Handling, similar to those available in other modules?
If neither is planned, are there alternative CDS views better suited for this requirement beyond the ones in #2 and #3?
If not, and a custom CDS view is necessary, which CDS views would you recommend combining to meet this requirement?
We appreciate your support and any guidance you can provide.
Request clarification before answering.
Based on your detailed analysis, I understand the challenges you're facing with extending the standard "Service Contract Due to Expire Soon" situation handling. Let me address your questions systematically:
Your assessment is accurate regarding the standard CDS view limitations:
Create a custom situation object using the Manage Situation Objects app [1]:
Step 1: Design Custom CDS View
Step 2: Configure Situation Object
Step 3: Set Up Events and Actions
Recommended CDS Views to Combine:
Implementation Approach:
-- Example structure for custom CDS view
DEFINE VIEW ZC_ServiceContractExpiry AS SELECT FROM
I_ServiceContractCube_2 AS cube
INNER JOIN I_ServiceContract AS header
ON cube.ServiceContract = header.ServiceContract
INNER JOIN I_ServiceContractItem AS item
ON cube.ServiceContract = item.ServiceContract
AND cube.ServiceContractItem = item.ServiceContractItem
{
cube.ServiceContract,
cube.ServiceContractItem,
cube.ValidityEndDate,
header.AutoRenewalIndicator,
// Add custom fields here
// Time-based calculations for expiry conditions
}
WHERE header.AutoRenewalIndicator = '' // Exclude auto-renewal contractsRegarding your specific questions:
C_SrvcContrItmExpryDetsSitn Extension: While I cannot provide definitive roadmap information, consider submitting an enhancement request through SAP Influence channels for releasing this view for extension
Template Availability: Custom situation handling templates are typically provided through the Manage Situation Objects app [1], which offers the framework for creating custom implementations
Alternative Views: The combination approach using I_ServiceContractCube_2 with contract master views appears to be your best option currently
Custom Field Integration:
Performance Optimization:
Testing Strategy:
I'd be happy to provide detailed step-by-step guidance for your Service Contract Situation Handling implementation. To give you the most relevant and actionable instructions, could you please specify which aspect you'd like me to focus on:
1. Custom CDS View Creation & Combination
2. Custom Situation Object Configuration
3. Enhancement Request Structuring
4. Complete End-to-End Implementation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply.
I'll check your solution and configure the system.
I'll let you know the result!
| User | Count |
|---|---|
| 39 | |
| 23 | |
| 21 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.