Skip to Content
Former Member
Mar 17, 2007 at 08:40 AM

Passing User ID into backend ABAP system via adaptive RFC


I have an application that accesses a BAPI via adaptive RFC. That BAPI needs to know who the user is (they have a user account in the backend system) in order to do some processing.

The JCO connection uses a specific communications user, and when I debug the BAPI, the value of SY-USRID is the JCO communications user.

I need to do one of two things:

1) Dynamically allocate the JCO user somehow in the configuration, so that the correct user is logged in. Not sure if this is a good idea though even if it can be done, because they will then be Dialog users.

In general, how is this situation dealt with?




2) Retrieve the userID from the Web Dynpro side. I can change the BAPI to accept a userID, and pass that from the Web Dynpro application. Is there then a way to take the logged on user ID from the Portal side, where the Web Dynpro is running, over to the Web Dynpro application?