Hi Bharathraja,
Thanks for your prompt reply
i have checked your query but it gives me some error
[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'. '' (SWEI)
But I have created some modification as
select ((select ItmsGrpNam from OITB where ItmsGrpCod = $[$39.0])
+ $[OITM.U_SubCat] + $[OITM.U_SubCat1]
+ right(N'00000' + convert(nvarchar(5), (select isnull(count(*), 0) + 1 from OITM
where (ItmsGrpCod = $[$39.0] and U_SubCat = $[OITM.U_SubCat] and U_SubCat1= $[OITM.U_SubCat1] ))), 5))
now its working perfect