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: 

ABAP

Former Member
0 Kudos

Hi,

I am new to ABAP. i was trying to write a code. i have a requirement where in i have an internal table and i wanted to change the value of a specfic field to 0 (i.e the entire table should have value 0 for that filed) with out using loop at itab. i wanted to now any other means to do that.

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Try this:

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD = 0.

Max

3 REPLIES 3

Former Member
0 Kudos

Hi

Try this:

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD = 0.

Max

0 Kudos

shouldn't it be

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD ne 0.

hymavathi_oruganti
Active Contributor
0 Kudos

itab-field = 0.

MODIFY TABLE ITAB.