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

Former Member
0 Likes
682

Hi,

how can we fetch data from another client(002)as we r currently working on client001.i.e what select query I have 2 write to fetch data which exists in the server of client002.

Regards

rahul

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
663

You can specify the client in your WHERE clause.

where   MANDT = '200'

Regards,

Rich Heilman

Read only

0 Likes
663

Hi,

It doesn't work.

rahul.

Read only

0 Likes
663

You must use the extenstion CLIENT SPECIFIED also.

report zrich_0001.


data: it001 type table of t001.


select * into table it001 from t001 client specified
                where mandt = '200'.

Regards,

Rich Heilman

Read only

0 Likes
663

Hi,

I HAVE DONE THIS. STILL I M NOT GETTING OUTPUT.

REGARDS

RAHUL

Read only

0 Likes
663

Are you sure that client 200 is apart of this instance? Or is it a separate instance?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
663

Hi ,

you need the extension

select *

from xxx

where mandt = '001'

client specified

regards

Werner

Read only

Former Member
0 Likes
663

Try:


SELECT *
  FROM table
  CLIENT SPECIFIED
  WHERE mandt = '002'.
ENDSELECT.

Rob

I had CLIENT SPECIFIED in the wrong place.

Message was edited by:

Rob Burbank

Read only

Former Member
0 Likes
663

Query solved.Thanks.

Regards,

Hemant