Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debug for User Exit

Former Member
0 Likes
2,105

Hi,

How to Debug User Exits ,Pls Explain step by step?

Thanks,

6 REPLIES 6
Read only

Former Member
0 Likes
950

Hi

U need to insert a break-point in the exit in order to step there the program and then go on with debug

Max

Read only

Former Member
0 Likes
950

just put a break point in the "Z" function module and make sure everything is activated

Read only

Sm1tje
Active Contributor
0 Likes
950

but a break point in user exit and process transaction which calls this exit. Just the usual way to do it.

Read only

Former Member
0 Likes
950

Hi,

u will be writting some code in the user exit .

in that itself .

write BREAK-POINT

or put a break point.

when ever u execute the transaction it starts debugging from that user exit

<REMOVED BY MODERATOR>

raam

Edited by: Alvaro Tejada Galindo on Apr 15, 2008 10:59 AM

Read only

Former Member
0 Likes
950

Hi,

Please find step by step on how to debug:

Enhancement/Modifications

1) Execute tcode SMOD to find available enhancement/modifications.

2) Create a project for the enhancement in tcode CMOD.

3) You must activate your project first in order to hit a break-point or get into debug mode for your existing enhancements/modifications, if you do not, the best you will be able to do is step through the main program until you hit the call for that particular customer enhancement.

4) To get into debug, you can enter a hard break-point in the enhancement itself, set a soft break-point with the stop sign, or the long way, before you execute your transaction or while you are in your transaction, you can place a /h in the ok code area (this is the area of your gui where you can type in a tcode). Once you have the /h, hit enter and that will take you into debug, from there, you can do many different things to find exactly what you are looking for.

User Exits

1) Identify the main program you want to locate a user exit/debug.

2) For example, go to SE80 and do a search by program or dev class (SAPMV45A sales order or Dev Class VMOD, most SD user exits are in this dev class). In SE80 if you go by program, most user exit programs end in a 'Z' on a rare occasion 'X' or 'Y'.

3) If you are looking at including MV45AFZZ, you can see where there are different forms. These forms will get called at times within the program. If you are looking to fill the storage location on the sales order, you will probably want to take a look at the perform that fills in a field in vbap.

4) If this is what you are trying to accomplish, you will need to do the select against the config Table TVKOL based on the shipping point/plant and possibly storage condition based on your picking strategies.

5) For the debug part, you can do the same as in the enhancements/modifications but you will not need to activate any projects.

Regards

Kiran Sure

Read only

peter_ruiz2
Active Contributor
0 Likes
950

hi,

insert this code on the area of the exit where you wish to start debugging.


break-point.

regards,

Peter