Symptom
-
When creating a contract from a Purchase Requisition (PR), the system allows the contract quantity to exceed the PR quantity.
-
No error or warning message is raised during contract creation, even if the contract quantity is greater than the PR quantity.
Environment
- SAP S/4HANA Cloud Public Edition
- Contract (Public Cloud)
Reproducing the Issue
-
Create a Purchase Requisition with a specific quantity.
-
Start contract creation referencing that PR.
-
Enter a quantity in the contract that is greater than the PR quantity.
-
Save the contract.
-
Observe: the system accepts the contract without any error or warning message.
Cause
-
Standard SAP behavior does not include an automatic quantity check between PR and Contract.
-
Validation for this scenario is not enforced by default in the system.
-
Custom logic is required to trigger an error or warning.
Resolution
-
Implement the BAdI
MM_PUR_S4_CTR_CHECK. -
In the BAdI implementation, add logic to compare the PR quantity with the contract item quantity.
-
If the contract quantity is greater than the PR quantity:
-
Raise an error message (to block saving), or
-
Raise a warning message (to allow override, if the business process requires).
-
Keywords
Contract exceeds PR quantity, No error in contract creation, Contract warning message missing, PR vs Contract quantity validation, SAP S/4HANA contract creation, Purchase Requisition contract mismatch, Contract validation enhancement, SAP contract error check, Exceed PR quantity contract , KBA , MM-PUR-OA-CON-2CL , Contract (Public Cloud) , How To
SAP Knowledge Base Article - Public