cancel
Showing results for 
Search instead for 
Did you mean: 

Restrit Confirm QTY not more than Grr QTY of Production Order.

Former Member
0 Kudos

Restrit Confirm QTY not more than Grr QTY of Production Order.

In a scenario i have to confirm Production Order after goods receipts,i want to restrict user from confirmation of extra qty then good receipts done against production order.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Like other gurus mentioned, there is no standard way. Please consider the BADI WORKORDER_CONFIRM with method AT_SAVE (the only relevant one that you can issue error message by triggering ERROR_WITH_MESSAGE).

Go to SE19 and create your implementation. The sample code will be something like this:

DATA gr_qty like afpo-wemng.

CHECK SY-TCODE EQ 'CO11N'.

SELECT SINGLE wemng into gr_qty where

aufnr eq is_confirmation-aufnr

posnr eq 1.

IF sy-subrc <> 0.

EXIT.

ENDIF.

if is_confirmation-lmnga ne gr_qty.

MESSAGE 'GR qty not equal confirm qty' TYPE 'E'

RAISING error_with_message.

endif.

Endmethod.

Rgrds,

Former Member
0 Kudos

Thanks for Suggestion ,I will check and revert back

Former Member
0 Kudos

POint closed ,

Solution ,User exit used in T.code CO11N.

CONFPP02

Answers (1)

Answers (1)

Former Member
0 Kudos

In Tcode: OPK4, for given plant & order type combination, under Generally valid settings tab

under checks, maintain the following setting

"X ERROR WHEN OVERDELIVERY TOLERANCE IS EXCEEDED"

Former Member
0 Kudos

I am doing Goods receipt first and then doing confirmation,i want at any given point user should not be allowed to confirm qtymore than Delivered qty of order

madlercm
Active Contributor
0 Kudos

Hi,

There's no standard provision for that. You could change the process in such a way that you do confirmation with automatic GR; this way both are aligned.

Former Member
0 Kudos

Thanks for reply ,But in my scenerio Goods receipts are made first because production qty are only known after weighing and confiamation is processed after that .

scm_09
Contributor
0 Kudos

when you do GR, to what quantity are you doing GR for?

dont you weigh it before you do GR?

Former Member
0 Kudos

Yes ,weight is done before GRR and confirmation done is second step ,I cant do auto GRR because i am using A BDC to do GRR for more than one batch no against a production order .