2008 Jun 27 6:07 PM
Hi Experts,
Can some one please tell what is the USER EXIT for the purchase Requisition - TCode ME51N.
Thanks in advance...
Victor
2008 Jun 27 6:14 PM
Hello Vamsi,
for your convenience and use..
To find a user exit for any given transaction in SAP, use the following tool/ peice of code. You'll to create a Z-prog(take help of an ABAPer) and paste and Activate the following code.
Run this program using F8 and given the t-code for which U need the user exits, this program will list down all the user exits available.
Plz find the peice of code in the foll. link:
http://www.sap-img.com/ab038.htm
<REMOVED BY MODERATOR>
Rgds,
Raghu.
Edited by: Alvaro Tejada Galindo on Jun 27, 2008 1:15 PM
2008 Jun 27 6:14 PM
Hello Vamsi,
for your convenience and use..
To find a user exit for any given transaction in SAP, use the following tool/ peice of code. You'll to create a Z-prog(take help of an ABAPer) and paste and Activate the following code.
Run this program using F8 and given the t-code for which U need the user exits, this program will list down all the user exits available.
Plz find the peice of code in the foll. link:
http://www.sap-img.com/ab038.htm
<REMOVED BY MODERATOR>
Rgds,
Raghu.
Edited by: Alvaro Tejada Galindo on Jun 27, 2008 1:15 PM
2008 Jun 27 6:18 PM
hi
weel i have searched for that but i didnt find any
also it is an Funtion-pool.
the following program will help u to find the user Exit for the Tcode
just copy nad past the program availavle at link
http://www.erpgenie.com/abap/code/abap26.htm
If required, take help of your developer to copy & run the program
<REMOVED BY MODERATOR>
Cheers
Snehi
Edited by: snehi chouhan on Jun 27, 2008 7:19 PM
Edited by: Alvaro Tejada Galindo on Jun 27, 2008 1:28 PM
2008 Jun 27 7:36 PM
2008 Jun 27 6:26 PM
Hi vamsi,
I think the exits are
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
And regarding USER EXITS check out the links which will help you a lot.
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://www.saptechnical.com/Tutorials/ExitsBADIs/Description/change.htm
check the above links...they are very good..
hope you will understand the concept very well..
Happy learning.
Regards
Narin Nandivada
Edited by: Narin Nandivada on Jun 27, 2008 10:58 PM
2008 Jun 27 6:33 PM
HOW TO FIND USEREXITS
Hello,
go through this
1) Option 1 : you don't know the name or dont have any info on user exit
************************************************************************************
run T-code : SPRO
SPRO -> Click SAP Reference IMG -> click in the relevant module eg: SD (sales and Distribution) ->System Modifications -> User exits
You can view documentation to understand the purpose of that user exit
It is not that always one can find the user exits under the name "System modifications" but with respect to a module definitely user exits can be found under that module in SPRO
2) Option 2 : You know the name of the user exit
************************************************************************************
Run Tcode : SMOD -> fill in the enhancement name-> click on attributes and then components or directly on components and view the include...if already a code is written in the include,then on double click of include you can see the code...if an existing code is not there and you double click on the include,SAP prompts for a request
3)Option3: You can use the custom code..which was contributed to SDN
*******************************************************************************************
Create a new report program -> copy the code -> activate -> run
on the p_tcode : give the name of the tcode for which you need to find the user exits and execute...a list of exits will be displayed...double click and follow the link
**********************************ABAP CODE :***********************************
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.
2008 Jun 27 7:33 PM
2008 Jun 27 6:39 PM
2008 Jun 27 7:34 PM
Thank u so much, let me try ...
Vamsi
Edited by: Vamsi Devata on Jun 27, 2008 8:34 PM
2008 Jun 28 5:29 AM
User Exit for me51n is MEREQ001
goto SMOD and try
regards
Prakash Varun