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

how to insert field to database through module pool.

Former Member
0 Likes
570

Hi All,

I am working on module pool,i have taken the itab with header line and structures also.

inorder to update fields to different tbales what is the logic i need to right.

i have taken move command i have written move scree-fields to structure

then have modify dbtable from structure.but no result only current record is updating

please help me.

3 REPLIES 3
Read only

venkat_o
Active Contributor
0 Likes
526

Hi Saroja,

INSERT INTO scarr values scarr_wa

.

If you use above statement, it updates only one record.

INSERT INTO scarr FROM TABLE itab.

If you use above statement, it updates all records available in itab.

Choose which one u want to use and update the table.

Thanks

Venkat.O

Read only

sridhar_meesala
Active Contributor
0 Likes
526

Hi,

Use INSERT statement to populate the database table from itab.

Thanks,

Sri.

Edited by: Sri on Jul 9, 2009 9:47 AM

Read only

Former Member
0 Likes
526

Hi,



" Statement to be used when you use a work area
MODIFY ZEMPL FROM WA_EMPLDETAILS.


" Statement to be used when you use an internal table
MODIFY ZSKIL FROM TABLE T_SKILLDETAILS.

You can also use INSERT statement like how Venkat has mentioned.