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

how to see data while debugging

Former Member
0 Likes
2,022

hi all,

I'm running one hr report , it takes 1hr to execute. I want to see , how many lines it is executed and how many records in the internal table filled, and ....

Is there any t.code to view this data , .

thanks in advance

Naveen

4 REPLIES 4
Read only

former_member150733
Contributor
0 Likes
1,402

In the debugger screen, click on the tables button and double click on the internal table name (in the code). You can see teh table contents in the window below.

Just scroll down the window to see the number of records in the internal table.

Read only

alex_m
Active Contributor
0 Likes
1,402

In debugging mode just click the internal table then you find bottom area with table contents.

Read only

Former Member
0 Likes
1,402

Hi Naveen,

there is no need of searching for any T.Code.

What you can do is add a break point just after the statement where the collection of data into internal table is done.

as soon as the debugger starts after encountering the break point, check for SY-TFILL value.

There u shall come to know how many records the internal table holds.

<b>Saying thanks in SDN is by awarding points.</b>

Kiran

Read only

kiran_k8
Active Contributor
0 Likes
1,402

Naveen,

It is VERY to the power of INFINITE important to know how to use the DEBUGGING concept.

TABLE:- You can give the internal table name here and check the amount of data that got fetched once the select statement got executed.

Fields:- You can see the what is the value that got stored in any of the fields that are used in the program.Suppose if you want to know what itab-makt has got then go to fields button and give the field name as itab-makt and press enter.This will show the data it is having when the execution point reaches this field.You can see at the maximum 8 fields in debugging.

Break-point:- If you want to know whether a particular syntax is getting executed or not,if getting executed what is the result,then you can select that particular synatx in the program and press the STOP button.This is what they call "put a break-point at that line".

Watch-Point:-Suppose you want to see what the field itab-makt is having then you can create a watch point on this field and run the program.Once the wathcpoint is reached the system will give you a message in the status bar saying that the watchpoint has reached.Thus you can run your program upto a point and see the value that got stored at that point of time.

Overview:- It let's us know the processing blocks in the program that is currently running

Call Stack-I don't know.

Settings:-I don't know.

The buttons

F5-Single step

This way you can run the debugging step by step,I mean each and every line of the program.

F6, F7

This way you can jump the performs and loops while debugging.

F8

Execution

if you have any doubt revert it.

K.Kiran.