Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: FMS For Auto-Item Code Generation Based on Item Group and  two other SubCat1, SubCat2 UDFs.

$
0
0

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


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>