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: 

SQL error 1008 occurred when executing EXEC SQL.

Former Member
0 Kudos

I'm running a native sql statement on the database and do have the following error.

code is like this :

DATA : LANG(2).

LANG = SY-LANGU .

EXEC sql.

select id, nm

into :gw_street_alias-id, :gw_street_alias-nm

FROM street_alias@urbis

where street_id = :gw_street-id and

lang = :LANG

ENDEXEC.

Structure are the same within SAP and Oracle.

does anyone have any idea???

rewards promised

5 REPLIES 5

Former Member
0 Kudos

Hi,

Thanks for the answer but I'm sure all is the same.

I'm selecting only one column really don't know what happens

0 Kudos

Here is the table street_alias

SQL> desc street_alias@urbis

Name Null? Type

-


-


-


ID NOT NULL VARCHAR2(7)

LANG NOT NULL VARCHAR2(2)

NM NOT NULL VARCHAR2(20)

STREET_ID NOT NULL VARCHAR2(8)

event this code does not work

DATA : lw_possv LIKE LINE OF gi_possv.

DATA : langu(2).

data : id(8).

id = gw_street-id .

langu = sy-langu .

EXEC sql.

select *

into :gw_street_alias

FROM street_alias@urbis

where street_id = '10801146' and

lang = :langu

ENDEXEC.

What's theproblem??? :s

0 Kudos

UP

eddy_declercq
Active Contributor
0 Kudos

Hi,

Pls don't forget to reward points and close the question if you find the answers useful.

Eddy