on 08-04-2022 3:21 PM
Hi All
How is it possible to shortlist all Item Codes that have been created yet without any historical transactions?
Kedalene
Hi Kedalene,
Please give this query a try:
SELECT i.ItemCode, i.ItemName
FROM OITM i
WHERE
i.ItemCode NOT IN (select distinct ItemCode from ADO1 where isnull(ItemCode, '') <> '')
AND
i.ItemCode NOT IN (select distinct ItemCode from ADO9 where isnull(ItemCode, '') <> '')
(I think) ADO1 contains sales document rows and ADO9 contains purchase document rows. There may be other ADO tables for other transaction types.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.