Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

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'

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question