2016 Feb 08 11:21 AM
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...
2016 Feb 08 11:54 AM
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
2016 Feb 08 12:25 PM
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
2016 Feb 08 8:25 PM
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