Skip to Content
0
Jul 13, 2007 at 01:33 AM

Data written into DB table without COMMIT WORK

25 Views

Dear all,

I wrote a simple program to test the data update:

DATA: line TYPE ZDATA,

flag TYPE I VALUE 1.

line-data1 = '1'.

line-data2 = 'abc'.

INSERT INTO zdata VALUES line.

WHILE flag EQ 1.

flag = 1.

ENDWHILE.

COMMIT WORK.

After the program enters the endless loop, I checked the DB table content and found the data "1" and "abc" has already been written into the table. But here the COMMIT WORK statement has not been executed yet. Can anybody clarify this issue?

Thanks + Best Regards

Jerome