on 01-05-2010 6:52 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
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.