on 11-01-2013 6:34 PM
Dear All
We have requirement that all the materials should undergo quality inspection before moving to unrestricted stock.
Also the requirement is that invoice should be posted only once quality inspection is cleared.
As system allows to post vendor invoice even when the stock is in quality stock type we are trying to fulfill the requirement through GR Blocked Stock.
Movement Type 103 & 105 will be used to post GRN.
But then there is no quality stock or any notification for quality check.
Kindly let me know for any better solution to fulfill the requirement for Quality check.
Regards
Vikas
Moderator message: Basic frequently asked question - Please search forum for answers and read the docu in help.sap.com
See as well our rules of engagement: http://scn.sap.com/docs/DOC-19331
A good way to search the forum is with google. See this blog with details for a good search
This blog describes how to use the SCN search: http://scn.sap.com/community/about/blog/2012/12/04/how-to-use-scn-search
Thread locked
Message was edited by: Jürgen L
Yes, there is no such control in Standard SAP which will restricts MIRO posting if Inpsection lot is rejected or Usage decission is not made for the Inspection lot.
You must put custom controls to restrict user for MIRO postings. User exit EXIT_SAPLMRMP_010 or BADI INVOICE_UPDATE can be used for the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same requirement we done in our client
Go to SMOD enter enhancement " LMR1M001 " click on display
click on components Functional module " EXIT_SAPLMRMP_010 " . double click on this
Include ZXM08U16 , double click on this
write program like below
DATA: w_prueflos TYPE qamb-prueflos,
w_lmenge TYPE qals-lmenge01.
DATA: itab LIKE qals OCCURS 0 WITH HEADER LINE.
LOOP AT e_tdrseg WHERE selkz EQ 'X'.
* Checking whether the document require Inspection
CLEAR: w_prueflos.
SELECT SINGLE prueflos
INTO w_prueflos
FROM qamb
WHERE mblnr = e_tdrseg-lfbnr
AND zeile = e_tdrseg-lfpos.
IF sy-subrc EQ 0.
CLEAR: itab[], itab.
SELECT SINGLE * INTO CORRESPONDING FIELDS OF itab
FROM qals
WHERE prueflos = w_prueflos
AND stat35 = 'X'.
IF sy-subrc EQ 0.
READ TABLE itab INDEX 1.
CLEAR: w_lmenge.
* Sum of quantity (Excludes Block stock)
w_lmenge = itab-lmenge01.
IF e_tdrseg-menge GT w_lmenge.
* MESSAGE 'Blocked due to Quality reason' type 'E'." WITH w_lmenge e_tdrseg-lfbnr. "Commented on 08.08.2012
"requested By Syam - SAP MM
ENDIF.
ELSE.
"MESSAGE ID 'ZMM' TYPE 'E' NUMBER '005' WITH e_tdrseg-lfbnr.
MESSAGE 'Inspection lot not cleared' type 'E'." WITH e_tdrseg-lfbnr.
ENDIF.
ENDIF.
ENDLOOP.
If you not understand this coding please call to ABAPer inform, i am sure 100 % it will work for requirement.
If quality inspection not cleared then the error will get when you are doing MIRO
Inspection lot not cleared .
Hope it is help full to you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope you already know how to make mandatory for Quality all material through material master, by maintaining quality views and made quality inspection setup (for movements 101 & leave about 103, 105).
Now coming to MIRO cannot be posted without quality clearance, please check LMR1M001. Try this link which clears: http://scn.sap.com/thread/3267059.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.