2007 May 17 7:05 PM
Hi frnds,
I m upgrading and i m having a unicode error. My problem i m facing is select statement...
SELECT * FROM Z_ABC INTO TABLE IT_ABC WHERE......
So frnds the problem is z_abc is table which contains some fields... and it_abc contains fields but more than z_abc...
so frnds.. can u plzz help me how to rectify this issue...
thanking u all..
regards,
satya
2007 May 17 7:07 PM
Write the logic like :
data it_abc like z_abc occurs 0 with header line.
SELECT * FROM Z_ABC INTO TABLE IT_ABC WHERE......
now see the output
2007 May 17 7:07 PM
Write the logic like :
data it_abc like z_abc occurs 0 with header line.
SELECT * FROM Z_ABC INTO TABLE IT_ABC WHERE......
now see the output
2007 May 17 7:08 PM
HI,
SELECT * FROM Z_ABC INTO <b>CORRESPONDING FIELDS OF</b> TABLE IT_ABC WHERE......
Regards
SAB
2007 May 17 7:11 PM
Hi,
use the following code.
select * from Z_abc into corresponding fields of table it_abc where ....
Bye
Hi frnds,
I m upgrading and i m having a unicode error. My problem i m facing is select statement...
SELECT * FROM Z_ABC INTO TABLE IT_ABC WHERE......
So frnds the problem is z_abc is table which contains some fields... and it_abc contains fields but more than z_abc...
so frnds.. can u plzz help me how to rectify this issue...
thanking u all..
regards,
satya
2007 May 17 7:15 PM
Thank u frnds....
Is this a solution to eliminate the unicode problem...
plzz help...
thnks
satya
2007 May 17 7:20 PM
if you get same problem ,then declare internal table as like database table ,so you will not get any more problem
2007 May 17 7:18 PM
ou cans solve this problem doind the following:
1- Change the declaration of the Itab as a type table of Dbtab.
Ex: data: t_xxx type table of xxx (with header line).
2- If the the fields of both tables have the same you can use
Ex: select * INTO CORRESPONDING FIELDS....
3- Use the statement:
Select a b c into ( a b c ) from xxx into table t_xx where...
Hope this can help you.
Regards.
2007 May 17 8:40 PM
Satya,
I think
Select * from z_abc into corresponding field of table it_tab where....
ll work for you.
Note: Check the field name of both table shuld be same.
Thank-You.
Reward points if helpful
Regards
vinsee
2007 May 18 7:27 AM
hi,
SELECT * FROM Z_ABC INTO corresponding fields of TABLE IT_ABC
WHERE <condition>
Reward with points if helpful.
2007 May 18 7:35 AM
Hi,
u can solve it by two ways,
data: it_abc like z_abc.
\and now
select * from z_zbc into it_abc where <condition>
or
if u want it_abc with more fields than
select * from z_abc into corresponding fields of it_abc where <condition>
regards,
sudha