cancel
Showing results for 
Search instead for 
Did you mean: 

Wants Relation of Tax code with Title level sales Doc.UDF

Former Member
0 Kudos

Dear friends,

I have made uDF at title level of sales Doc.

In that YES and NO are , two dropdown.my requirement

is that if i made invoice and when select tax code CST2%

at that time that UDF shoud have to take YES.(Automaticaly)

If i select tax code other than cST2% ,then UDF must have

to select No.(Automaticaly)

How Can i do this?

Regards,

mahesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I create a UDF in title level of marketing document called 'IsAck' with following valid values:

Value Description

Y Yes

N No

Now I had the following FMS and set the AutoRefresh true on 'Tax Amout' field. The UDF updated automaticallly to 'Yes' for 'CST2' and 'No' for other tax codes.


Declare @taxcode as varchar(20)
set @taxcode = $[$38.160.0]
if @taxcode='CST2'
select 'Y'
else
select 'N'

Answers (0)