2009 Apr 09 9:27 AM
Hi,
I have a Internal table in which there is field emplty for every record.
I have update this field in internal table in run time , and the field value is the same in every record.
Is there any method to update without looping through the internal table.
for example
table:
A B C D
1 2 3
1 2 3
1 2 3
in run time I found the value of D as 4
and I have to update as
A B C D
1 2 3 4
1 2 3 4
1 2 3 4
without looping... is it possible
Regards
2009 Apr 09 9:30 AM
Try this :
MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond.
regards,
Advait
Edited by: Advait Gode on Apr 9, 2009 10:31 AM
Try this :
MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond.
regards,
Advait
Edited by: Advait Gode on Apr 9, 2009 10:31 AM
2009 Apr 09 9:30 AM
Try this :
MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond.
regards,
Advait
Edited by: Advait Gode on Apr 9, 2009 10:31 AM
2009 Apr 09 9:30 AM
try below
wa_tab-d = '4'.
modify itab from wa_tab transporting D
where D is initialit works
2009 Apr 09 9:33 AM
2009 Apr 09 9:34 AM
Try using following statement :
say your initial internal table name is itab and at runtime you found value of d which is present in wa_itab.
So you can write :
MODIFY itab FROM wa_itab
TRANSPORTING d WHERE d is initial.
hope it helps
ashwani
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |