cancel
Showing results for 
Search instead for 
Did you mean: 

miro for unrestricted use qty only

Former Member
0 Kudos

Dear SAP Friends,

We have QM module.

All material have QM Activation.

When material received from vendor it gose to QM after MIGO.

While doing UD after Result recording i post 10 qty for scrap & 90 qty to unresrticted use for a perticular st.loc.out of 100 qty.

But while doing MIRO it shows payable for all 100 qty insted of 90 qty which i place in Unres.st.loc.

How can I get that ?i.e.account person should pay for only 90 qty.

Where i can do lock?

Please reply.

Regards,

Chandra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi chandra

Vendor should not get payments for rejected material can be acheive by following way..

1.Activate procurement tick

2.Defeine control key as Invoice Block(This is done by customization QCC0>Qm logistic>QM procurement-->define control key)

3.This will only alow MIRO for those items for which UD has taken.If lot is rejected or Not inspected MIRO no possible)

4.If MIRO qty exceeds accpetd Qty then Error of Type "Q" will be generated.

Regards

Sujit S Gujar

Former Member
0 Kudos

Sujit sir,

From where I can activate procurment tick?

Also in control key 0007 there is tick on Released required,block invoice,message mode -worning,GR for rejection-Good receipt not allowed these are maintained.

Can it required new Key to create?

if yes then where it to be assign with what setting?

Please reply.

I am very much new for this

Chandra

Former Member
0 Kudos

Hi

activate control key in QM view of material mater of that material now for this do following setting

1 QCC0->QM procure>define control key--->here if you have selected 007 ("there is tick on Released required,block invoice,message mode -worning,GR for rejection-Good receipt not allowed these are maintained.") it will work as invoice block(Block in MIRO) as well as delevery relase( Q info record is mandetory)

2.But if you only want to create for Invoice block then

Go to new entry

QM in procurement -->tick only Invoice bock

Message-->Defect

GR/Source-->GR not allowed and

Gr control-->create new inspec.

Now in material master(MM01)->QM view>tick on Procurement active-> control key->"only invoice block"

try this

Rever back for more querries

Sujit

Former Member
0 Kudos

Sujit sir,

It allow me to do complete MIRO Transaction but at the last when i post the document & save it shows the message doc.posted (Blocked for payment).

ok.

After clearing it from quality out of 100 if 20 are rejected then also it shows for payable for 100 qty.

How i can use that enhancement,which make able the system to payable only for ok qty.

As here no ABAPer available so please guide how it works stepwise.

PLEASE REPLY.

Regards,

Chadra

Former Member
0 Kudos

Sir,

Can i put the error message at the time of MIRO,if material is in quality?

Please reply.

Regards,

Chandra

Former Member
0 Kudos

Hi

if you want to put Ennhancement during MIRO then it possible through block MIRO before UD posting is LMR1M001

check this.....but remember this works only in MIRO tcode.

Regards

Sujit

Former Member
0 Kudos

Sujit sir,

i got what i want through that Enhancement,

But,

Now the FI person find that there is balacnes shows for doing MIRO.i.e.Pending MIRO for Rejected qty.in MIRO Transaction for that P.O.

How can I remove that qty from MIRO Screen?

Due to that there will not be any balace show for MIRO.

If I going to do MIRO it gives error message that these are the Rjected qty.

Sir,

please reply.

Regards,

Chandra.

Former Member
0 Kudos

Hi chandra shekhar

When you have GR of 100 Qty

You accept:(321 mvt type) for 90 Qty

But rest of 10 Qty you reject (say 122 Mvt)

In that case from GR account automatically a FI document is created in background which will reverse quantity 10 from GR.so that only 90 qty appear in MIRO. I think this is not happening in your case.

ckeck how FI perople can help you for this...

revert back

Sujit S Gujar

Former Member
0 Kudos

Sir,

In my case process flow as below

After MIGO ,QM Lot is generate eg.100 qty.

In QM 80 (ok) qty kept in sf01(321).

20 (Not ok) send to scraping instead of returning to vendor(553).

In that case it shows me the balance qty.

As per your latest answer if I put that in return delivery then it works as per the requirement.

Now what is the best way to handle this,as it is not necessary every time we have to return to vendor.

please reply.

Chandra

Former Member
0 Kudos

Hi

When you are ding RD to vendor it is 122 Mvt and not 541-->form UD screen

Now Block stock is 350 Mvt means that you are using the vendor's material.(RD not Done)

As RD not done Miro has to show pending Qty which is in Block Stock.

So your system behaves normally.

Why you don't want to do payment to vendor for Block Stock Qty...As per Vendor You have accpeted it

so he must get payement

or

Do Reject(122 mvt)

That is why code is

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

&----


*& 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

Sujit

Former Member
0 Kudos

Dear All,

Thanks for your help.

Regards,

Chandra

Answers (2)

Answers (2)

former_member186399
Active Contributor
0 Kudos

Dear Chandra,

The QM procurement key setting will block the MIRO till you give the UD code. But it will not depend on the posting of the Stock.

So you have got 2 option for you

1) Give the UD for the lot only after all stock posting is complete. But partial MIRO posting cannot be done in this case.

2) make use of some user exit for the same

please find a thread which will give you all the information regarding the same

Link: []

Link: []

Regards

Gajesh

Former Member
0 Kudos

Hi,

To block invoice mark the tick in the control key of Qm in procurement,

as well as you have to activate the user exit available in the programme of MIRO

in that you can give condition that do payment for the quantity posted in unrestricted only

Thanks

Vinay

Former Member
0 Kudos

Joshi Sir,

Thanks for your reply.

Can you please brief the steps?How to do that?

Please reply.

Regards,

Chandra