I have created a Scalar Functions, it was created successfully, but when I call the function using select statement, it says Invalid object name \'dbo.fun_functional_score\
Your syntax is for table valued function which return a resultset and can be queried like a table. For scalar function do
select dbo.fun_functional_score('01091400003') as [er]