My UDF's body has the following HAVING class.
HAVING
Company.Description = @Company AND
SystemCustomerType.Description = @CustomerType
I tried to call this by this following syntax.
SELECT * FROM FunctionName('ABC_Company',NULL)
And also tried to set default value as NULL
for @CustomerType
parameter. And called the function by
SELECT * FROM FunctionName('ABC_Company',default)