cancel
Showing results for 
Search instead for 
Did you mean: 

QM related to MIRO

Former Member
0 Kudos

please help me ....

in the Make to order industry.

Let us assume i have Pur order No for 10 qty.

then i done MIGO for all the Item and Qty. 10.

(for this material QM is activated and Qm procu also activated and QM control key 0007 is assigned to the material master.)

after Doing the MIGO the stock is laying in th Quality.

Mean while Our FI personnel done MIRO for the same.

but after conpletion of the result recording i come to know that there is a fuilt in the material

so i am planning to post the material back to the Vendor.

(Return Delivery) through UD Stock posting Screen.

But the system not allowing to do so.

Because MIRO is already done..

Please suggest me How to block the FI personnel not to do MIRO untill Quality clearence .

thanx in advace.

Thanks & Regard's

Pathi,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanx

Former Member
0 Kudos

Dear srinivas,

thanking you for Giving me your feed back.

But is it possible to block the FI/MM personnel,

Not to DO MIRO.

thanks

former_member187991
Active Contributor
0 Kudos

hi

if you maintain the control key for blocking then it will not block the entering of invoice ,system will block for automatic payment with blocking reason as quality ,hence you have to release the invoice for payment

regards

thyagarajan

dheeraj_vaishampayan
Active Contributor
0 Kudos

Hi,

One possible way to block MIRO before UD posting is done is thru an enhancement

LMR1M001

Here you need to post following code to block MIRO in include:ZXM08U16

this code will cause an error message before UD and will allow MIRO for only qty posted to Unrestricted stock

*******************************

&----


*& Include ZXM08U16

&----


  • Declaration of variables

DATA: w_prueflos TYPE qamb-prueflos,

w_lmenge TYPE qals-lmenge01.

  • Declaration of Internal Tables

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 ID 'ZMM' TYPE 'E' NUMBER '004' WITH w_lmenge e_tdrseg-lfbnr.

ENDIF.

ELSE.

MESSAGE ID 'ZMM' TYPE 'E' NUMBER '005' WITH e_tdrseg-lfbnr.

ENDIF.

ENDIF.

ENDLOOP.

**********************************

Hope this helps

Regards

Dheeraj...

Former Member
0 Kudos

Thnax for your ans......

Is there any std Setting available.

So that we can Block the Fi/MM personnel Not To Do MIRO.

Thnax

p.kumar

Former Member
0 Kudos

Hi

You can maintain qm procurement key active in material master quality management view. Maintain QM control key (SAP Standard should be 0007 - Delivery release, Invoice block). Otherwise you can create your own key in SPRO --> Quality Management --> QM in Logistics --> QM in Procurement --> Define Control Keys).

This setting will prevent invoice verification, if material is in QI.

regards

Srinivas

0 Kudos

Dear Srinivas,

I have maintained qm procurement key active in material master QM view and QM control key 9001 is maintained for Block Invoice.

But still it is not preventing invoice verification, if material is in QI.

MIRO is still possible for a unapproved and rejected Item.

Kindly suggest how to rectify this error.

Regards

Sumedha

Former Member
0 Kudos

Hi Praveen,

Has this code worked out for you? I am not able to use this code.

Please help me

Thanks and Regds,

Raghu