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

select query----- inner join codition

Former Member
0 Likes
483

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
Read only

piyush_mathur
Active Participant
0 Likes
454

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
Read only

piyush_mathur
Active Participant
0 Likes
455

Hi Krsihna,

refer below code:

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

Thanks

Piyush

Reward Points, if helpfull

Read only

0 Likes
454

thanks a lot piyush

it got corrected.

Read only

Former Member
0 Likes
454

HI,

plz change the where condn as

WHERE a~EBELN = I_EBELN.

with Regards,

Neptune.M