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

internal table

Former Member
0 Likes
795

hi to all,

help me in this issue,

i am having internal table eq itab_ins and i want to move

all this data to database table.zins is the new table created.i want place all these internal table values into

this table.

i am using update zins from table itab_ins. but it is giving it is not uniconvertable.

thanks in advance

kiran kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

hi

use either INSERT zins from table itab_ins

or MODIFY zins from table itab_ins.

<b>note

itab_ins must be the same strucuture as zins.</b>

9 REPLIES 9
Read only

Former Member
0 Likes
771

Hi,

Please see that the internal table & the Z-table have the same structure, if you want to use that statement.

Read only

Former Member
0 Likes
772

hi

use either INSERT zins from table itab_ins

or MODIFY zins from table itab_ins.

<b>note

itab_ins must be the same strucuture as zins.</b>

Read only

Former Member
0 Likes
771

Hi,

UPDATE dbtab FROM TABLE itab .This statement should work fine.

Just check field sequence in internal table & custom table is same.

Thanks.

Mark points if helpful.

Read only

0 Likes
771

hi

if fields r differnt should i need to move the fields

individually.

thanks

kiran kuamr

Read only

0 Likes
771

Yes. If the fields are diff, you need to move it individually & use "transporting" statement with Modify table.

Read only

0 Likes
771

Hi,

yes ,you should move individual field .

e.g. :

SCUSTOM-MANDT = '001'.

SCUSTOM-ID = '112133'.

INSERT INTO SCUSTOM CLIENT SPECIFIED VALUES SCUSTOM

Thanks.

Read only

0 Likes
771

hi phani can u give example.

Read only

0 Likes
771

Hi,

I would say, move the values to an internal table with similar structure as Z-table & then use <b>"MODIFY dbtab FROM TABLE itab"</b> .

By this, it will Mass modify: Inserts new lines or updates existing linesof a database table.

Read only

Former Member
0 Likes
771

Hi

itab_ins type standard table of zins.

wa_itab type zins.

itab_ins already has data

and if you want to add more data

wa_itab-field = <value>.

MODIFY itab_ins from wa_itab

transporting field.

Then please update your database table for itab_ins.

UPDATE zins from itab_ins