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 query

Former Member
0 Likes
394

hi,

in the foll. statement:

<b>insert lines of itab into itab1 index n.</b>

if data type of fields of itab is diff from itab1,but no. of fields being the same how do u make the type conversion possible since it does not allow (ie gives compile error)

i want value s from itab to go in itab1 but since datatypes are diff. it doesnt allow me .so how do i go about it??

thanks,

3 REPLIES 3
Read only

alex_m
Active Contributor
0 Likes
375

Is not at all possible type conversion in the statement Insert. If you want u have to convert before the statement and insert.

If useful reward.

Thanks,

Alex.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
375

Hi,

Type conversion not possible with INSERT statement.

Read only

Former Member
0 Likes
375

If the data types of itab1 fields are different you have to convert the value

before storing into Itab2.

do the conversion before insert.