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

Re: I need a FMS for Auto G/L account for Creating a customer & Restriction of Wrong GL Account Stored Procedure

$
0
0

Hi Ramasamy,

You can use below query (by making changes in your actual Account codes) for Formatted search.

 

 

Declare @CtrlAcct varchar (20), @ForeignNam varchar (100)

 

 

Select  Top 1 @CtrlAcct = $[$56.0.0]

Select  @ForeignNam = $[$128.0.0]

 

 

Select

  Case @ForeignNam

  When 'Bangalore' then '140000'

  When 'Chennai' then '140010'

  When 'Mumbai' then '140030'

  When 'Pune' then '140060'

  else @CtrlAcct

  end [CtrlAcct]

 

 

I am not familiar with writing TN. Hope someone else will help you.

 

Thanks

Unnikrishnan


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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