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

Add table in query.

Former Member
0 Likes
667

Hello experts ,

I have query with 1 table , if i want to add one more table to my query and make a join with 2 tables or more than 2 , how can i do this ?

Thanks for your help,

Avi.

3 REPLIES 3
Read only

Former Member
0 Likes
624

hi.

select kna1~kunnr kna1~sortl zsdo~asmid pa0001~ename
       zsdo~pc_p01_begda zsdo~pc_p01_ded_per
        into corresponding fields of table it_samptb_all
        from zsdo
        inner join kna1 on ( zsdo~kunnr = kna1~kunnr )
        inner join pa0001 on ( zsdo~asmid = pa0001~pernr )
    where zsdo~samp_flag eq 'X'     " Sampling is Active
      and zsdo~ostact = '1'         " Active Outlets only
      and zsdo~pc_p01_cshare ne '0'
      and pa0001~endda eq '99991231'
      and zsdo~ssok in ssok1
      and zsdo~kunnr in kunnr1.

Read only

vinod_vemuru2
Active Contributor
0 Likes
624

Hi,

Go to SQ02 tcode, open ur query in change mode. Click on JOIN button.

Here u can specify JOIN tables as per ur requirement.

Thanks,

Vinod.

Read only

0 Likes
624

Hello ,

I don't have join button when i open SQ02 transaction , i have 1 table and i want to add more .

Avi.