on 05-01-2014 4:55 AM
hi sap experte.
we want to reverse inseption lots.
i search and found the program attached to the 175842sap note and implemented it.
but when i run and insert inseption lot , the prodram show this message :
"good movements not possible in mvmt type 322"
i search and find this answer :
to "activate" an existing SAP user exit (SAP function EXIT_SAPMQEVA_008, Include ZXQEVU10, Include LXQEVF10). Activating this function causes a new button (Reset Usage Decision) to appear on the toolbar of the QA12 transaction. This means everyone who has authorization to perform QA12 activities also has the ability to reset the usage decision on an inspection lot.
i do this and copy the include LXQEVF10 to ZXQEVU10 and active this include, but dont have any reset button on qa12 again!
also i dont have qm68 transaction in my system,what can i do to reverse inseption lots?
thanks for your helps.
Dear Mahdieh,
There are plenty of posts on this topic, But its good that you have tried and searched for answers.
Ok, There are two completely different scenarios and many users always get confused.
1. Reversing Stock posting - Note 175842
2. Cancel Usage Decision - EXIT_SAPMQEVA_008
There isn't any term like reversing inspection lots, what you can do is; Either Option 1 and 2, or Cancel Inspection lot. And Do not get confused between Reversing Stock posting and Cancelling Usage Decision.
Now you are facing problems in Both options 1 &2.
To make 322 work, you have to allow Transaction QA11, QA12 for movement type 322 in Transaction OMJJ.
And to Make EXIT work you have to check in " INCLUDE ZXQEVU10" you have below code and it is Activated. (Copied from LXQEVF10).
CALL FUNCTION 'QAST_PROCESS_ACTIVITY'
EXPORTING
* I_DIALOG = 'X'
I_OBJNR = I_QALS-OBJNR
I_VORGANG = 'QM68'
EXCEPTIONS
NOT_ALLOWED = 1
ACTIVITY_NOT_ALLOWED = 2
OTHERS = 3.
E_EXIT_ACTIVE = 'X'.
Amol.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mahdieh,
You should Execute OMJJ and explore what you can do with it, For instance you have to look for Allowed transactions for Movement type 322 and make QA11, QA12 allowed for the same.
Forget about QM68, you do not need to execute it, consult with your ABAPer and show him this thread, he may do the exit part for you.
Once it is done, "Cancel Usage Decision" button will be available in QA12.
Amol.
Hi Mahdieh,
As you have allowed QA11 and QA12 for 322, you will be able to "Reverse Stock Posting" .
This answers half of your question.
Now, for user exit Can you please share screenshot of code you have pasted in ZXQEVU10!
If possible, share step wise screenshots for what you have done to implement this User Exit.
Amol.
hi.
i dont know why,but i cant upload any image.
but i do this step by step :
1. i find EXIT_SAPMQEVA_008 :
FUNCTION EXIT_SAPMQEVA_008.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_QALS) LIKE QALS STRUCTURE QALS
*" VALUE(I_QAVE) LIKE QAVE STRUCTURE QAVE
*" VALUE(I_RQEVA) LIKE RQEVA STRUCTURE RQEVA
*" EXPORTING
*" VALUE(E_EXIT_ACTIVE) LIKE QM00-QKZ
*" TABLES
*" T_CHARACTERISTIC_RESULTS STRUCTURE QAMKR
*"----------------------------------------------------------------------
INCLUDE ZXQEVU10.
ENDFUNCTION.
2.i copy this code to ZXQEVU10 :
***INCLUDE LXQEVF10.
*-- Example: Reset the Usage decision
*-- Please add your own authority requirements here or
*-- use the authority check within the general status management
*-- by adding a user status profile
*-- Reset Status Usage Decision by using business transaction QM68.
CALL FUNCTION 'QAST_PROCESS_ACTIVITY'
EXPORTING
* I_DIALOG = 'X'
I_OBJNR = I_QALS-OBJNR
I_VORGANG = 'QM68'
EXCEPTIONS
NOT_ALLOWED = 1
ACTIVITY_NOT_ALLOWED = 2
OTHERS = 3.
E_EXIT_ACTIVE = 'X'.
and active it.
Please consider the below options.
175842 oss note : to reverse UD (only stock movements)
QEVA0008 - This user exit just reverse the UD status in QA12.
Regards,
Mahee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check in T.Code OMJJ for movement type 322.
Check the Allowed Transactions. If transaction is not maintain in there. Please maintain it.
Sandip
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.