03-14-2013 5:04 AM
Hi,
My requirement states that for stock related inspection lot( 01 and 04),every time a usage decision is being done , a stock
posting is needed,an inspection lot can be partially accepted or partially rejected in this case partial quantity will move to
unrestricted stock and remaining quantity to blocked stock .
I need to put some check on the basis of usage decision(UD) by calculating the quantity that has been input in the
inspection lot stock tab in QA32 against the inspection lot quantity.
I have tried several exits for this transaction but nothing is getting triggered on SAVE CLICK.
I have tried an IMPLICIT ENHANCEMENT in the program MQEVAF12 at the time of SAVE here i am getting
LOSMENGE(Total lot quantity) in QALS but the other values like LMENGE01(UNRESTRICTED STOCK) AND LMENGE04(GR BLOCKED STOCK)
is showing 0 which i need for calculation .
i am getting UD code(QVCODE) too at this point in QAVE ..
I need some exit or badi or any type of enhancement to be triggered at SAVE CLICK with all the above value so that i can put a check .
it's urgent .
Thanks in advance .
03-14-2013 6:26 AM
1. Open Function Module (SE37) SXV_GET_CLIF_BY_NAME
2. Put a break point in Call Function
Execute QA32 and in report, Click on SAVE. then program stops at the breakpoint. Find the BADI name used..
Add ur code inside the BADI.
03-15-2013 1:04 PM
None of the BADI or exit contains the value after u press the save .
I have implemented a different solution with the help of implcit enhancement IN the main program
SAPMQEVA in the screen 0102 in the PAI section inside the module MENGENPRUEFUNGEN
Anyways thanks for ur support