Code: Alles auswählen.
SELECT * FROM ymwtko INTO CORRESPONDING FIELDS OF itl_ymwtko WHERE
NOT exists ( SELECT * FROM ymwt01 WHERE ladst = ymwtko-ladst OR
ladst = ymwtko-entla )
AND datum IN sdatum AND tcode IN stcode
ORDER BY DATUM.
Schonmal das OR gegen ein AND getauscht?Bzzt hat geschrieben:Hallo Leute!Code: Alles auswählen.
SELECT * FROM ymwtko INTO CORRESPONDING FIELDS OF itl_ymwtko WHERE NOT exists ( SELECT * FROM ymwt01 WHERE ladst = ymwtko-ladst OR ladst = ymwtko-entla ) AND datum IN sdatum AND tcode IN stcode ORDER BY DATUM.
Code: Alles auswählen.
SELECT * FROM ymwtko INTO CORRESPONDING FIELDS OF itl_ymwtko WHERE
NOT exists ( SELECT * FROM ymwt01 WHERE ladst = ymwtko~ladst OR
ladst = ymwtko~entla )
AND datum IN sdatum AND tcode IN stcode
ORDER BY DATUM.