|
Which user exit or BADI should
I use to restrict MIRO for Rejected / QI stock?
Requirement: Presently MIRO is possible immediately after GRN for any item, while we would like to make restriction; till material is under quality test or it got rejected after quality test, MIRO will not be possible. User Exit for MIRO Tr.code Following requirements are checked with this user exit. a) Checks business place & section code; if they are empty then give error message. b) If GRN is reversed, Invoice verification is not allowed. c) For quality activated material, Quality result & user decision is not recorded & user is trying to book invoice verification through MIRO then error message will be issued. d) If Inspection lot is rejected in QM, then the system will issue error message when user books the invoice verification against GRN.
*&---------------------------------------------------------------------*
tables : qave, mseg. DATA: H_RBWT1 TYPE MRM_RBWT OCCURS 0 WITH HEADER LINE,
******** checking if business place is empty then give
error message
****************************
DESCRIBE TABLE e_tdrseg LINES lin. LOOP AT e_tdrseg WHERE selkz EQ 'X' AND menge NE 0.
* IF bsart NE 'ZIMP'.
SELECT SINGLE * FROM qave WHERE prueflos EQ prueflos.
MESSAGE E016(MD) WITH sy-tabix.
ENDIF.
Message Class : MD 014 GRN is reversed - Invoice Verification Not Allowed
|
|
Read Also
SAP QM Reference Books:
Back to:
Return to :-
(c) www.gotothings.com All material on this site is Copyright.
|