Skip to Content
avatar image
Former Member

Modifying an RFC connection in ABAP

Hello, experts.
I have a requirement to create a user in every client of every system that we have. I decided to do it by writing an ABAP program which creates a user via RFC. An connection to the first client is maintained via SM59. After that a loop over the other clients is implemented. The connection is updated for every of them, and then a function for user creation is called. This part of the code is on the screenshot below.

The problem is, that despite the fact that the RFC destination is updated in the database, the system still uses the old one when calling a function for the remote user creation.
For example, I have configured an RFC connection to the client 100 and I want to create a user in the clients 101, 102, and 103. It will be created only in the first mentioned client, 101. But if I set the breakpoint into the line CALL FUNCTION 'Z_CREATE_USER_FOR_CLNT', I can see that the update for the connection has been executed correctly for all three. Any kind of help will be appreciated.

rfc.jpg (49.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers