SAP RFC user 最小权限
今天作了幾個(gè)rfc供外圍系統(tǒng)調(diào)用,他們使用.net。
在.net調(diào)用時(shí),提示“Lookup of function ET_PRDATA metadata failed for destination ZNMMPT_EXPORT_PR”。
這個(gè)錯(cuò)誤,是由于GetFunctionMetadata()函數(shù)引起的,對(duì)此,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.
?
出錯(cuò)原因:用于連接SAP User的權(quán)限不夠。該RFC User的user type首先需要設(shè)置為communication。如果單獨(dú)給該user維護(hù)Role的話,該Role只需要增加一個(gè)權(quán)限對(duì)象S_RFC即可。S_RFC權(quán)限對(duì)象有三個(gè)字段:RFC_TYPE, RFC_NAME, ACTVT.
????????????? RFC_TYPE只能勾選FUGR;ACTVT只能是16(execute);RFC_NAME中填寫的內(nèi)容是函數(shù)組,需要包含SYST、RFC1、RFCH以及所調(diào)RFC所在的函數(shù)組?;旧峡梢詽M足遠(yuǎn)程調(diào)用,如果還是不行,可以使用st01對(duì)RFC User進(jìn)行權(quán)限的trace.
?
?
?
以上信息參考http://gestapo.diandian.com/post/2012-07-20/40030084963;
?????????????????http://blog.sina.com.cn/s/blog_473e013d0100y4pd.html
轉(zhuǎn)載于:https://www.cnblogs.com/lnu2471/p/3528454.html
總結(jié)
以上是生活随笔為你收集整理的SAP RFC user 最小权限的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux 安装nginx php my
- 下一篇: 从硬核科幻小说《三体》中看嵌入式