cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice verification block

Former Member
0 Kudos

Gurus,

1.I should not be able to do the IV without clearing the material in quality inspection,how to set this.

2..I should not be able to do the vendor payment even though i have done the IV & cleared the material in quality inspection.

What setting should be done?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you want GR to be blocked unless QQ cleras the material i.e. MIRO should be done only when Inspection lot qty is posted to Unrestricted use stock, then i am afraid it can be done only with an user exit

If you need i will send you the code also, just activate this with help of ur abaper, it will work for sure ( only prerequiste being creation of inspection lot for GR)

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.

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

Vishal Jonnalwar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

1.In QM view maintain QM proc Tick

2.mainatin control key which contains "Invoice block "

3.maitain QM view will be better(dpeneding upon Control key)

This will not allow MIRO to be done if

1.UD is not taken

2.mayetial is in QI

3.marial UD is Rejected

I hope this will help

Regards

Sujit

Former Member
0 Kudos

HI,

I have already selected qm proc active & 0007,still the system is allowing to do the MIRO.I have done only MIGO

Former Member
0 Kudos

Hi

Then use userexit in MIRO :LMR1M001 User exits in Logistics Invoice Verification

or

use sap note:162918

Regards

Sujit