Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
arushi_19
Discoverer
298

Co-Author: Heena Devgan
***REMOVED BY MODERATION***

Pre-requisite: In tcode OMJJ, add 'QM11' and 'QM12' in allowed transactions for movement type - 302.

Step1: Go to tcode CMOD and create a custom project. In Enhancement assignment, provide user-exit QEVA0008 and then activate the components.

arushi_19_0-1720262341607.png

Activate the project.

Step2: Enable include ZXQEVU10 (or create using SE38 with same name if it doesn't exist in the system) and add below code:

CALL FUNCTION 'QAST_PROCESS_ACTIVITY'
EXPORTING
I_OBJNR = I_QALS-OBJNR
I_VORGANG = 'QM68'
EXCEPTIONS
NOT_ALLOWED = 1
ACTIVITY_NOT_ALLOWED = 2
OTHERS = 3.

E_EXIT_ACTIVE = ABAP_TRUE.

After processing of this exit, standard SAP code would now set the status for this object to I0297.

Step3: Go to below tree and double click on customer function:

arushi_19_7-1720263426473.png

Double click on below entry:

arushi_19_8-1720263538488.png

Change subobject for function +FC1:

arushi_19_4-1720263274411.png

After assigning icon and text, go to QA12 for testing.

The icon would be visible:

arushi_19_9-1720263666988.png

Thanks for reading this post!

Happy learning 🙂

 

2 Comments
Sandra_Rossi
Active Contributor

Note that people might be interested by your blog post to add one custom button in QA12, not related to "Usage Decision Reset/Reversal"; note that QEVA0008 doesn't allow more than one custom button (only +FC1). The button also shows up in QA11 and QA13 (source: Issue with custom button on standard toolbar of QA... - SAP Community).

 

arushi_19
Discoverer
0 Kudos

Thanks Sandra!
That's absolutely correct.

Labels in this area