2007 Mar 19 12:02 PM
Hello friends
I am enhanching someone else's code in a method in a class.
I am trying to insert something in my z table, but it won't insert without commit. If I write commit, it gives syntax error.
" insert zmm_intsales from ca_zmatint.
commit. "
can anyone guide how to commit in a method of a class.
Regards
Bhavna
2007 Mar 19 12:09 PM
2007 Mar 19 12:25 PM
Hi
I have used commit work it does not give syntax error, but still nothing is getting inserted in the Z table.
Thanks
2007 Mar 19 12:27 PM
2007 Mar 19 12:33 PM
2007 Mar 19 12:35 PM
In debug mode check the content of SY-DBCNT field immediately after the INSERT. If it contains a non-zero value, the record(s) are getting inserted.
In that case, check the content of table structure ca_zmatint to make sure you have populated the fields correctly.