2007 Aug 09 12:26 PM
inserting data to the data base table .... using general reports ..
can any one help out ....... coding also ...
inserting data to the data base table .... using general reports ..
can any one help out ....... coding also ...
2007 Aug 09 12:30 PM
Hi Ravi,
You can do this using INSERT statement.
INSERT dbtab FROM TABLE itab.
Check this code.
DATA: BEGIN OF ITAB OCCURS 0,
INCLUDE STRUCTURE MARA,
END OF ITAB.
ITAB-MATNR = 'MATERIAL1'.
APPEND ITAB.
ITAB-MATNR = 'MATERIAL2.
APPEND ITAB.
ITAB-MATNR = 'MATERIAL3.
APPEND ITAB.
INSERT MARA FROM TABLE ITAB.
Check this link to know more about INSERT
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/insert_d.htm
Thanks,
Vinay
2007 Aug 09 12:38 PM
HI Ravi,
We have a Good Demo programs provided by SAP, have a look at them
DEMO_INT_TABLES_INSERT
DEMO_INT_TABLES_INSERT_IND_1
DEMO_INT_TABLES_INSERT_IND_2
DEMO_INT_TABLES_INSERT_IND_3
DEMO_INT_TABLES_INSERT_LINES
Regards
Sudheer
2007 Aug 09 12:39 PM
Hi,
you can use
<b>Modify DBTAB FROM table ITAB
both ITAB and DBTAB must be of the same str</b>
This will update the existing records or create new record if not matched..
<b>INSERT <dbtab> from table <internal_tab>.</b> Inserts new records in DB table,..
rewards if usefukl,
regards,
nazeer
2007 Aug 12 3:13 PM
you can not add new records to standard tables through report programming but for ztables it is possible
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |