Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 16, 2008 at 12:59 PM

    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'
    

    Add comment
    10|10000 characters needed characters exceeded