i have followed the below steps and it works
0.created a table valued function
create function dbo.DIM_X(@id int,@code char(2))
returns Table
as
return
(
select * from dbo.B_DIM_X
where id=@id and code=@code
)
1.created a new query subject by selecting a different table dim_Y
2.on the query information TAB>select options>SQL setting tab>change SQL type to Native>click ok
3.on the SQL Tab i cleared the generated query for dim_Y
4.changed the SQL to
select * from DIM_X(#prompt('prmid','int')#,#prompt('prmcode','string')#)
this worked for me
i was unable to see the function list inside my FM when i ran the wizard to import, may be due to different owner
Hope this helps let me know.
Try changing your query to
select * from rate_calculation_function(data_item,#prompt('param1','int')#,#prompt('param2','int')#,prompt#('param3','int')#)
you were missing the single quotes for datatypes
I'm not clear on the data_item parameter part, from which query will you be passing this value?