Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call a Function as a different User

Former Member
0 Likes
11,251

Hi everyone,

is there a way to call a function as a different user in a programm? i have to call a function which a normal Sap user is not allowed to call but i have to use this function in my program. So is there a way to call this very function as a different user as the user who is using my program?

i thought to make a background job which calls another abap report as CENTRALADMIN who is able to call this specific function.

but maybe there is another way to reach this without making a background job for this.

THX in advance!

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
4,975

Yes, you can set up an RFC destination to the local system using a different user id/password. Then callt his function in your program using the DESTINATION extension.

Call Function 'Z_THIS_FUNCTION' DESTINATION 'your_RFC_Destination'.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
4,976

Yes, you can set up an RFC destination to the local system using a different user id/password. Then callt his function in your program using the DESTINATION extension.

Call Function 'Z_THIS_FUNCTION' DESTINATION 'your_RFC_Destination'.

Regards,

Rich Heilman

Read only

0 Likes
4,975

Thanks a lot for your information. but could you be a little bit more precise about that 'your_RFC_Destination' please?

how exactly can i define the user who should call the function?

Read only

0 Likes
4,975

allright. got it.

thanks for your help. saved my weekend