Impersonalize SAP dialog user in SAPNCo application

时间:2018-06-05 13:32:13

标签: sap impersonation sap-connector

I am building a special application that helps users to insert some data in SAP. Currently the functionality of the app works as expected. But when data is saved in database, the logs are showing, that the user who made changes is the System user. I would like to request a username and password of a so called Dialog user for SAP GUI. Then the System user would impersonate it and make changes. I tried to set User and Password parameters of RFC Configuration to Dialog users information and added RepositoryUser and RepositoryPassword parameters. This throws me an exception:"No RFC authorization for function module RFCPING."

I could make additional user authentication with SUSR_CHECK_LOGON_DATA RFC but this would not solve a problem of logging user changes.

Is Dialog user allowed to call remote functions, or does System user do that in his name? How to achieve impersonation in SAP.NET connector? I read through SAP .NET Connector 3.0 Programming Guide, but did not get the right information.

Thank you

1 个答案:

答案 0 :(得分:0)

显然,您使用的用户ID缺少基本的RFC用户授权。当然,您也可以使用对话框用户。

SAP在以下注释中详细记录了几种使用方案所需的最低RFC用户授权: