goesflavio
1st March 2007, 00:44
Hi everybory,
Im trying to do a query in ttadv3180m000 to find a problema in my "stoc movimentation". Its the sintax below:
select tdinv150.orno
from tdinv150
where tdinv150.koor = tckoor.act.sfc
and not exists( select tisfc001.pdno
from tisfc001
where tisfc001.pdno = tdinv150.orno )

Therefor, the bwmessage appears when I try run the query.
Some one could help me?

Best regards.

bigjack
1st March 2007, 05:56
Hi,

What error message are you getting? Your query looks fine to me. Post your error message screenshot.

Bye

goesflavio
1st March 2007, 13:38
Good morning bigjack,
The error is in attachaments. This select works well in program script, but in the query only not.
Best regards.
Flavio.

mark_h
1st March 2007, 16:34
I think it just your spacing - try this:

select tdinv150.orno
from tdinv150
where tdinv150.koor = tckoor.act.sfc
and not exists (select tisfc001.pdno from tisfc001 where tisfc001.pdno = tdinv150.orno)

goesflavio
1st March 2007, 17:13
Hi Mark, it works very well, you are totaly rigth.

Tks a lot.
Flavio.