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 table update

Former Member
0 Likes
684

Hi

i have a modify statement as below

MODIFY afvu FROM TABLE git_afvu1.

after this modify stmnt , database table is getting updated. now i want to check whether the update was successful or not to proceed further. what i need to do?

6 REPLIES 6
Read only

former_member222860
Active Contributor
0 Likes
646

Check with the SY-SUBRC = 0

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
646

Hello,

CHECK SY-SUBRC = 0.

This should suffice.

BR,

Suhas

Read only

Former Member
0 Likes
646

sy-subrc = 0 in case , All lines were inserted or changed.

Sy-subrc = 4 in case , At least one line could not be processed as there is already a line with the same unique name

Sy-dbcount gives no of processed lines.

Read only

0 Likes
646

Hi,

After modify statement check SY-SUBRC = 0 or not. If SY-SUBRC = 0then put "COMMIT WORK" statement.

This may help you !!

Thanks !!

Vivek

Read only

Former Member
0 Likes
646

solved

Read only

Former Member
0 Likes
646

thanks