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

Check if database table update finished.

Former Member
0 Likes
1,530

Hello my dear friends,

In my program,I submit a standard SAP program that inserts a few records to a database table. After the program ends I need to select these records, but I do not know if their insertion finished.

If you know of a way to solve this problem please help me, its very urgent.

Regards,

Eitan Iluzz.

4 REPLIES 4
Read only

Former Member
0 Likes
944

Hi

u can check sy-dbcnt system variable value it shows no of hits to the database.

Regards

sandhya

Read only

Former Member
0 Likes
944

Hi,

check sy-subrc value in ur program.

<updation code>

if sy-subrc = 0.

<get the inserted data>

endif.

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
944

Hi,

After Update statement keep sy-subrc check. if it zero then values are updated in database.

Reward points.if helpful

Bohra

Read only

Former Member
0 Likes
944

Hello Eli Eren,

There is a system variable called sy-subrc, which return return code for the abap statements.

If any statement executed successfully... it will return 0, otherwise not...

just check for sy-subrc value after your update database statement.

if it is 0 then, updated successflly, other wise not.

Reward If Useful.

Regards

--

Sasidhar Reddy Matli.