2006 May 07 5:47 PM
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
2006 May 07 7:16 PM
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
2006 May 07 7:16 PM
Hi
Try this:
ITAB-FIELD = 0.
MODIFY ITAB TRANSPORTING FIELD WHERE FIELD = 0.
Max
2006 May 07 8:45 PM
shouldn't it be
ITAB-FIELD = 0.
MODIFY ITAB TRANSPORTING FIELD WHERE FIELD ne 0.
2006 May 08 3:58 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |