To determine the user exit name from teh transaction code
hi folks,
when i change teh partner number of ship to party and if i press teh SAVE button a user exit is getting triggered , i want to find out teh name of that user exit thats getting triggered as soon as i press that SAVE button .........
thanks in advance,
rajeev
hi rajeev,
try this link.
http://www.erpgenie.com/abap/code/abap26.htm
Regards...
Arun.
Reward points if useful.
Similar Messages
-
To determine the user exit name from teh transaction code (va02)
hi folks,
when i change teh partner number of ship to party and if i press teh SAVE button a user exit is getting triggered , i want to find out teh name of that user exit thats getting triggered as soon as i press that SAVE button .........the transaction code is va02
thanks in advance,
rajeevhi rajeev,
try this link.
http://www.erpgenie.com/abap/code/abap26.htm
Regards...
Arun.
Reward points if useful. -
Finding the user-exits of a SAP transaction code
Hi All,
Can any one tell me how to find the user exits related to particular transaction code?
Regards,
PremDear PremKumar,
*Please Search SDN Before posting any thread the question you have asked is already available since you are new to SDN and for your reference iam pasting the code copy paste the same code and execute and give the TCODE then it will list out all the exits.
*REPORT ZUSEREXIT.
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Can you closse the thread if your problem got fixed !!!!
Cheers
fareed -
To find the User Exits for a particular Transaction.
hi,
I want to find the number of User Exits for a The Transaction MM01 or MM02,
I serched in the forums but could not find satisfactory ans,
I tried with:
T.Code-> System>Status->Prog Name>SE38>find Call Customer-Exit.
But its not helping me,
Please help me.
Thanks and Regards
Suraj S Nair.hi ,
if you are new to user exist use --> follw the below methos to find the user exit for a particular transaction or t-code
create one custom pgm in se38 and execute >selection screenenter t-code and execute it will return all the user exists for a specific transaction..
Finding the user-exits of a SAP transaction code
* Finding the user-exits of a SAP transaction code
* Enter the transaction code in which you are looking for the user-exit
* and it will list you the list of user-exits in the transaction code.
* Also a drill down is possible which will help you to branch to SMOD.
* Written by : SAP Basis, ABAP Programming and Other IMG Stuff
* http://www.sap-img.com
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
Regards,
Prabhudas -
How to code the user exit userexit_number_range from mv45afzz
Hi, i need to modify the user exit userexit_number_range from mv45afzz, this is an standard include so when i try to modify i get the request for the my access code.
Can someone explain me what is the procedure to modify an user exit.
Do i need to request an access code to modify this user exit.
am i complete lost in the proces of coding user exits?
i have already check many of the message posted.
thank for advanceHi
MV45AFZZ is a customer user exit to add customer functionality....so when u change first time..you need to provide access key...for the object...
Take a Print screen of the screen displayed and send it to basis guy..who can provide you with access key for that object..then u can enter that value and modify the user-exit...
To add your code into this user-exit...u need to place the cursor in the routine u want to change..and press Insert button on the Tool bar... which will open up space for u to enter the code...
Thanks
Balu -
User exit or BADI in transaction code WAK2
Hi All,
I have a requirement to implement a user exit or badi on transaction code WAK2 or WAK1. On click of SAVE button after entring sales price in price planning tab . I need user exit or badi's after clicking save. I got three user exits 1. call customer-function '001' 2. Call customer-function '002' 3. Form badi_matnr_check_init 4. call method g_badi_matnr_input_002 but none of them deel with sales price field.
Thanks and Regards,
AsifHi friend,
Try this ampliation at CMOD:
WCOUP001
Try this BADI:
RDM_PROMOTION_WAK1
Regards,
Welinton Rocha -
How to determine the Current Domain name from inside an Mbean / Java Prog
We have registered an Application Defined MBean. The mbean has several APIs. Now we want to determine the currrent domain using some java api inside this Mbean. Similarly we have deployed a Webapp/Service in the Weblogic domain. And inside this app we need to know the current Domain. Is there any java api that will give this runtime information.
Note: We are the MBean providers not clients who can connect to the WLS (using user/passwd) and get the domain MBean and determine the domain.
Fusion ApplcoreNot sure if this will address exactly what you are looking to do, but I use this technique all the time to access runtime JMX information from within a Weblogic deployed application without having to pass authentication credentials. You are limited, however, to what you can access via the RuntimeServiceMBean. The example class below shows how to retrieve the domain name and managed server name from within a Weblogic deployed application (System.out calls only included for simplicity in this example):
package com.yourcompany.jmx;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.naming.InitialContext;
public class JMXWrapper {
private static JMXWrapper instance = new JMXWrapper();
private String domainName;
private String managedServerName;
private JMXWrapper() {
public static JMXWrapper getInstance() {
return instance;
public String getDomainName() {
if (domainName == null) {
try {
MBeanServer server = getMBeanServer();
ObjectName domainMBean = (ObjectName) server.getAttribute(getRuntimeService(), "DomainConfiguration");
domainName = (String) server.getAttribute(domainMBean, "Name");
} catch (Exception ex) {
System.out.println("Caught Exception: " + ex);
ex.printStackTrace();
return domainName;
public String getManagedServerName() {
if (managedServerName == null) {
try {
managedServerName = (String) getMBeanServer().getAttribute(getRuntimeService(), "ServerName");
} catch (Exception ex) {
System.out.println("Caught Exception: " + ex);
ex.printStackTrace();
return managedServerName;
private MBeanServer getMBeanServer() {
MBeanServer retval = null;
InitialContext ctx = null;
try {
//fetch the RuntimeServerMBean using the
//MBeanServer interface
ctx = new InitialContext();
retval = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
} catch (Exception ex) {
System.out.println("Caught Exception: " + ex);
ex.printStackTrace();
} finally {
if (ctx != null) {
try {
ctx.close();
} catch (Exception dontCare) {
return retval;
private ObjectName getRuntimeService() {
ObjectName retval = null;
try {
retval = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
} catch (Exception ex) {
System.out.println("Caught Exception: " + ex);
ex.printStackTrace();
return retval;
}I then created a simply test JSP to call the JMXWrapper singleton and display retrieved values:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="com.yourcompany.jmx.JMXWrapper"%>
<%
JMXWrapper jmx = JMXWrapper.getInstance();
String domainName = jmx.getDomainName();
String managedServerName = jmx.getManagedServerName();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JMX Wrapper Test</title>
</head>
<body>
<h2>Domain Name: <%= domainName %></h2>
<h2>Managed Server Name: <%= managedServerName %></h2>
</body>
</html> -
User exit or badi for transaction code CORS
Hi All
I am looking for user exit or badi to update item text while executing transcation code CORS.
Please Advice
Thank You
Ravindra SuvarnaHi
Check these enhancements and exits
CONFPS05 PS confirmation: Customer specific enhancements when saving
EXIT_SAPLCORF_010 PS Confirmation: Customer-Specific Enhancements when Saving
CONF0001 Enhancements in order confirmation
EXIT_SAPLCORU_001 Order Confirmation: Deactivation of Functions -
How to determine whose user is using a specific transaction code?
Hi to all!
I have a simple problem.
Stated at the title. For example, I want to know whose User makes OB52 locked. I am actually coding it in one of my report.
Is there a table wherein I can check whose User uses T-code OB52?
I have tried using BDC but the messages it gave me does not have the information that I need.
Anybody here can help me?
Thanks.Hi
I've seen the abap code run by trx SM12 and it seems the main function module is ENQUEUE_READ: this returns the active lock.
Try to test that fm by SM37:
GNAME = RSTABLE
GARG = T001B*
GUNAME = *
Max -
Determine which validation step called the user exit, possible?
Hello all,
We have a a validation with different steps that use the same user exit in their respective check.
My functional analyst asked me if there is a way to programmatically determine in the user exit which step is executing the user exit.
So I am asking the same question here.
As an example:
Validation FI100 has step 001, 002, and 003.
Each of these steps use the user exit U100 from module pool ZGGBR001 in their check.
I haven't found a way in the code of U100 to determine which step called U100.
Does anyone know if this can be done?
I have used the following technique to get a variable from the program's call stack.
data: var_name(30) type c value '(Z_CALLING)VARIABLE' .
field-symbols: <fs> type any.
assign (var_name) to <fs>.
write: / 'Variable from Z_CALLING', <fs>.
But I'm not sure how this might work with validation steps/user exits.
Thanks
BruceVinod,
I did some debugging after I posted my question. I came to the same solution, use FM 'SYSTEM_CALLSTACK'.
VALCHCK_2FI100##001
loop at i_callstack into w_callstack
where EVENTNAME+0(9) = 'VALCHCK_2'.
FI110 is the validation
001 is the step
Thomas,
Thanks for the caveats.
Bruce -
Procedure to find the exit name from the include program
hai
i know the name of the include program
through this i want to know the user exit name
what is procedure?
please give me the details
ThanksHi,
Enter include name in se38 ..check where used option for this include.Using backward approach you can get to the exit.
Thanks.
Mark points if helpful. -
What are the different methods to find the user-exit for any requirement?
Hi Everybody,
What are the different methods to follow to find the user-exit for any requirement?
Thanks & Regards,
Nagaraju MaddiThe following program search all the user exits involved with a T-code:
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
* Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
* Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
* Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
* Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN. -
In howmany ways we can find the User-exits
In howmany ways we can find the User-exits?
Hi,
Copy this code,execute and run this program.Now mention your tcode and it will give you the list of user-exits present in a Tcode.
*& Report zuserexit
*& This program helps find Exits for any given transaction
*& This code is originally adopted from http://www.sap-img.com
report zuserexit no standard page heading.
*TABLES
tables :
tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
tstct.
*INTERNAL TABLES AND STRUCTURES
Internal table to hold Repository Objects
data : jtab like tadir occurs 0 with header line.
*Global variables
data : field1(30).
data : v_devclass like tadir-devclass.
*SELECTION-SCREEN
parameters : p_tcode like tstc-tcode obligatory.
*START-OF-SELECTION
START-OF-SELECTION.
SELECT construct to get data for a given tcode
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
SELECT construct to get program names
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
Moving the dev. class to v_devclass if program is of type 1
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
If Program type = Function Group
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
SELECT construct to get Attributes for Function Modules
select single * from enlfdir where funcname = tfdir-funcname.
SELECT construct to get FM names
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
Moving the dev. class to v_devclass if program is of type F
move : tadir-devclass to v_devclass.
endif.
endif.
SELECT construct to get SAP enhancements for the dev. class
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
SELECT construct to get t code texts
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
REPORT OUTPUT
format color col_positive intensified off.
Displaying t-code name & text
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
List headings
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
SELECT construct to get SAP Enhancements - Short Texts
loop at jtab.
select single * from modsapt where sprsl = sy-langu
and name = jtab-obj_name.
format color col_normal intensified off.
Exit names & texts
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
No of Exits
write:/ 'No of Exits:' ,
sy-tfill.
else.
format color col_negative intensified on.
If no exits found
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
If tcode doesn't exist
write:/(95) 'Transaction Code Does Not Exist'.
endif.
Call txn SMOD with selected Exit
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Reward if helpful.
Regards,
Harini.S -
The user exit on the sap post the account document
Dear all.
I use the t-code mb01 or migo to receipt goods for purchase order.When I execute post or save,the sap generate the material document and the account document.The account documents have two item with account 12110000 and account 12010000.And I know this two account was configure in the t-code omwb.
Now my company have a new requirement:
When the sap generate the account documents,I need to write some code to do some judgement and change the account 12110000 to account 35510000 or other account.The logic of the code was complex and it's impossible to do in sap standard configure.So I want to find the user exit on the sap post the account document.In the user exit I would write some code to do some judgement and change the account 12110000 to account 35510000 or other account.
But I can't found the user exit.So I need the experts to give me some reference.
Regard
YodaHi,
You may use ZXF48U01 of EXIT_SAPLF048_001 of enhancement F180A001 for the same.
Please note that control comes here for no of transactions hence you need to specifically check for sy-tcode, for which your 'exit' logic needs o be executed.
I hope this helps,
Regards
Raju Chitale -
User-Exit/BADI/BTE for transaction /COCKPIT/1
Hi everybody,
I need to send and Idoc when a MM invoice enters the system from transaction /COCKPIT/1.
I already made a function to send the idoc but now I'm having trouble to find a place to fire it.
Any help would be very much appreciated.
Thanks.
Fábio GalvãHi ,
I dont know if replying on such an old link will help.
Did you find the user exit /Badi for this transaction?
Regards,
Kushmeen
Maybe you are looking for
-
I just bought a new computer and set it up. Downloaded itunes again and logged in; however, all of my old content is not there. I just created a new playlist and want to sinq it to my phone but get a message saying it will delete all of my old song
-
Getting error when view - Requested data type does not match with existing
I have the siebel web service In the BI publisher as mentioned in the 'Siebel_BI_Publisher_Integration_Concepts.pdf', I have imported the siebel web service BI can recognize the 'Web service' and methods. I have created the paramters. The data type i
-
Keeps scrolling, never printing... any ideas?
Not sure when this happened, but I am now no longer able to "print to pdf" from my applications (Word, Excel, notepad, etc). It looks like it kicks off successfully: files begin to show up as a document under the printer "Adobe PDF", but status remai
-
IM - Appropriation Request approval authorization based on Budget Value
Hi all, Can someone help me confirm the following? I'm implementing Investment Management module and use appropriation request (AR) to approve budgets where AR statuses can be approved only by certain authorization groups, and we do not use Workflow.
-
Why I cannot change a property using dgmgrl?
I put log_archive_trace=8191 for tracing purpose while ago. Now I try to change it back , but with error: DGMGRL> edit database 'remeprd' set property 'LogArchiveTrace'='0'; Error: ORA-16587: ambiguous object specified to Data Guard broker Failed. Ho