2008 Oct 06 8:26 AM
hi experts
how can i insert table into database table not line by line.
thanks
Amit
hi experts
how can i insert table into database table not line by line.
thanks
Amit
2008 Oct 06 8:28 AM
Hi
You can try
MODIFY ZTABLE FROM ITAB.
if the record already exists, it will modify, else it will insert
Regards
MD
2008 Oct 06 8:28 AM
2008 Oct 06 8:32 AM
1)
loop at itab into wa.
INSERT INTO dbtab VALUES wa.
endloop.
2)
loop at itab into wa.
INSERT dbtab FROM wa.
endloop.
3)
INSERT dbtab FROM TABLE itab.
Regards,
Aparna
2008 Oct 06 8:36 AM
Hi,
Try like this...
insert ztable from table <internal table>.
It will insert the values to database table. if the internal table value already existing in database table means dump will come.
OR
Use modify statment
modify ztable from table <internal table>.
if internal table value already existing in database table means it will modify the values, else it will insert the values
Hope it will helps
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |