Symptom
There's a requirement for the system to block the release of a Service Order when validation fails.
By using the BAdI CRMS4_SERV_CHECK_BEFORE_SAVE, custom validations were implemented to check if the service order should be released according to business rules, an error message was implemented in the BAdI.
The requirement is for the system to abort the save/release process and display an error message or log visible to the end user at the Item level. However, this is not the current behavior: the system allows saving, releases the service order and the error can be seen in the error log.
Environment
- SAP S/4HANA Cloud Public Edition
Cause
The system currently collects messages raised by the BADI CRMS4_SERV_CHECK_BEFORE_SAVE at the service order header level only, not at the item level.
Resolution
- This is the current standard system behavior: messages from the relevant BAdI are collected at header level, so item-level errors do not block saving the document.
- If you need to block release at header level when validations fail, refer to: 3699524 - How to block service order release when validation fails.
- For item-level enforcement (raising and acting on item-level messages), submit a feature request via the Customer Influence Portal, as described in: 2963059 - How to Submit Feature Requests for SAP S/4HANA Cloud Product.
See Also
Keywords
Service order, BADIs, CRMS4_SERV_CHECK_BEFORE_SAVE , error , KBA , CRM-S4-SRV-SVO-2CL , S4CRM: Service Order (Public Cloud) , Problem
SAP Knowledge Base Article - Public