cancel
Showing results for 
Search instead for 
Did you mean: 

Calling function BAPI_PRODORDCONF_CANCEL issues error

09-22-2026 9:12 AM
erpteams Discoverer
63 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

Dear experts,

        We got an error message 'Confirmed quantity/activity must not be smaller than 0' when cancelling a confirmation for the production using a customized function which is calling standard BAPI_PRODORDCONF_CANCEL.  There are only two confirmations before cancelling the latest confirmation.  The first confirmation's quantity is 0 with confirmed activity quantities. The second confirmation's quantity is 1,152 (Yield to conf. 1,151 + confirmed scrap 1). 

Regards,

Ken

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor
0 Likes

First did you try with standard transaction ?

  • If transaction don't raise error, check your parameters in the call off BAPI.
  • If same error, then suggested Steps:
    • Review all confirmations for the production order to identify any confirmations with negative activity values.
    • In instances where negative activity quantities are present (e.g., a confirmation with an activity quantity of -40), cancel the confirmation with the negative activity first.
    • After canceling any confirmations with negative activity, retry canceling the desired confirmation.

If you are unable to locate or cancel any confirmations with negative activity but continue to encounter the error:

    • Attempt to re-confirm the order activities as previously done, but set the confirmed quantity to zero.
    • Then, try canceling the confirmation again.