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

ABAP

Former Member
0 Likes
508

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
Read only

Former Member
0 Likes
469

Hi

Try this:

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD = 0.

Max

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

3 REPLIES 3
Read only

Former Member
0 Likes
470

Hi

Try this:

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD = 0.

Max

Read only

0 Likes
469

shouldn't it be

ITAB-FIELD = 0.

MODIFY ITAB TRANSPORTING FIELD WHERE FIELD ne 0.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
469

itab-field = 0.

MODIFY TABLE ITAB.