cancel
Showing results for 
Search instead for 
Did you mean: 

Using UDF in Formatted Search

Former Member
0 Kudos

Please tell me where my syntax is wrong:

declare @dte1 as datetime

Set @dte1 = (Select Case When $[$OINV.U_ORD_TYP] = 'S' Then 40450 Else cast($[$12.0.date] as int) End)

Select @dte1

If I use $[$4.0.0] to compare for a BP it works, but trying to compare using a UDF I get the very useful, Internal Error message.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

What is this UDF property? Is this UDF for Document Type?

Thanks,

Gordon

former_member186095
Active Contributor
0 Kudos

Hi,

the error probably caused by the subquery result that returned more than 1 value.

Try to change the query by editing the FMS query

Rgds,

Former Member
0 Kudos

Not the answer.

How can the value of a header level UDF be used in a formatted search?

former_member362494
Participant
0 Kudos

Hi ,

instead of OINV.U_ORD_TYP , you should try : $[$U_ORD_TYP.0.0]

hope this helps