cancel
Showing results for 
Search instead for 
Did you mean: 

Quality Stock in MM

vikas_sehra2
Participant
0 Kudos

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

http://scn.sap.com/community/support/blog/2012/04/16/getting-the-most-out-of-google-optimizing-your-...

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member192897
Active Contributor
0 Kudos

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.

former_member183424
Active Contributor
0 Kudos

Hi,

For GR, you can use this on MIGO.

And for invoice, you ca use EXIT_SAPLMRMP_010 .

Thanks

DEV

ravindra_devarapalli
Active Contributor
0 Kudos

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.


Former Member
0 Kudos

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,