Application Development 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: 

Why 'CLIENT SPECIFIED' doesn't works?

BergOff
Explorer
0 Kudos
447

Hi, experts.
Why client specified doesn't work.
I'm sure that i'm having roles for updating values in system and that table is not initial.
When i try to remove WHERE statement - it's just getting a values from current system.

 

data : lt_tab type table of mara.
select  * from mara CLIENT SPECIFIED
      into CORRESPONDING FIELDS OF TABLE lt_tab
  where mandt = '500'.
write : '123'

 

Current mandt EGD - 300. I want to get values from EGP 500.
I think it's just ignores 'CLIENT SPECIFIED' for some reasons.

And sy-subrc = 4.
Here's trace

trace.jpg

5 REPLIES 5

DominikTylczyn
Active Contributor
423

Hello @BergOff 

I don't think CLIENT SPECIFIED is ignored. Look at your trace. The last lines show variable value = 500, which is the client number you have specified in the query.

Best regards

Dominik Tylczynski

0 Kudos
341

I would be having same value for the variable if i remove 'client specified'. It would be trying to find records with another mandt field, as i think it does now and just ignores 'client specified'. Sy-subrc = 4.

And as i told, if not to specify mandt field - it will collect data from current mandt not from all of them.

RAF
Active Contributor
0 Kudos
352

raymond_giuseppi
Active Contributor
325

Client specified will read data from current system for another client, not from another system

  • Don't expect to read data from system EGP client 500, but from current system EGD client 500. 
  • To read from another system consider RFC enabled FM such as RFC_READ_TABLE  

0 Kudos
320

That's spot on! I've not noticed that OP wants to read from another system.