Hello Holger,
the message you get should only be a warning. Up to SPS09 a "select into" was not allowed in a scalar UDF. This restriction was removed with SPS10, but you get the warning (a "select into" clause in a scalar UDF is not the best regarding e.g. performance).
Regards,
Florian