MIRO VALIDATION SCENARIO FOR MATERIAL IN QUALITY OR BLOCKED STOCK 
Scenario Process Steps 

1. Creation of Purchase Order                                                      T.Code:ME21N 

2. Release of Purchase Order                                                       T.code:ME29N 

3. Goods Receipt against Purchase Order with movement type          T.code: MIGO 

4. Release from GR Blocked Stock with movement type 105             T.code: MIGO 

5. 103-105 movement type used instead of 101 movement type. Scenario tested for both 101 movement type and 103-105 movement type combination 

6. Results recording and Usage decision for the Inspection lot          T-Code: QA32 

7. Invoice Verification Process with following scenarios                      T-Code: MIRO 

a)      Stock is in Quality

b)      Stock is in Quality and unrestricted stock

c)      Stock is in Blocked stock and unrestricted stock

d)     Stock is in Blocked stock followed with Vendor return procedure

e)      Multiple line items stock with different material of same purchase order 

  
Scenario 1: Stock is in Quality, MIRO bill passing 

1. Record the Usage decision for the Inspection lot and do not make stock posting for the lot and stock remains in Quality.

Required Inspection Lot status:

UD – Usage Decision to be carried out

SPCO – Stock Posting Completed

Invoice Verification Process 

1. Now enter MIRO transaction, select the Invoice date and in the P.O reference tab enter the Purchase order number

2. Click on save button to post the details else click simulate tab and system throws the error message.

3. Click error message to see material no with P.O number and respective line item no.

Scenario Conclusion:

Without Quality Inspection system will not allow to process invoice verification process

 

Scenario 2: Partial stock is in Quality & Unrestricted stock, MIRO bill passing  

1. Record the Usage decision for the Inspection lot and make partial stock posting with material stock in both Quality and Unrestricted stock  

 Invoice Verification Process 

1. Now enter MIRO transaction, select the Invoice date and in the P.O reference tab enter the Purchase order number

2. Click on save button to post the details else click simulate tab and system throws the error message.

3. Click error message to see material no with P.O number and respective line item no.

Scenario Conclusion:  

System will not allow posting an invoice document even if partial quantity is in unrestricted stock.

 

Scenario 3: Partial stock is in Unrestricted & Partial stock is in Blocked stock, MIRO bill passing  

1. Record the Usage decision for the Inspection lot and make partial stock posting with material stock in unrestricted & blocked stock 

 Invoice Verification Process 

1. Now enter MIRO transaction, select the Invoice date and in the P.O reference tab enter the Purchase order number

2. Click on save button to post the details else click simulate tab and system throws the error message.

3. Click error message to see material no with P.O number and respective line item no.

Scenario Conclusion:  

System will not allow to post a invoice document until user will do vendor return even if partial quantity is in unrestricted & balance quantity in blocked stock.

 

 Scenario 4: Blocked Stock- Vendor Return, MIRO Bill Passing 

1. Continuing with the scenario 3, through MIGO transaction make a vendor return for the blocked stock material with ref to material document via 122 movement type

 Invoice Verification Process 

1. Now enter MIRO transaction, select the Invoice date and in the P.O reference tab enter the Purchase order number

2. Click on save button to post the details else click simulate tab and system shows no messages.

Scenario Conclusion:  

After return delivery of blocked stock, for the unrestricted use stock material user can pass the bill

 

Scenario 5: Purchase order with multiple line items, MIRO Bill passing 

1. Record the Usage decision for the two Inspection lot of different material with same purchase order and make partial stock posting with material stock in unrestricted & blocked stock 

 Invoice Verification Process 

1. Now enter MIRO transaction, select the Invoice date and in the P.O reference tab enter the Purchase order number, now system shows two line items with two different materials of same purchase order

2. Click on save button to post the details else click simulate tab and system throws the error message.

3. Click error message to see material no with P.O number and respective line item no.

Scenario Conclusion:  

The above process is holds good in case of multiple line items also.

  
  
  
 How MIRO Validation program works? 

 

Use BADI “Invoice_Update” with following program logic in ref to the Functional specification

 

1.      On MIRO processing for P.O in ref to GR, check material for Quality stock. If stock is in Quality, then Invoice processing should not be allowed else processing should be allowed.

 

Functional Specification:

1.      Read MSEG table for field name BWART & LFBNR and check for QALS table for MBLNR

2.      Read QALS table for field name OBJNR and with input of field OBJNR read JEST table for fieldname STAT “I0203”.

 ABAP programming should read data from above tables and field name in ref to the P.O number and material documents and should have above field checks on performing MIRO transaction.

 

 Blog Cont…

In continuation with my above Blog “MIRO Validation Scenario for Material in Quality or Blocked Stock”  Iam drafting this continuation blog on Process manual guide for better undertstanding of the MIRO validation concepts.

Check the above blog url for the pdf document which explains the following scenario

1. Stock in Quality, MIRO bill passing

2. Stock in Quality and unrestricted stock, MIRO bill passing

3. Stock is in Blocked stock and unrestricted stock, MIRO bill passing

4. Stock in Blocked stock followed with Vendor return procedure, MIRO bill passing

5. Mutiple line items stock with different material of same purchase order, MIRO bill passing

 

Conclusion: 

1. MIRO Verification log also provides information on which P.O number / Item no / material no stock lies in Quality/ Block stock.

2. The above combination of MIRO verification log helps us to track exactly which material stock lies in Quality / Blocked stock.

3. The MIRO validation program must be validated for Inspection lot status “SPRQ” i.e lot with status “REL CALC SPRQ”. This status check controls for stock posting material and MIRO program doesn’t works for non-stock posting material like material posted directly to Cost center for consumption i.e Inspection lot with status “REL CALC”

4. The MIRO validation scenario has been tested & validated for 103/105 movement with QM activated for GR Inspection.

5. This concepts also holds good for 101 movemnt type for all the stock relevant Inspection stock.

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !