Application Development 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: 

modify syntax

Former Member
0 Kudos
79

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

Former Member
0 Kudos
59

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
59

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

modify wa_ztable transporting flag = 'X'.

Regard,

RIch Heilman

0 Kudos
59

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

Regards,

RIch HEilman

former_member194669
Active Contributor
0 Kudos
59

change it as

loop at wa_ztable.

wa_ztable-flag = 'X'.

modify wa_ztable .

endloop.

aRs

Former Member
0 Kudos
59

Hi

wa_ztable-flag = 'X'

modify wa_ztable where flag = space transporting flag.

Max

Former Member
0 Kudos
60

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

suresh_datti
Active Contributor
0 Kudos
59

Use the following.

wa_ztable-flag = 'X'.

modify wa_ztable transporting flag.

~Suresh

ferry_lianto
Active Contributor
0 Kudos
59

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