Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

inserting data

Former Member
0 Likes
560

inserting data to the data base table .... using general reports ..

can any one help out ....... coding also ...

4 REPLIES 4
Read only

Former Member
0 Likes
528

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

Read only

Former Member
0 Likes
528

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

Read only

Former Member
0 Likes
528

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

Read only

0 Likes
528

you can not add new records to standard tables through report programming but for ztables it is possible