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 query----- inner join codition

Former Member
0 Kudos

i have used below query to get fields from ekpo and eket tables.

i am getting error as the column name 'ebeln' has two meanings.

SELECT A~EBELN

A~EBELP

A~TXZ01

A~MENGE

A~MEINS

A~NETPR

A~NETWR

B~EINDT

FROM EKPO AS A INNER JOIN EKET AS B

ON AEBELN = BEBELN

AND AEBELP = BEBELP

INTO CORRESPONDING FIELDS OF TABLE IT_ITEM

WHERE EBELN = I_EBELN.

please tell what could be the problem

regards,

krishna

1 ACCEPTED SOLUTION

piyush_mathur
Active Participant
0 Kudos

Hi Krsihna,

refer below code:

WHERE A~EBELN = I_EBELN. or WHERE b~EBELN = I_EBELN..

Thanks

Piyush

Reward Points, if helpfull

3 REPLIES 3

piyush_mathur
Active Participant
0 Kudos

Hi Krsihna,

refer below code:

WHERE A~EBELN = I_EBELN. or WHERE b~EBELN = I_EBELN..

Thanks

Piyush

Reward Points, if helpfull

0 Kudos

thanks a lot piyush

it got corrected.

Former Member
0 Kudos

HI,

plz change the where condn as

WHERE a~EBELN = I_EBELN.

with Regards,

Neptune.M