Symptom
You notice that the action Submit in a Sales Quote first sends a validation and only once this validation gets confirmed does the quote get saved.
Environment
-
SAP Hybris Cloud for Customer
- SAP Cloud Application Studio
Cause
This is the expected system behavior. First the submit validation is triggered as you are sending the instance for the submit purpose. Only if that validation goes through and is accepted by the system, meaning the quote is consistent and allowed to be submitted, does the application perform the save action on the instance. Now the status of the instance changes to in process, to in approval or similar (depending on what the system setup is). Only then will the save be executed.
Resolution
Validation needs to come before Save as only validated Quotes can be sent for approval.
Keywords
SAP Cloud Application Studio, CustomerQuoteApproval, Customer Quote object, ActionValidation-Submit, Submit, Quote, Sales Quote, , KBA , LOD-LE-CQP , Customer Quote Processing , Problem