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

Conditional BreakPoint

Former Member
0 Likes
1,277

Is it possible to set a breakpoint based on a condition? Precisely, my problem is that while running an extractor, I have observed in SM50 that it is hitting a Z table that it is not supposed to hit!! Now if I run the extractor in debug (/h) mode, it is taking forever to step through it to reach any conclusion on which code is reading that Z table. Is it possible to set a breakpoint in which I can say stop the execution if there is a read from the Z table so that I can start the debugging from there? I am not proficient in ABAP, so any step-by-step instruction to achieve the desired result is highly appreciated.

One more question, is there anyway one can search the list of programs created by a particular user? In se80, repository info system gives only the options - program name, short description, package and application component to search upon. How do I find the list of programs/FMs created by a particular user? Please help. Thanks in anticipation.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,120

In se38, do F4 on the "program name" field. There should be a button to expand the dialog box, then there should be a field for "author's" name. Enter the user name, and click green check.

Regards,

Rich Heilman

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,120

You can put a breakpoint on the SELECT statement for the "Z" table.

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,121

In se38, do F4 on the "program name" field. There should be a button to expand the dialog box, then there should be a field for "author's" name. Enter the user name, and click green check.

Regards,

Rich Heilman

Read only

former_member185931
Participant
0 Likes
1,120

You can search for program in TRDIR table and TADIR table has other opject like table, view.

but if you go to transaction SE38, Press F4 button and select the "information" option and their you will see a "+" button, which will open the box, and has option to enter author and other fields.

Regarding breakpoint, you can open the program and go to the line in the editor se38 or se80 and keep the cursor on the line and their should be a breakpoint button on the tool bar. which should change the color of line, and run the program it will stop at that point.

Read only

Former Member
0 Likes
1,120

If you're not sure where the Z table is being hit. You can turn on a performance trace before executing the program (ST05). After the program finishes, turn of the trace and list it. Put your cursor on the OPEN line for the Z table and then press the ABAP display button (F5). It'll take you to the point in the code.

Rob

Read only

Former Member
0 Likes
1,120

Hi Sameer,

I dont think its possible to put dynamic break point on selection of a z table . You can put a break point on select satement but then it will stop on all selects.

First do a where used list on the Z Table and see if you can narrow down to a few programs . Put break points in each of them . Then run your exractor . If it stops at a break point then , check call stack to find the calling sequence .

Or else activate SQL trace before you run extractor. From trace display you have an option to branch to ABAP program.

To get all programs created by a user . Goto SE16 , table TADIR .

PGMID - R3TR

OBJECT - PROG

OBJ_NAME - Z/Y

DEVCLass - Z/Y

AUTHOR - <User iD >.

Cheers

Read only

0 Likes
1,120

Sameer,

Turn on trace for your user id - ST05

Execute your transaction

Once your transaction is completed, turn trace off and display the list.. You can easily find your 'Z' table here.. Place the cursor on the statement and then go to the source code, it will directly take you to the source code where the Select statement is being invoked..

You can then put break point directly on this select statement and run your transaction again to see why your pgm goes through this select stmt.