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

Issue in Left outer join

Former Member
0 Likes
755

Hi All ,

I have used below select query to get data from ADR2, ADR3 and ADR6 tables using Left outer join ....

but im not getting any data into itab . Can anyone tell me what is wrong in select query ?

select  a~ADDRNUMBER

             a~COUNTRY

             a~TEL_NUMBER

             a~TEL_EXTENS

             a~TELNR_LONG

             a~TELNR_CALL

             c~ADDRNUMBER1

             c~SMTP_ADDR

into corresponding fields of table itab

from ADr2 as A

LEFT Outer Join ADR6 AS C ON a~addrnumber = c~addrnumber\

where a~addrnumber = t_but020-addrnumber.

5 REPLIES 5
Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
695

Hi Smitha,

Please check where condition..

Also you missed for all entries option..

It's seems to be wrong.

Arivazhagan S

Read only

Former Member
0 Likes
695

hi,

      try like this..

select  a~ADDRNUMBER

             a~COUNTRY

             a~TEL_NUMBER

             a~TEL_EXTENS

             a~TELNR_LONG

             a~TELNR_CALL

             c~ADDRNUMBER1

             c~SMTP_ADDR from adr2 as a left outer join adr6 as c on a~addrnumber = c~addrnumber i

into corresponding fields of table itab where a~addrnumber = t_but020-addrnumber.

Regards

gopi

Read only

0 Likes
695

hi smitha,

in where condition give parameter name which used in the program in the place of t_but020-addrnumber. First check values is coming to internal table. after that u can check with where condition.

Regards,

gopi

Read only

former_member188251
Active Participant
0 Likes
695

PLease check if data does exist in the table for the join condition and the where clause.

Best Regards,

Shankar.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
695

Before posting, did you check (via debug) the actual values stored in internal table t_but020 (conversion exit or garbage data ?), also did you check existence of data in table ADR2 for some of the extracted values ?

Regards,

Raymond