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 check the values of a data base table while debugging.

former_member185116
Active Participant
0 Likes
1,005

hello all,

in our Z-report program we are inserting some values into ztable ,

further in the program we are fetching data from that table...

my question is while debugging i want to check what values have been inserted into ztable ,

how ever  the values are not displayed in SE11 while debugging,

how do i check the values of a data base table while debugging...

hello all,

in our Z-report program we are inserting some values into ztable ,

further in the program we are fetching data from that table...

my question is while debugging i want to check what values have been inserted into ztable ,

how ever  the values are not displayed in SE11 while debugging,

how do i check the values of a data base table while debugging...

3 REPLIES 3
Read only

Former Member
0 Likes
954

Hi Vinay,

You have to use COMMIT WORK statement after inserting record. So you can immediately check entry in table. In your case, program has its own commit work after completion of execution hence you are getting it after end of program.

Cheers,

Ashish

Read only

Former Member
0 Likes
954

VINAY REDDY wrote:

   my question is while debugging i want to check what values have been inserted into ztable ,

how do i check the values of a data base table while debugging...

if sy-subrc is 0 after the insert statement , that means insertion is successfull so whatever the values are there in wa_zt (in your case) have been inserted into DB table (Post commit).

As Ashish Kaple  has mentioned , you cant see the entries till that Commit works.

there would be an implicit database commit that occurs after that screen has been processed.

Thanks

Vamsi

Read only

Former Member
0 Likes
954

After the end of the LOOP, you can SELECT the data you have inserted into an internal table. The data has not been committed to the table yet, but this SELECT will be able to retrieve it because it has been cached until the COMMIT.

Rob