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

error message appears ?

Former Member
0 Likes
831

I am using one inner join then i got this message.

what does it means ?

The column name "NTGEW" has two meanings. ABAP/4 Open SQL statement.

Plz help me.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
784

it means that this field is present in both tables of the join, make sure to specify the field that you want like this.

<b>table_name~</b>ntgew.

Regards,

Rich Heilman

6 REPLIES 6
Read only

Former Member
0 Likes
784

Attach your code.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
785

it means that this field is present in both tables of the join, make sure to specify the field that you want like this.

<b>table_name~</b>ntgew.

Regards,

Rich Heilman

Read only

anversha_s
Active Contributor
0 Likes
784

hi,

kindly chk the syntax of ur inner join with

the below sample code and let us know.

hi,

table emp

empno name

a sasi

b xxx

c yyy

table sal

empno salary

a 1000

b 2000

Inner join

****************

select eempno ename

s~sal

into table int_table

from emp as e

inner join sal

on

eempno = sempno.

if you made inner join between table a and b by emp no

the selection retrives only if the condition satisfy the output will be

a sasi 1000

b xxx 2000

<b>if both tables have same field, u shuld apecifiaccly mention the table name.

table_name~field_name.</b>

rgds

anver

if helped mark points

Read only

Former Member
0 Likes
784

Hi,

Probably It means that the NTGEW is available in both the tables you are joining.

Hope this helps.

Read only

Former Member
0 Likes
784

Sample code for Inner join

<b> SELECT aserviceid aservice b~sp_name

INTO CORRESPONDING FIELDS OF TABLE i_eservprov

FROM eservprov AS a INNER JOIN eservprovt AS b

ON aserviceid = bserviceid

WHERE a~service = '0007'.</b>

Regards,

Prakash.

Read only

Former Member
0 Likes
784

Hi Adams,

may be NTGEW field exists in the 2 tables that u r joining

so in the join conditions specify from which table u r using that field

eg : t1~NTGEW