Try this query. Let me know your result. Replace 100 with your actual itemgrpcod.
SELECT 'AAA' FROM OITM T0 WHERE $[OITM.ItmsGrpCod] = '100' and t0.itemcode = $[OITM.itemcode]
Try this query. Let me know your result. Replace 100 with your actual itemgrpcod.
SELECT 'AAA' FROM OITM T0 WHERE $[OITM.ItmsGrpCod] = '100' and t0.itemcode = $[OITM.itemcode]