on 03-26-2011 6:27 PM
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.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.