2009 Feb 11 1:35 PM
I have a structure and a field of it is empty.
I would like to overwrite the field in the database with this initial field.
but it seems that update only changes values if they are filled.
Does any workaround exist?
2009 Feb 11 1:36 PM
Hi ,
USe Modify then it solves the problem.
Thansk
2009 Feb 11 1:36 PM
2009 Feb 11 1:37 PM
2009 Feb 11 1:48 PM
2009 Feb 11 1:52 PM
hi.
just check like this.
select f1 f2 from ztable into corresponding field of itab
where condition.
loop at itab into wa_itab where f1 ne 0. " suppose f1 is field which u want to modify
wa_itab-f1 = 0.
modify itab from wa_itab index sy-tabix.
endloop.Edited by: tahir naqqash on Feb 11, 2009 6:53 PM
Edited by: tahir naqqash on Feb 11, 2009 6:53 PM
2009 Feb 11 1:52 PM
Hi,
Try this, this will surely solve ur problem
MODIFY <dbtab> from <your wokarea or internal table>.
Edited by: Digvijay Singh Pawar on Feb 11, 2009 2:59 PM
2009 Feb 11 1:54 PM
Hi,
you can use,
MODIFY <db tab> FROM TABLE <int tab> "Here int tab contains the initial valuesRegards,
Manoj Kumar P
2009 Feb 11 1:54 PM
hi,
use the following statements as per your requirement
Modify DBTAB from wa.
Modify DBTAB from table itab.These statements modify or insert based on the records in the data base table.
Thanks
Sharath
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |