Check if the next query works in SQL Server 2008 and gives the expected results:
WITH CTE AS
(
SELECT isnull(CustomerItem.CIName,ItemMasterFile.Descriptionitem) as Descriptionitem,sum(tbl_PckDetail.QTY) as QY,
(isnull(Probale.PBSize,itemmasterfile.weight)) as WT,(sum(tbl_PckDetail.QTY)*isnull(Probale.PBSize,
itemmasterfile.weight))as Total_wt, 'x '+ ''+' '+ ''+ ItemMasterFile.BaleSize as X,
CAST((isnull(nullif(isnull(Probale.PBSize,itemmasterfile.weight),0)*sum(tbl_PckDetail.QTY)/nullif(2.2046,0),0)) as decimal(18,0)) Kg
FROM tbl_SBDispatachD
inner join tbl_PckDetail on tbl_PckDetail.PID=tbl_SBDispatachD.PID
inner join ItemMasterFile on ItemMasterFile.CodeItem=tbl_PckDetail.Codeitem
inner join SalesOrder ON SalesOrder.OrderNo = tbl_PckDetail.OrderNo
left join CustomerItem on CustomerItem.Codeitem=tbl_PckDetail.Codeitem
and CustomerItem.CustomerID=SalesOrder.Customerid
left outer join Probale on Probale.prdno=tbl_PckDetail.Prdno
and ItemMasterFile.CodeItem=Probale.codeitem
where tbl_SBDispatachD.ID =1109 and tbl_PckDetail.DelID is null and tbl_SBDispatachD.Del is null
group by CustomerItem.CIName,ItemMasterFile.Descriptionitem ,Probale.Pbsize,ItemMasterFile.weight ,ItemMasterFile.BaleSize)
)
select Descriptionitem, SUM(QY) as QY, SUM(WT) as WT, SUM(Total) as Total, MAX(X), SUM(Kg) as Kg
from CTE
group by Descriptionitem