Then in that case i would suggest you to check if FM is returning any data on passing User ID as input.
Please check if any exception is returned by FM.
Looks like error is because when FM is called with an RFC Destination, Authentication is failing which you need to check.