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

Update statement not working

Former Member
0 Likes
583

Hi,

I created ztable with fields mandt,name(primary key) and value and created one record with name = 'cash' and value = 0.

but when i am using

UPDATE ZCASH SET VALUE = V_CLOSE WHERE NAME = 'CASH'.

in the program the 'v_close' value is not getting updated in zcash.Please suggest where i am going wrong.

Thanks,

Venkat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

Hi Venkat,

Your update statement is correct. just check if there is some issue with 'CASH' and 'cash'.

regards,

Anoop Panackal

3 REPLIES 3
Read only

Former Member
0 Likes
550

Hi,

Check the value of V_CLOSE is a non-zero value.

Check whether there exists a record in ZCASH with NAME = 'CASH'.

Add COMMIT WORK after update.

Best regards,

Prashant

Read only

Former Member
0 Likes
550

Hello ,

Better to use Modify Ztable instead of Upload.

Read only

Former Member
0 Likes
551

Hi Venkat,

Your update statement is correct. just check if there is some issue with 'CASH' and 'cash'.

regards,

Anoop Panackal