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

updating ztable with data

Former Member
0 Likes
607

friends,

i need to modify a dbtab which has field1 to be modified to 'Y'

keeping the remaining fields unchanged

with where condition period =P_period.

can someone help with correct syntax,

thank you.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
591

Hi,

Please check this


update dbtab SET   field1 ='Y'  WHERE period = p_period.
commit work.

aRs

4 REPLIES 4
Read only

Former Member
0 Likes
591

modify itab where period = p_period transporting field1.

Read only

0 Likes
591

hi saritha,

use can use either modify or update statement for internal tables and update for only database tables.

try like this,

modify itab where fldname = ' ' transporting fldname.

or

update itab where fldname = ' ' .

if useful reward some points.

with reagrds,

suresh.

Read only

Former Member
0 Likes
591

hi

update <ztable>

set <ztable>-field = <value>

where period =P_period

<b>reward points if useful</b>

regards

ravish

Read only

former_member194669
Active Contributor
0 Likes
592

Hi,

Please check this


update dbtab SET   field1 ='Y'  WHERE period = p_period.
commit work.

aRs