Hi Santosh,
As per your requirement please try the given Query...
SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], sum(T0.[Quantity]) as 'Issued Qty',T1.OnHand FROM IBT1 T0 Inner Join OITM T1 on T1.ItemCode=T0.ItemCode WHERE T0.[Direction] =1 and T0.[DocDate] between '[%0]' and '[%1]' GROUP BY T0.[ItemCode], T0.[BatchNum],T0.[ItemName],T1.OnHand
Please Note On hand value comes multiple times if same item with same batch but different quantity issued...