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

modify syntax

Former Member
0 Likes
848

modify wa_ztable set flag = 'X'.

what is wrong with the above code

i merely want to update flag to X for all records

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
828

Hi,

<b>If WA_ZTABLE is a DDIC table then..</b>

UPDATE WA_ZTABLE SET FLAG = 'X'

WHERE FLAG = ' '.

<b>If WA_ZTABLE is a internal table.</b>

WA_ZTABLE-FLAG = 'X'.

MODIFY WA_ZTABLE TRANSPORTING FLAG WHERE FLAG IS INITIAL.

Thanks,

Naren

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
828

I think it is something like this.......

modify wa_ztable transporting flag = 'X'.

Regard,

RIch Heilman

Read only

0 Likes
828

Nop, I don't think you can do that.

Regards,

RIch HEilman

Read only

former_member194669
Active Contributor
0 Likes
828

change it as

loop at wa_ztable.

wa_ztable-flag = 'X'.

modify wa_ztable .

endloop.

aRs

Read only

Former Member
0 Likes
828

Hi

wa_ztable-flag = 'X'

modify wa_ztable where flag = space transporting flag.

Max

Read only

Former Member
0 Likes
829

Hi,

<b>If WA_ZTABLE is a DDIC table then..</b>

UPDATE WA_ZTABLE SET FLAG = 'X'

WHERE FLAG = ' '.

<b>If WA_ZTABLE is a internal table.</b>

WA_ZTABLE-FLAG = 'X'.

MODIFY WA_ZTABLE TRANSPORTING FLAG WHERE FLAG IS INITIAL.

Thanks,

Naren

Read only

suresh_datti
Active Contributor
0 Likes
828

Use the following.

wa_ztable-flag = 'X'.

modify wa_ztable transporting flag.

~Suresh

Read only

Former Member
0 Likes
828

Hi,

Please try this.


modify ztable from wa_ztable transporting flag = 'X'.


or 


update ztable 
set flag = 'X' 
where field1 = <condition>
  and field2 = <condition>. 

Regards,

Ferry Lianto