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

Client-Specified

Former Member
0 Likes
523

I am executing the following SQL statment in client 10.

data anlz_table type table of anlz.

SELECT bukrs anln1 kostl FROM anlz INTO TABLE anlz_table.

The result set includes records from client 10, as expected.

However, the result set also includes records from other

clients as well.

Why are records of clients other than 10 included?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

hi,

I think table anlz is client independent.

incude client (MANDT)

If the table is client dependent.it will fetch data only from that table.

Reward with points if helpful.

Message was edited by:

Vinutha YV

4 REPLIES 4
Read only

Former Member
0 Likes
480

hmmm sry not a real clue, it should work the way you do it, i just found one minor bug.

instead of:

SELECT bukrs anln1 kostl FROM anlz INTO TABLE anlz_table

better write:

SELECT bukrs anln1 kostl FROM anlz INTO corresponding fields of TABLE anlz_table

BTW not sure if this is the way to go, but why dont you just specify your client?

Message was edited by:

Florian Kemmer

Read only

Former Member
0 Likes
480

HI,

if the table is client independent (i.e, first field in the table is not clnt data type) it will fetch data from other clients also.

may in ur case the table is client independent.

rgds,

bharat.

Read only

dev_parbutteea
Active Contributor
0 Likes
480

HI,

add client (MANDT) to select statement.

Read only

Former Member
0 Likes
481

hi,

I think table anlz is client independent.

incude client (MANDT)

If the table is client dependent.it will fetch data only from that table.

Reward with points if helpful.

Message was edited by:

Vinutha YV