SAP Knowledge Base Article - Public

3658879 - Contract creation from PR exceeds requisition quantity – no system error in SAP S/4HANA Cloud

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

  1. Create a Purchase Requisition with a specific quantity.

  2. Start contract creation referencing that PR.

  3. Enter a quantity in the contract that is greater than the PR quantity.

  4. Save the contract.

  5. 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

  1. Implement the BAdI MM_PUR_S4_CTR_CHECK.

  2. In the BAdI implementation, add logic to compare the PR quantity with the contract item quantity.

  3. 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

Product

SAP S/4HANA Cloud Public Edition all versions