商务网站的功能和建设,网站建设低价建站,企业网站导航设计,哈尔滨网站建设维护今天作了几个rfc供外围系统调用#xff0c;他们使用.net。 在.net调用时#xff0c;提示“Lookup of function ET_PRDATA metadata failed for destination ZNMMPT_EXPORT_PR”。 这个错误#xff0c;是由于GetFunctionMetadata()函数引起的#xff0c;对此#xff0c;NC0…今天作了几个rfc供外围系统调用他们使用.net。 在.net调用时提示“Lookup of function ET_PRDATA metadata failed for destination ZNMMPT_EXPORT_PR”。 这个错误是由于GetFunctionMetadata()函数引起的对此NC03.0 API文档文档的描述是 If the requested metadata is not in the cache and a destination is available a lookup is executed. If the lookup fails an exception is thrown. If the metadata is not in the cache and no destination is supplied (i.e., destination is null), this method returns null. 出错原因用于连接SAP User的权限不够。该RFC User的user type首先需要设置为communication。如果单独给该user维护Role的话该Role只需要增加一个权限对象S_RFC即可。S_RFC权限对象有三个字段RFC_TYPE, RFC_NAME, ACTVT. RFC_TYPE只能勾选FUGRACTVT只能是16execute;RFC_NAME中填写的内容是函数组需要包含SYST、RFC1、RFCH以及所调RFC所在的函数组。基本上可以满足远程调用如果还是不行可以使用st01对RFC User进行权限的trace. 以上信息参考http://gestapo.diandian.com/post/2012-07-20/40030084963 http://blog.sina.com.cn/s/blog_473e013d0100y4pd.html转载于:https://www.cnblogs.com/lnu2471/p/3528454.html