Hi Allan,
I think you will have a missing authority for
authority-check object 'S_RFC'
id 'RFC_TYPE' field 'FUGR'
id 'RFC_NAME' field functiongroup
id 'ACTVT' field '16'.
You need the authority to execute function modules in the function group, where your new RFC function module is located.
Regards,
Klaus