Application Development 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: 

select statement

Former Member
0 Kudos
101

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
84

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

9 REPLIES 9

Former Member
0 Kudos
85

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

Former Member
0 Kudos
84

HI,

SELECT * FROM Z_ABC INTO <b>CORRESPONDING FIELDS OF</b> TABLE IT_ABC WHERE......

Regards

SAB

pradeep_nellore
Participant
0 Kudos
84

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

Former Member
0 Kudos
84

Thank u frnds....

Is this a solution to eliminate the unicode problem...

plzz help...

thnks

satya

0 Kudos
84

if you get same problem ,then declare internal table as like database table ,so you will not get any more problem

Former Member
0 Kudos
84

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.

former_member182346
Active Contributor
0 Kudos
84

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

Former Member
0 Kudos
84

hi,

SELECT * FROM Z_ABC INTO corresponding fields of TABLE IT_ABC

WHERE <condition>

Reward with points if helpful.

S0025444845
Active Participant
0 Kudos
84

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